<?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 Programatically connecting to power BI premium workspace using workspace url in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2203040#M33079</link>
    <description>&lt;P&gt;Am trying to connect to&amp;nbsp;&lt;SPAN&gt;a Power BI workspace by using the Workspace Connection URL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below is the code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;public static void ConnectToPowerBIAsUser()&lt;BR /&gt;{&lt;BR /&gt;string workspaceConnection = "powerbi://api.powerbi.com/v1.0/myorg/Superstoresales";&lt;BR /&gt;string userId = "test@nousinfo.com";&lt;BR /&gt;string password = "********";&lt;BR /&gt;string connectStringUser = $"DataSource={workspaceConnection};User ID={userId};Password={password};";&lt;BR /&gt;server.Connect(connectStringUser);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;When i execute the code am getting the below error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Microsoft.AnalysisServices.ConnectionException: 'The connection string is not valid.'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inner Exception:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FormatException: Input string was not in a correct format.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sowmyas_0-1637651139106.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/634895i0979058EBC320F2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sowmyas_0-1637651139106.png" alt="sowmyas_0-1637651139106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Nov 2021 07:07:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-23T07:07:00Z</dc:date>
    <item>
      <title>Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2203040#M33079</link>
      <description>&lt;P&gt;Am trying to connect to&amp;nbsp;&lt;SPAN&gt;a Power BI workspace by using the Workspace Connection URL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below is the code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;public static void ConnectToPowerBIAsUser()&lt;BR /&gt;{&lt;BR /&gt;string workspaceConnection = "powerbi://api.powerbi.com/v1.0/myorg/Superstoresales";&lt;BR /&gt;string userId = "test@nousinfo.com";&lt;BR /&gt;string password = "********";&lt;BR /&gt;string connectStringUser = $"DataSource={workspaceConnection};User ID={userId};Password={password};";&lt;BR /&gt;server.Connect(connectStringUser);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;When i execute the code am getting the below error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Microsoft.AnalysisServices.ConnectionException: 'The connection string is not valid.'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inner Exception:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FormatException: Input string was not in a correct format.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sowmyas_0-1637651139106.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/634895i0979058EBC320F2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sowmyas_0-1637651139106.png" alt="sowmyas_0-1637651139106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 07:07:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2203040#M33079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-23T07:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2205357#M33105</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/2834"&gt;@TedPattison&lt;/a&gt;&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp; Any inputs for the above query?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 08:57:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2205357#M33105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-24T08:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2205847#M33110</link>
      <description>&lt;P&gt;As far as I can tell, the connection string looks fine. Can you confirm that this workspace is associated with a dedicated capacity?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 12:53:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2205847#M33110</guid>
      <dc:creator>TedPattison</dc:creator>
      <dc:date>2021-11-24T12:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2206014#M33112</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/2834"&gt;@TedPattison&lt;/a&gt;&amp;nbsp;No workspace is not associated with dedicated capaticy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Premium per user is enabled for the&amp;nbsp; workspace.&lt;/P&gt;&lt;P&gt;Do we require premium capacity to perform data refresh?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 14:29:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2206014#M33112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-24T14:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2206055#M33114</link>
      <description>&lt;P&gt;The documentation doesn't mention anything explicitly but I wouldn't be surprised if there were API limitations too&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/admin/service-premium-per-user-faq" target="_blank"&gt;Power BI Premium Per User - Power BI | Microsoft Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 14:58:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2206055#M33114</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-11-24T14:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2206194#M33116</link>
      <description>&lt;P&gt;Can you confirm your user ID is for a user with a Power BI Premium per User license.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Did you copy the URL from workspace setting to ensure it matches&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TedPattison_0-1637770292280.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/635666i25422FB3E22933B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TedPattison_0-1637770292280.png" alt="TedPattison_0-1637770292280.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 16:12:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2206194#M33116</guid>
      <dc:creator>TedPattison</dc:creator>
      <dc:date>2021-11-24T16:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2206299#M33120</link>
      <description>&lt;P&gt;Am having Premium Per User license.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the below screenshot for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sowmyas_0-1637773616036.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/635687i45E78B19B76E246C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sowmyas_0-1637773616036.png" alt="sowmyas_0-1637773616036.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 17:07:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2206299#M33120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-24T17:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2206302#M33121</link>
      <description>&lt;P&gt;I tried with Username, Password and with Access token as well.&lt;/P&gt;&lt;P&gt;But am getting the same error in both cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 17:13:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2206302#M33121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-24T17:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2206366#M33122</link>
      <description>&lt;P&gt;OK, one more thing to check. The Capacity administrator has the ability to set the XMLA endpoint to &lt;STRONG&gt;Off&lt;/STRONG&gt;, &lt;STRONG&gt;Read Only&lt;/STRONG&gt; or &lt;STRONG&gt;Read Write&lt;/STRONG&gt;. If it is set to &lt;STRONG&gt;Off&lt;/STRONG&gt;, the behavior you are seeing is expected. Are you able to check the &lt;STRONG&gt;XMLA Endpoint&lt;/STRONG&gt; setting in &lt;STRONG&gt;Capacity Settings&lt;/STRONG&gt; in the Power BI Admin portal as shown in this screenshot? If you don't have Capacity Admin permissions, you will need to find someonbody who does.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TedPattison_0-1637776466971.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/635696i6A7D7EE85C50F516/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TedPattison_0-1637776466971.png" alt="TedPattison_0-1637776466971.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 17:58:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2206366#M33122</guid>
      <dc:creator>TedPattison</dc:creator>
      <dc:date>2021-11-24T17:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2207106#M33133</link>
      <description>&lt;P&gt;Do capacity settings will be available for premium per user account?&lt;/P&gt;&lt;P&gt;When am checking admin portal capacity settings are not available for my premium per user account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sowmyas_0-1637821865766.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/635870i7A4E2FF101F3A048/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sowmyas_0-1637821865766.png" alt="sowmyas_0-1637821865766.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 06:32:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2207106#M33133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-25T06:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2207745#M33144</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/2834"&gt;@TedPattison&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have eneabled XMLA Endpoint for ReadWrite and when i try to execute the above code am again getting the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sowmyas_0-1637843334351.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/636013i26886BCE2D423911/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sowmyas_0-1637843334351.png" alt="sowmyas_0-1637843334351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sowmyas_1-1637843465109.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/636015iA4D55F5633BC4C87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sowmyas_1-1637843465109.png" alt="sowmyas_1-1637843465109.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please provide your inputs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 12:32:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2207745#M33144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-25T12:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2212093#M33205</link>
      <description>&lt;P&gt;I have given you all the ideas I have about what the problem might be and how to troubleshoot it. I cannot think of anything else that might be wrong. I think at this point, you should contact Microsoft support who can captire more diagnositc info that might help to troubleshoot this.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 13:55:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/2212093#M33205</guid>
      <dc:creator>TedPattison</dc:creator>
      <dc:date>2021-11-29T13:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically connecting to power BI premium workspace using workspace url</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/3638176#M48753</link>
      <description>&lt;P&gt;The key here is using the correct libraries&lt;BR /&gt;&lt;BR /&gt;counter-intuitively do not use the&amp;nbsp;&lt;STRONG&gt;Microsoft.AnalysisServices.Tabular library&amp;nbsp;&lt;BR /&gt;you need to use these libraries based on your code base.&lt;BR /&gt;&lt;STRONG&gt;For .NET Core we need to install those two libraries:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Microsoft.AnalysisServices.NetCore.retail.amd64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Microsoft.AnalysisServices.AdomdClient.NetCore.retail.amd64&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;For .NET Framework those two libraries:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Microsoft.AnalysisServices.retail.amd64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Microsoft.AnalysisServices.AdomdClient.retail.amd64&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 05:40:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Programatically-connecting-to-power-BI-premium-workspace-using/m-p/3638176#M48753</guid>
      <dc:creator>ozhug</dc:creator>
      <dc:date>2024-01-15T05:40:30Z</dc:date>
    </item>
  </channel>
</rss>

