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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.