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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.