<?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 PowerBIClient.Datasets.GetGatewayDatasourcesAsync returns NULL in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59139#M1869</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to embed Power BI reports (using Direct Query) in my ASP.NET application, and get "Can't display the visual" message. I understand that I need to &lt;A href="https://msdn.microsoft.com/library/mt711498.aspx" target="_self"&gt;patch&lt;/A&gt; my data source credentials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using &lt;A href="https://github.com/Azure-Samples/power-bi-embedded-integrate-report-into-web-app/blob/master/ProvisionSample/Program.cs" target="_self"&gt;this sample&lt;/A&gt; to provision my workspace, import reports, etc. Everything works great, except option #7 "Update connection string info for an existing dataset". Line 544 returns NULL into datasources variable, even though all three parameters are correct:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;// Get the datasources from the dataset&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;var datasources = await client.Datasets.GetGatewayDatasourcesAsync(workspaceCollectionName, workspaceId, datasets.Value[datasets.Value.Count - 1].Id);&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Any ideas what could be the problem?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Julia&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2016 15:12:40 GMT</pubDate>
    <dc:creator>julianmbs</dc:creator>
    <dc:date>2016-08-16T15:12:40Z</dc:date>
    <item>
      <title>PowerBIClient.Datasets.GetGatewayDatasourcesAsync returns NULL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59139#M1869</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to embed Power BI reports (using Direct Query) in my ASP.NET application, and get "Can't display the visual" message. I understand that I need to &lt;A href="https://msdn.microsoft.com/library/mt711498.aspx" target="_self"&gt;patch&lt;/A&gt; my data source credentials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using &lt;A href="https://github.com/Azure-Samples/power-bi-embedded-integrate-report-into-web-app/blob/master/ProvisionSample/Program.cs" target="_self"&gt;this sample&lt;/A&gt; to provision my workspace, import reports, etc. Everything works great, except option #7 "Update connection string info for an existing dataset". Line 544 returns NULL into datasources variable, even though all three parameters are correct:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;// Get the datasources from the dataset&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;var datasources = await client.Datasets.GetGatewayDatasourcesAsync(workspaceCollectionName, workspaceId, datasets.Value[datasets.Value.Count - 1].Id);&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Any ideas what could be the problem?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Julia&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 15:12:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59139#M1869</guid>
      <dc:creator>julianmbs</dc:creator>
      <dc:date>2016-08-16T15:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBIClient.Datasets.GetGatewayDatasourcesAsync returns NULL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59177#M1878</link>
      <description>&lt;P&gt;Are you using SQL in direct query mode?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:30:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59177#M1878</guid>
      <dc:creator>jocaplan-MSFT</dc:creator>
      <dc:date>2016-08-16T16:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBIClient.Datasets.GetGatewayDatasourcesAsync returns NULL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59178#M1879</link>
      <description>&lt;P&gt;Yes, as I stated above, I am using DirectQuery mode.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:32:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59178#M1879</guid>
      <dc:creator>julianmbs</dc:creator>
      <dc:date>2016-08-16T16:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBIClient.Datasets.GetGatewayDatasourcesAsync returns NULL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59181#M1881</link>
      <description>&lt;P&gt;And SQL Azure? Getting null there means that your dataset didn't bind to any gateway. This should only happen if you are not using one of the supported sources.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:53:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59181#M1881</guid>
      <dc:creator>jocaplan-MSFT</dc:creator>
      <dc:date>2016-08-16T16:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBIClient.Datasets.GetGatewayDatasourcesAsync returns NULL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59198#M1886</link>
      <description>&lt;P&gt;It is SQL Azure. I have datasets for&amp;nbsp;both SSAS and regular databases. When I upload the report to Power BI Online, it works fine, so the gateway is working.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 17:27:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59198#M1886</guid>
      <dc:creator>julianmbs</dc:creator>
      <dc:date>2016-08-16T17:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBIClient.Datasets.GetGatewayDatasourcesAsync returns NULL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59209#M1887</link>
      <description>&lt;P&gt;We don't support the enterprise gateway yet so the source must be in the cloud. This rules out SSAS and on premise SQL.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 17:54:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59209#M1887</guid>
      <dc:creator>jocaplan-MSFT</dc:creator>
      <dc:date>2016-08-16T17:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBIClient.Datasets.GetGatewayDatasourcesAsync returns NULL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59212#M1888</link>
      <description>&lt;P&gt;Ok, so SSAS is out for now. Then it should at least work with Azure SQL database? It's not on premise.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 18:02:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59212#M1888</guid>
      <dc:creator>julianmbs</dc:creator>
      <dc:date>2016-08-16T18:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBIClient.Datasets.GetGatewayDatasourcesAsync returns NULL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59216#M1889</link>
      <description>&lt;P&gt;Yep. That would working. We are currently working on adding support for the gateway. So SSAS will start to work in a little bit.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 18:17:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIClient-Datasets-GetGatewayDatasourcesAsync-returns-NULL/m-p/59216#M1889</guid>
      <dc:creator>jocaplan-MSFT</dc:creator>
      <dc:date>2016-08-16T18:17:21Z</dc:date>
    </item>
  </channel>
</rss>

