<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DMTS_DatasourceHasNoCredentialError in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/DMTS-DatasourceHasNoCredentialError/m-p/41991#M1275</link>
    <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Datasource has no credentials.&lt;/P&gt;&lt;P&gt;Please try again later or contact support and provide the following details to help resolve your issue faster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Error CodeDMTS_DatasourceHasNoCredentialError
Server someserver.database.windows.net
Correlation ID 3b3d08d7-21cd-7a4b-3778-79841050d3c4&lt;BR /&gt;Database &lt;SPAN class="infonav-errorInfoHeader"&gt;someDatabase&lt;/SPAN&gt;
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/&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where&amp;nbsp;to define credentials of datasource? Report is working fine in PowerBI Desktop&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2016 10:02:23 GMT</pubDate>
    <dc:creator>sadiqkhoja</dc:creator>
    <dc:date>2016-06-10T10:02:23Z</dc:date>
    <item>
      <title>DMTS_DatasourceHasNoCredentialError</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DMTS-DatasourceHasNoCredentialError/m-p/41991#M1275</link>
      <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Datasource has no credentials.&lt;/P&gt;&lt;P&gt;Please try again later or contact support and provide the following details to help resolve your issue faster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Error CodeDMTS_DatasourceHasNoCredentialError
Server someserver.database.windows.net
Correlation ID 3b3d08d7-21cd-7a4b-3778-79841050d3c4&lt;BR /&gt;Database &lt;SPAN class="infonav-errorInfoHeader"&gt;someDatabase&lt;/SPAN&gt;
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/&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where&amp;nbsp;to define credentials of datasource? Report is working fine in PowerBI Desktop&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 10:02:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DMTS-DatasourceHasNoCredentialError/m-p/41991#M1275</guid>
      <dc:creator>sadiqkhoja</dc:creator>
      <dc:date>2016-06-10T10:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: DMTS_DatasourceHasNoCredentialError</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DMTS-DatasourceHasNoCredentialError/m-p/42414#M1292</link>
      <description>&lt;P&gt;I encountered the same problem when building a custom web app using NodeJS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/mt711505.aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/mt711505.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You also need to update the credentials of the data source in the gateway with the following REST call:&lt;/P&gt;&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/mt711498.aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/mt711498.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out the source of the Getting Started sample (specifically Step 7 of the example, updating the connection string):&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Azure-Samples/power-bi-embedded-integrate-report-into-web-app/blob/master/ProvisionSample/Program.cs#L507-L558" target="_blank"&gt;https://github.com/Azure-Samples/power-bi-embedded-integrate-report-into-web-app/blob/master/ProvisionSample/Program.cs#L507-L558&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Edit: updated link to sample code)&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 09:01:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DMTS-DatasourceHasNoCredentialError/m-p/42414#M1292</guid>
      <dc:creator>ekeijl</dc:creator>
      <dc:date>2016-06-17T09:01:26Z</dc:date>
    </item>
  </channel>
</rss>

