Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I have create a PBIX file in PowerBI Desktop using DirectQuery method on Azure SQL Server. After that I uploaded the file to workspace. Now when I am opening that report on my custom web app using MVC API, it is throwing me following error:
Datasource has no credentials.
Please try again later or contact support and provide the following details to help resolve your issue faster.
Error CodeDMTS_DatasourceHasNoCredentialError Server someserver.database.windows.net Correlation ID 3b3d08d7-21cd-7a4b-3778-79841050d3c4
Database someDatabase ConnectionType {FieldValue} Activity ID24480fac-d172-e3a6-17b6-eb8a2ce5b02c Request IDb1ec1b45-5a65-c642-3fa0-4c5090102720 TimeFri Jun 10 2016 14:53:01 GMT+0500 (Pakistan Standard Time) Version13.0.1500.198 Cluster URI https://wabi-south-east-asia-redirect.analysis.windows.net/
Where to define credentials of datasource? Report is working fine in PowerBI Desktop
Solved! Go to Solution.
I encountered the same problem when building a custom web app using NodeJS.
You need to update the connection string with your parameters (this information might be stored in the PBIX file, but I'm not sure), you can find the connection string in the Azure Portal:
https://msdn.microsoft.com/en-us/library/mt711505.aspx
You also need to update the credentials of the data source in the gateway with the following REST call:
https://msdn.microsoft.com/en-us/library/mt711498.aspx
Check out the source of the Getting Started sample (specifically Step 7 of the example, updating the connection string):
(Edit: updated link to sample code)
I encountered the same problem when building a custom web app using NodeJS.
You need to update the connection string with your parameters (this information might be stored in the PBIX file, but I'm not sure), you can find the connection string in the Azure Portal:
https://msdn.microsoft.com/en-us/library/mt711505.aspx
You also need to update the credentials of the data source in the gateway with the following REST call:
https://msdn.microsoft.com/en-us/library/mt711498.aspx
Check out the source of the Getting Started sample (specifically Step 7 of the example, updating the connection string):
(Edit: updated link to sample code)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.