How to prevent "uninstall" operation after pac pcf push command ran when using Visual Studio Code Power Platform Tools extension

Chen, Ken 25 Reputation points
2024-09-29T19:22:58.9+00:00

For this exercise Using the Power Apps CLI - Task 2, Step 16 https://learn.microsoft.com/en-us/training/modules/developer-tools-extend/exercise

The solution is imported, but the uninstall followed so I'm not able to use the solution without manual import it again in maker portal.

User's image

Thank you.

Microsoft Power Platform Training
Microsoft Power Platform Training
Microsoft Power Platform: An integrated set of Microsoft business intelligence services.Training: Instruction to develop new skills.
507 questions
{count} votes

Accepted answer
  1. Syed Saleem Peera 9,620 Reputation points Microsoft Vendor
    2024-09-30T03:09:02.4966667+00:00

    Hi Chen, Ken,

    Thanks for reaching out to us on the Microsoft Q&A forum.

    If your solution gets uninstalled automatically after using the pac pcf push command, try the following:

    1. Use --no-uninstall: Run the command with the flag: pac pcf push --no-uninstall This prevents the automatic uninstall of the previous solution.
    2. Check solution state: Ensure the solution is unmanaged. Managed solutions may get uninstalled during the push process.
    3. Manual import workaround: If uninstall still happens, manually re-import the solution via the Maker Portal as a temporary solution.

    This should help you avoid the uninstall issue after pushing.

    If you are still facing any issue, please let us know in the comments and where you are encountering this error along with the screenshot for reference. We are glad to help you.

    If you found the information helpful, we would greatly appreciate it if you could acknowledge it by selecting the Accept Answer & Upvote options.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.