Forum Discussion
Error in embedded powerbi, report does not load
- 1 year ago
Hi Ramon-Alemao ,
Thanks for reaching out to the Microsoft fabric community forum.
The issue you're encountering appears to stem from missing administrator consent for the required API permissions in your Azure Active Directory (Azure AD) application. Since you're the only user in your Azure environment but don't hold an administrator role, you'll need to assign yourself the necessary permissions to grant this consent. To proceed, sign in to the Azure portal, navigate to Azure Active Directory > Roles and administrators, and assign yourself the Global Administrator role.
Once you have elevated access, go to Azure Active Directory > App registrations, select your application, and under API permissions, click Grant admin consent for [Your Organization] to approve the necessary scopes, such as Dataset.ReadWrite.All and Report.ReadWrite.All. After granting consent, test your Power BI embedding again to confirm the issue is resolved. If you're unable or prefer not to elevate your access, consider contacting Azure support for alternative solutions.
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards
Hi Ramon-Alemao,
Thanks for reaching out to the Microsoft fabric community forum.
The error "Get report failed" when embedding a Power BI report using the Power BI JavaScript API usually indicates an issue with authentication, permissions, or configuration. To resolve this, first, check your Power BI embed token and permissions. Ensure the embed token is valid and has the correct permissions to view the report. If using the App Owns Data approach, verify that the service principal has the necessary access to the Power BI workspace and dataset.
Next, confirm that your Azure AD authentication is correctly configured. Your Azure AD app registration should have the required API permissions, such as Reports.Read.All and Dataset.Read.All. If using a service principal, make sure Admin consent has been granted to enable access.
Please check the referenced article for more details on how to troubleshoot the error: Troubleshoot Power BI embedded analytics application - Power BI | Microsoft Learn
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards
Hi, v-nmadadi-msft.
Thanks for the answer.
The settings appear to be correct, according to the first image, the only thing that was a little unclear to me is the administrator consent.
I am the only user in my organization on Azure, but I do not have an administrator role, and I do not know how to change this.
When rendering the page and observing the API call, the error below, in the second image, is returned.
- v-nmadadi-msft1 year agoCommunity Support
Hi Ramon-Alemao ,
Thanks for reaching out to the Microsoft fabric community forum.
The issue you're encountering appears to stem from missing administrator consent for the required API permissions in your Azure Active Directory (Azure AD) application. Since you're the only user in your Azure environment but don't hold an administrator role, you'll need to assign yourself the necessary permissions to grant this consent. To proceed, sign in to the Azure portal, navigate to Azure Active Directory > Roles and administrators, and assign yourself the Global Administrator role.
Once you have elevated access, go to Azure Active Directory > App registrations, select your application, and under API permissions, click Grant admin consent for [Your Organization] to approve the necessary scopes, such as Dataset.ReadWrite.All and Report.ReadWrite.All. After granting consent, test your Power BI embedding again to confirm the issue is resolved. If you're unable or prefer not to elevate your access, consider contacting Azure support for alternative solutions.
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards