Skip to main content

Notifications

Community site session details

Community site session details

Session Id : M01dyjMbxCRwjS2O9jusdq
Power Apps - Power Apps Pro Dev & ISV
Unanswered

Error when using Microsoft Power Platform CLI to download portal content

Like (1) ShareShare
ReportReport
Posted on 20 Aug 2021 03:39:43 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.

  • NewPeter Profile Picture
    12 on 18 Oct 2022 at 15:53:04
    Re: Error when using Microsoft Power Platform CLI to download portal content

    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

  • Jady Profile Picture
    114 on 08 Sep 2021 at 09:20:43
    Re: Error when using Microsoft Power Platform CLI to download portal content

    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.  

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on 23 Aug 2021 at 17:39:19
    Re: Error when using Microsoft Power Platform CLI to download portal content

    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!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,653 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard