Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reports #19

Closed
bsaragadam opened this issue Nov 22, 2019 · 23 comments
Closed

Reports #19

bsaragadam opened this issue Nov 22, 2019 · 23 comments
Labels

Comments

@bsaragadam
Copy link

bsaragadam commented Nov 22, 2019

Underlying error code: -2147467259 Table: Reports.
Underlying error message: The field 'datasetId' of the record wasn't found.
DM_ErrorDetailNameCode_UnderlyingHResult: -2147467259
Microsoft.Data.Mashup.ValueError.Reason: Expression.Error
Microsoft.Data.Mashup.ValueError.embedUrl: https://app.powerbi.com/rdlEmbed?reportId=######################config=eyJjbHVzdGVyVXJsIjoiaHR0cHM6Ly9XQUJJLVdFU1QtVVMtcmVkaXJlY3QuYW5hbHlzaXMud2luZG93cy5uZXQifQ%3d%3d
Microsoft.Data.Mashup.ValueError.id: 036a5849-16f8-4e9f-805d-298100e6e079
Microsoft.Data.Mashup.ValueError.isFromPbix: False
Microsoft.Data.Mashup.ValueError.isOwnedByMe: True
Microsoft.Data.Mashup.ValueError.name: Mandatory Time Off Self Report
Microsoft.Data.Mashup.ValueError.reportType: PaginatedReport
Microsoft.Data.Mashup.ValueError.webUrl: https://app.powerbi.com/groups/50188c72-1ea3-4707-9061-fdeabc8ff73d/rdlreports/####################

Cluster URI: | WABI-WEST-US-redirect.analysis.windows.net
Activity ID: | cea4ab66-a46b-4faf-a9ff-c828328a8165
Request ID: | 3be3315d-064b-c68a-8e61-00ea3d675373
Time: | 2019-11-22 14:45:20Z

Report Refreshing is failing in both desktop and service for paginated reports publishing in the work space as they didnt have the dataset id with the error message.

Is there any other work around to fix the issue

@migueesc123
Copy link
Owner

Could you please share with us more info about what function from the connector was used to trigger this error?
The field datasetId is being referenced in multiple parts of the Custom Connector, we don't really know which of the functions that references the datasetId is having the issue for your environment.

@bsaragadam
Copy link
Author

Hi Miguel,
Its blocking failing in Reports table in the custom connector

@migueesc123
Copy link
Owner

@klinejordan would you mind taking a look ? Can’t repro

@klinejordan
Copy link
Collaborator

Fixed - MSFT changed the behavior for Paginated Reports (now showing with a different report type and NULL dataset ID). @bsaragadam Can you validate?

@bsaragadam
Copy link
Author

yes, its working now
thank you

@bsaragadam
Copy link
Author

@migueesc123 / @klinejordan
Again failing with the same error for the paginated reports
Is there any change again from MSFT ??

@klinejordan
Copy link
Collaborator

I am not seeing any failures for paginated reports so I can't reproduce, can you post the error message you're getting?

@bsaragadam
Copy link
Author

Underlying error code: -2147467259 Table: Reports.
Underlying error message: The field 'datasetId' of the record wasn't found.
DM_ErrorDetailNameCode_UnderlyingHResult: -2147467259
Microsoft.Data.Mashup.ValueError.Reason: Expression.Error
Microsoft.Data.Mashup.ValueError.embedUrl: https://app.powerbi.com/rdlEmbed?reportId=XXXXXXXXXXXXXXXXXXXXX
&config=eyJjbHVzdGVyVXJsIjoiaHR0cHM6Ly9XQUJJLVdFU1QtVVMtcmVkaXJlY3QuYW5hbHlzaXMud2luZG93cy5uZXQifQ%3d%3d
Microsoft.Data.Mashup.ValueError.id: 036a5849-16f8-4e9f-805d-298100e6e079
Microsoft.Data.Mashup.ValueError.isFromPbix: False
Microsoft.Data.Mashup.ValueError.isOwnedByMe: True
Microsoft.Data.Mashup.ValueError.name: Mandatory Time Off Self Report
Microsoft.Data.Mashup.ValueError.reportType: PaginatedReport
Microsoft.Data.Mashup.ValueError.webUrl: https://app.powerbi.com/groups/50188c72-1ea3-4707-9061-fdeabc8ff73d/rdlreports/XXXXXXXXXXXXXXXXX
Cluster URI: WABI-WEST-US-redirect.analysis.windows.net
Activity ID: 1fd650b0-7582-4ccb-b906-756823ef36cb
Request ID: a0501f88-2da9-3de4-b09f-0ab90c3f3d2b
Time: 2019-11-27 16:23:38Z

@klinejordan
Copy link
Collaborator

Okay, are you sure you're still using the latest version of the connector? I can't reproduce that error, all my paginated reports return a NULL dataset ID as they don't have datasets (that's intended behavior)

@bsaragadam
Copy link
Author

@klinejordan Yes its working fine with the latest App and I have the other question to pull the data from Power BI Service Admin table do we need the both TenantRead.All/TenatRead.Write.All permission ??

I have tried with TenantRead.All permission and failing with the error message with 401 unauthorized.

could you provide the required permissions for the tenant level to extract the data

@klinejordan
Copy link
Collaborator

Per https://docs.microsoft.com/en-us/power-bi/developer/power-bi-permissions, you need to grant all permissions, not just read. We don't control what permissions are used and why, we're just following the documentation provided by MSFT.

@bsaragadam
Copy link
Author

Yes @klinejordan I have all the above permissions but its failed with Authentication while connecting to the Power BI Service admin table

image

@klinejordan
Copy link
Collaborator

For that section you need to be a Power BI service admin role. Are you able to get that role or elevate your privs?

@bsaragadam
Copy link
Author

@klinejordan Yes, I have the Power BI Service admin role but getting the above error.

@bsaragadam
Copy link
Author

image

Just added the fiddler error message from the fiddler while trying to load the Power BI Service Admin table from the connector

@bsaragadam
Copy link
Author

@klinejordan I'm having the Power BI Server Admin Role and Tenant.Read.All and Tenant.Write.ReadAll Role Permission role.. do we need any other permissions required.

@klinejordan
Copy link
Collaborator

The permissions your app registration needs is all documented here: https://docs.microsoft.com/en-us/power-bi/developer/register-app

But here's a screenshot of my app registration so you can try to match.
image

Also if you're Power BI Service Admin role is a Just In Time privilege (meaning you have to elevate each time you use it - some tenants are configured like this including mine) make sure you've elevated it, not just eligible:
image

@bsaragadam
Copy link
Author

@klinejordan
I have verified the above permissions and we have all the required permission but We don't have Privileged Identity Management License to our tenant Is there any other way we can elevate the permission or do we need compulsory PIM for Power BI service admin to get this custom connector to work ??

@bsaragadam
Copy link
Author

@klinejordan do you have any update ?? If we dont have the PIM License and we cannot fetch the data for Power BI service admin table ?? We are the Power BI Service Administrator role but not using the PIM ..

@klinejordan
Copy link
Collaborator

You don't need PIM to get this to work - i mentioned it because some tenants have it and some don't, and some people forget that they need to activate it, not just be eligible for the role.

I'm not sure I can fix your issue at this point - you may have other networking or authentication or trust settings I'm not aware of, but supporting this connector isn't my full time job.

@migueesc123
Copy link
Owner

hey @bsaragadam !

This repo is mainly taking bugs related to the custom connector itself. To be more specifically, anything that is not working as intended because of something that is just awfully written in our code (usually my fault).

The custom connector was created as a community effort and is provided as is with no warranty under the MIT license, which means that you can also fork it and customize to your needs in the event that you see anything that is missing.

As @klinejordan has said, this appears to be an issue related to permissions on your tenant and not something related to our Custom Connector. I'd highly recommend that you get in touch with your Power BI Admin and provide the pictures that you've seen before in this thread as an example in terms of permissions that should be available in your app for this to work.

We are not the owners of the data source, so we are unable to provide any diagnostics or further help as to what's happening with your specific case. Ultimately if your Power BI Admin needs further help, I'd recommend that he / she gets in touch with Microsoft to look further into it.

We thank you for reporting the original bug and if you find any other bug or errors in the dataset, please let us know.

@bsaragadam
Copy link
Author

bsaragadam commented Dec 7, 2019

@migueesc123 @klinejordan Thanks for the prompt response.. @klinejordan do you use the MFA for your tenant ?? I'm thinking its blocking for me due to MFA or ADFS Authentication

@Oddjobe
Copy link

Oddjobe commented Mar 9, 2020

Hi!
The missing piece in my case was "Grant Admin Consent"
image

Thanks for all the awesome work with this connector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants