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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Kudoed Authors