<?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 Re: Can I connect to Power BI data set using ADOMD.Net? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Can-I-connect-to-Power-BI-data-set-using-ADOMD-Net/m-p/53073#M1662</link>
    <description>&lt;P&gt;Any update on this topic?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2016 16:35:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-26T16:35:02Z</dc:date>
    <item>
      <title>Can I connect to Power BI data set using ADOMD.Net?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-I-connect-to-Power-BI-data-set-using-ADOMD-Net/m-p/51525#M1571</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I am using &lt;STRONG&gt;Microsoft.AnalysisServices.AdomdClient.dll, v13.0.0.0&lt;/STRONG&gt; to to access a Power BI data set from C# code. Have been experimenting with various connection strings but always get exceptions...&lt;/P&gt;&lt;PRE&gt;var connectionString = @"Provider=MSOLAP.7;Integrated Security=;Identity Provider=AAD;Data Source=https://analysis.windows.net/powerbi/api;Initial Catalog=XXXX-XXXX-GUID;Location=https://wabi-us-north-central-redirect.analysis.windows.net/xmla?vs=sobe_wowvirtualserver&amp;amp;db=XXX-XXX-GUID;MDX Compatibility= 1; MDX Missing Member Mode= Error; Safety Options= 2; Update Isolation Level= 2;User ID=my@workemail.com;Password=my_pswd;";
var conn = new AdomdConnection(connectionString);
conn.Open(); //throws here&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;The connection string above produces error&amp;nbsp;&lt;STRONG&gt;"The connection either timed out or was lost."&lt;/STRONG&gt;&lt;BR /&gt;This string is based on the .odc file that I downloaded from Power BI, and it works fine from Excel - data is loaded into pivot table, etc. (Excel uses COM driver I guess?)&lt;/P&gt;&lt;P&gt;If I set Integrated Security = SSPI or Basic, the client throws another error saying that neither of them can be used with HTTP.&lt;/P&gt;&lt;P&gt;What is missing in my code? I am looking for a working sample of a connection string for Power BI.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt; There is an inner exception for the connection string above: "The remote name could not be resolved: 'analysis.windows.net'" This url is what Power BI puts into odc file when I click on ANALYSE IN EXCEL. What url should I use to connect to data from .Net code?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 11:16:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-I-connect-to-Power-BI-data-set-using-ADOMD-Net/m-p/51525#M1571</guid>
      <dc:creator>volma</dc:creator>
      <dc:date>2016-07-20T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can I connect to Power BI data set using ADOMD.Net?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-I-connect-to-Power-BI-data-set-using-ADOMD-Net/m-p/53073#M1662</link>
      <description>&lt;P&gt;Any update on this topic?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 16:35:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-I-connect-to-Power-BI-data-set-using-ADOMD-Net/m-p/53073#M1662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-26T16:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can I connect to Power BI data set using ADOMD.Net?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-I-connect-to-Power-BI-data-set-using-ADOMD-Net/m-p/87891#M3113</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The property &lt;/SPAN&gt;&lt;STRONG&gt;Integrated Security=ClaimsToken &lt;/STRONG&gt;&lt;SPAN&gt;has been working since version &lt;STRONG&gt;13.0.1700.42&lt;/STRONG&gt; . &lt;/SPAN&gt;&lt;SPAN&gt;The current version is available in Powerbi&amp;nbsp; (Microsoft.PowerBI.AdomdClient.dll)&amp;nbsp;and Excel2016 (Microsoft.Excel.AdomdClient.dll).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately, I could not find out what is still wrong.&lt;/SPAN&gt; &lt;SPAN&gt;For the data source &lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt; I get the error message that the host can not be solved and if I &lt;A href="https://wabi-north-europe-redirect.analysis.windows.net/xmla" target="_blank"&gt;https://wabi-north-europe-redirect.analysis.windows.net/xmla&lt;/A&gt;&lt;/SPAN&gt; &lt;SPAN&gt;I get the error message the authentication is not possible.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 13:27:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-I-connect-to-Power-BI-data-set-using-ADOMD-Net/m-p/87891#M3113</guid>
      <dc:creator>tomtom</dc:creator>
      <dc:date>2016-11-09T13:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can I connect to Power BI data set using ADOMD.Net?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-I-connect-to-Power-BI-data-set-using-ADOMD-Net/m-p/750818#M20131</link>
      <description>&lt;P&gt;Any updates on this? I am trying to do the exact same thing with the same errors and exceptions.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2019 22:48:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-I-connect-to-Power-BI-data-set-using-ADOMD-Net/m-p/750818#M20131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-28T22:48:18Z</dc:date>
    </item>
  </channel>
</rss>

