Forum Discussion

BoNDoK00's avatar
BoNDoK00
Frequent Visitor
3 years ago
Solved

Export-PowerBIReport access to path is denied

I am calling      Export-PowerBIReport -Id <REPORT-GUID> -WorkspaceId <WORKSPACE-GUID> -OutFile '.'     and I am getting this error"     Export-PowerBIReport : Access to the path 'C:\User...
  • BoNDoK00's avatar
    3 years ago

    Sorry stupid question, 

     

    In the command, I should have provided the full path to the pbix file not just the path to the folder: e.g. 

    Export-PowerBIReport -Id <REPORT-GUID> -WorkspaceId <WORKSPACE-GUID> -OutFile '.\a.pbix'