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:\Users\<MY USER>' is denied.

 

 

But I do have access to this folder, I can create directories, and write text to files without issues, e.g.

BTW: I don't have admin rights on my machine.  So I cannot run PowerShell as admin.

 

Thank you

  • 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'

     

1 Reply

  • BoNDoK00's avatar
    BoNDoK00
    Frequent Visitor

    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'