web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error when using Micro...
Power Apps
Unanswered

Error when using Microsoft Power Platform CLI to download portal content

(1) ShareShare
ReportReport
Posted on by 2

Hi experts,

I am using Microsoft Power Platform CLI to download portal content in VS2019 Terminal , and I have installed Power Platform VS Code Extension in advanced.

I followed steps on this doc https://docs.microsoft.com/en-us/powerapps/maker/portals/power-apps-cli-tutorial#download-and-install-visual-studio-code

A few days ago, I was able to download the portal content successfully.

 

But recently, whenever I download portal content, I get an error.

Sorry, the app encountered a non recoverable error and will need to terminate. The exception details have been captured and will be forwarded to the development team, if telemetry has been enabled. Exception Id: bf9cefc4-875b-a844-1b00425a16da.

 

This error occurred after I ran pac paportal download --path [PATH] -id [WebSiteId-GUID]. After I ran it, VS started to download the portal content, but when it was about to complete the download, the error appeared, and some of the downloaded files seemed to have something wrong. 

BruceLu_2-1629430520721.png

 

Please share some ideas to solve this error.

Thanks.

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @BruceLu , 

     

    Maybe you find more details in the logs. 

    If you use the standalone "pac cli msi", you find them here:
    %localappdata%\Microsoft\PowerAppsCLI\Microsoft.PowerApps.CLI.X.X.X\tools\logs

    Just replace the X.X.X with your CLI version.

     

    If you use the VSCode, as in the screenshot above, you find the logs here:

    %appdata%\code\User\globalStorage\microsoft-isvexptools.powerplatform-vscode\pac\tools\logs

     

    Hope this helps!

  • Jady Profile Picture
    147 on at

    Hi @BruceLu

    I don't know what this error means or its cause, but a workaround is to create a new local directory for your Portal files, and change your CLI command to download a fresh set of Portal files into it. Seems to work fine after doing that.  

  • NewPeter Profile Picture
    12 on at

    Hi. I am experiencing similar problem as OP,. I have tried suggestions in the topic and the task is still not running. I have opened new topic here -> https://powerusers.microsoft.com/t5/General-Discussions/Power-portal-extension-in-dev-ops-fails-on-Power-Portal-Download/m-p/1822113#M1247   

     

    Please let me know if you know resolution to the stated problem.

     

    Kind Regards 

    Piotr

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard