Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
sadiqkhoja
Regular Visitor

DMTS_DatasourceHasNoCredentialError

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

1 ACCEPTED SOLUTION
ekeijl
Helper I
Helper I

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):

https://github.com/Azure-Samples/power-bi-embedded-integrate-report-into-web-app/blob/master/Provisi...

 

(Edit: updated link to sample code)

View solution in original post

1 REPLY 1
ekeijl
Helper I
Helper I

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):

https://github.com/Azure-Samples/power-bi-embedded-integrate-report-into-web-app/blob/master/Provisi...

 

(Edit: updated link to sample code)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors