<?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 Export-PowerBIDataflow in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Export-PowerBIDataflow/m-p/2967361#M40300</link>
    <description>&lt;P&gt;Here is my PowerShell script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "APPID", ("Secret" | ConvertTo-SecureString -AsPlainText -Force)

Connect-PowerBIServiceAccount -ServicePrincipal -Tenant "TenantID" -Credential $credential -Environment "Public"


Export-PowerBIDataflow -WorkspaceId "eae420bb-eb1b-40a5-90d6-a057156bdcc6" -Id "459dc124-187d-48cf-9888-4f2be43f61bf" -OutFile C:\Users\chbonier\Documents\DTF&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Export-PowerBIDataflow : Failed to write dataflow with ID 459dc124-187d-48cf-9888-4f2be43f61bf to file C:\Users\chbonier\Documents\DTF. Message: L'accès au chemin 
d'accès 'C:\Users\chbonier\Documents\DTF' est refusé.
Au caractère Ligne:6 : 1
+ Export-PowerBIDataflow -WorkspaceId "eae420bb-eb1b-40a5-90d6-a057156b ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.Power...PowerBIDataflow:ExportPowerBIDataflow) [Export-PowerBIDataflow], Exception
    + FullyQualifiedErrorId : Failed to write dataflow with ID 459dc124-187d-48cf-9888-4f2be43f61bf to file C:\Users\chbonier\Documents\DTF. Message: L'accès au chemin  
   d'accès 'C:\Users\chbonier\Documents\DTF' est refusé.,Microsoft.PowerBI.Commands.Data.ExportPowerBIDataflow&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why access to the path is refused ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In Advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Charline&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 08:00:35 GMT</pubDate>
    <dc:creator>Charline_74</dc:creator>
    <dc:date>2022-12-14T08:00:35Z</dc:date>
    <item>
      <title>Export-PowerBIDataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-PowerBIDataflow/m-p/2967361#M40300</link>
      <description>&lt;P&gt;Here is my PowerShell script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "APPID", ("Secret" | ConvertTo-SecureString -AsPlainText -Force)

Connect-PowerBIServiceAccount -ServicePrincipal -Tenant "TenantID" -Credential $credential -Environment "Public"


Export-PowerBIDataflow -WorkspaceId "eae420bb-eb1b-40a5-90d6-a057156bdcc6" -Id "459dc124-187d-48cf-9888-4f2be43f61bf" -OutFile C:\Users\chbonier\Documents\DTF&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Export-PowerBIDataflow : Failed to write dataflow with ID 459dc124-187d-48cf-9888-4f2be43f61bf to file C:\Users\chbonier\Documents\DTF. Message: L'accès au chemin 
d'accès 'C:\Users\chbonier\Documents\DTF' est refusé.
Au caractère Ligne:6 : 1
+ Export-PowerBIDataflow -WorkspaceId "eae420bb-eb1b-40a5-90d6-a057156b ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.Power...PowerBIDataflow:ExportPowerBIDataflow) [Export-PowerBIDataflow], Exception
    + FullyQualifiedErrorId : Failed to write dataflow with ID 459dc124-187d-48cf-9888-4f2be43f61bf to file C:\Users\chbonier\Documents\DTF. Message: L'accès au chemin  
   d'accès 'C:\Users\chbonier\Documents\DTF' est refusé.,Microsoft.PowerBI.Commands.Data.ExportPowerBIDataflow&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why access to the path is refused ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In Advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Charline&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 08:00:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-PowerBIDataflow/m-p/2967361#M40300</guid>
      <dc:creator>Charline_74</dc:creator>
      <dc:date>2022-12-14T08:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export-PowerBIDataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-PowerBIDataflow/m-p/2969350#M40310</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/475779"&gt;@Charline_74&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;According to The error message, it seems like these scripts failed to access to the specific path. I'd like to suggest you check the permissions of the PowerShell and folder if it allows to execute these operations.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;In addition, you can also try to change the absolute path to relative path if it helps with these process.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 02:01:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-PowerBIDataflow/m-p/2969350#M40310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-15T02:01:34Z</dc:date>
    </item>
  </channel>
</rss>

