<?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: Using Get-PowerBIWorkspace PowerShell command in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/476376#M14610</link>
    <description>&lt;P&gt;It looks like the issue was being caused by a&amp;nbsp;Newtonsoft.Json conflict.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The issue is likely due to a mismatch in Newtonsoft.Json between the Power BI cmdlets and some other cmdlets loaded into PowerShell session (via profile or calling directly)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More info here:&amp;nbsp;&lt;A href="https://github.com/Microsoft/powerbi-powershell/issues/60" target="_blank"&gt;https://github.com/Microsoft/powerbi-powershell/issues/60&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current workaround is to use Powershell Core&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jul 2018 11:32:26 GMT</pubDate>
    <dc:creator>vrocca</dc:creator>
    <dc:date>2018-07-31T11:32:26Z</dc:date>
    <item>
      <title>Using Get-PowerBIWorkspace PowerShell command</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/471862#M14482</link>
      <description>&lt;P&gt;This may be a simple/dumb question, but I'm trying to get a list of Workspaces using PowerShell, and I'm getting an error "Attempted to access an element as a type incompatible with the array"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Error.png" style="width: 991px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/108965i74070FD01BE68035/image-dimensions/991x114?v=v2" width="991" height="114" role="button" title="Error.png" alt="Error.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;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 16:14:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/471862#M14482</guid>
      <dc:creator>vrocca</dc:creator>
      <dc:date>2018-07-25T16:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using Get-PowerBIWorkspace PowerShell command</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/471885#M14484</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Victor, would you be so kind to head over to the githup repo of the cmdlets and file this as an issue under:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/Microsoft/powerbi-powershell/issues" target="_blank"&gt;https://github.com/Microsoft/powerbi-powershell/issues&lt;/A&gt;? I've seen this error before but it went away after I updated .NET&amp;nbsp;and Powershell. Hope this helps.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kay&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 16:32:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/471885#M14484</guid>
      <dc:creator>kayu</dc:creator>
      <dc:date>2018-07-25T16:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using Get-PowerBIWorkspace PowerShell command</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/471886#M14485</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Victor, would you be so kind to head over to the githup repo of the cmdlets and file this as an issue under:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/Microsoft/powerbi-powershell/issues" target="_blank"&gt;https://github.com/Microsoft/powerbi-powershell/issues&lt;/A&gt;? I've seen this error before but it went away after I updated .NET&amp;nbsp;and Powershell. Hope this helps.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kay&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 16:34:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/471886#M14485</guid>
      <dc:creator>kayu</dc:creator>
      <dc:date>2018-07-25T16:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Get-PowerBIWorkspace PowerShell command</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/471974#M14486</link>
      <description>&lt;P&gt;Thanks Kay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have PSVersion 5.1 and .NET Framework 4.7. Do you have something different?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 18:32:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/471974#M14486</guid>
      <dc:creator>vrocca</dc:creator>
      <dc:date>2018-07-25T18:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Get-PowerBIWorkspace PowerShell command</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/476376#M14610</link>
      <description>&lt;P&gt;It looks like the issue was being caused by a&amp;nbsp;Newtonsoft.Json conflict.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The issue is likely due to a mismatch in Newtonsoft.Json between the Power BI cmdlets and some other cmdlets loaded into PowerShell session (via profile or calling directly)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More info here:&amp;nbsp;&lt;A href="https://github.com/Microsoft/powerbi-powershell/issues/60" target="_blank"&gt;https://github.com/Microsoft/powerbi-powershell/issues/60&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current workaround is to use Powershell Core&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 11:32:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/476376#M14610</guid>
      <dc:creator>vrocca</dc:creator>
      <dc:date>2018-07-31T11:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Get-PowerBIWorkspace PowerShell command</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/670419#M19131</link>
      <description>&lt;P&gt;I was battling this error as well.&amp;nbsp; However, I was able to get by it by using a user that is a Global Administrator.&amp;nbsp; I would suggest double checking that as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 20:47:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/670419#M19131</guid>
      <dc:creator>timmac</dc:creator>
      <dc:date>2019-04-15T20:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Get-PowerBIWorkspace PowerShell command</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/929236#M22283</link>
      <description>&lt;P&gt;it's a bit of a necro-thread reply, however i was able to work out what was going on...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially it seems that Powershell only loads one version of each DLL (per session), no matter how many modules you are referencing it from. This of course makes perfect sense - &lt;STRONG&gt;UNTIL&lt;/STRONG&gt; you first reference a module which uses an "old" version of newtonsoft.json.dll (I did a search, and had &amp;gt;50 &lt;FONT face="courier new,courier"&gt;newtonsoft.json.dll&lt;/FONT&gt; files on my PC with many different versions).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the trick is, at the start of a Powershell session make sure you load a module which references a new enough version of the newtonsoft DLL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this did the trick for me.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;if (Get-Module -Name MicrosoftPowerBIMgmt -ListAvailable) 
    {
    Import-Module MicrosoftPowerBIMgmt -ErrorAction SilentlyContinue #workaround
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 23:43:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Get-PowerBIWorkspace-PowerShell-command/m-p/929236#M22283</guid>
      <dc:creator>TheFlyingBadger</dc:creator>
      <dc:date>2020-02-11T23:43:46Z</dc:date>
    </item>
  </channel>
</rss>

