<?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 Refresh a Dataset with an API error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-a-Dataset-with-an-API-error/m-p/3147242#M41875</link>
    <description>&lt;P&gt;I use this API to automatically refresh a dataset via a Powershell script with a Service Principal, however when I run the script I get this error in the dataset.&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="Charline_74_0-1679491118798.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/891061i464045C27E1DC63F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Charline_74_0-1679491118798.png" alt="Charline_74_0-1679491118798.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My script :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$IDWKS = Get-PowerBIWorkspace -Name 'WKS - [REC] FINANCE'
$IDDTS = Get-PowerBIDataset -WorkspaceId $IDWKS.Id

Invoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1.0/myorg/groups/$($IDWKS.Id)/datasets/$($IDDTS.Id)/refreshes" -Method POST -Body ('$($IDDTS.Id)')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2023 13:19:50 GMT</pubDate>
    <dc:creator>Charline_74</dc:creator>
    <dc:date>2023-03-22T13:19:50Z</dc:date>
    <item>
      <title>Refresh a Dataset with an API error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-a-Dataset-with-an-API-error/m-p/3147242#M41875</link>
      <description>&lt;P&gt;I use this API to automatically refresh a dataset via a Powershell script with a Service Principal, however when I run the script I get this error in the dataset.&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="Charline_74_0-1679491118798.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/891061i464045C27E1DC63F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Charline_74_0-1679491118798.png" alt="Charline_74_0-1679491118798.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My script :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$IDWKS = Get-PowerBIWorkspace -Name 'WKS - [REC] FINANCE'
$IDDTS = Get-PowerBIDataset -WorkspaceId $IDWKS.Id

Invoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1.0/myorg/groups/$($IDWKS.Id)/datasets/$($IDDTS.Id)/refreshes" -Method POST -Body ('$($IDDTS.Id)')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 13:19:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-a-Dataset-with-an-API-error/m-p/3147242#M41875</guid>
      <dc:creator>Charline_74</dc:creator>
      <dc:date>2023-03-22T13:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh a Dataset with an API error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-a-Dataset-with-an-API-error/m-p/3151362#M41912</link>
      <description>&lt;P&gt;Do exactly as the error message says.&amp;nbsp; Refresh the credentials in the dataset settings page. Credentials do expire, service principal or not.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 02:12:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-a-Dataset-with-an-API-error/m-p/3151362#M41912</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-24T02:12:13Z</dc:date>
    </item>
  </channel>
</rss>

