Unable to publish solution from Visual Studio Code Power Platform Tools?

Chen, Ken 0 Reputation points
2024-09-29T19:28:07.4166667+00:00

When use the CLI to publish the solution, e.g. pac pcf push -pp <lab>, the solution temporary imported in the environment, but followed by an "automatic" uninstall, hence the solution couldn't never been stored. Any ideas why the uninstall is triggered? 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.
411 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Syed Saleem Peera 6,230 Reputation points Microsoft Vendor
    2024-09-30T03:15:22.4+00:00

    Hi Chen, Ken,

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

    It seems that the solution is being automatically uninstalled after using the pac pcf push command. This behavior may be caused by the CLI treating it as a temporary import. Here are a few steps to resolve this:

    1. Use the --no-uninstall Flag: Run the command with this flag: pac pcf push --no-uninstall This prevents the CLI from uninstalling the solution automatically.
    2. Verify Solution State: Make sure the solution is in an unmanaged state. Managed solutions can trigger uninstall behavior after updates.
    3. Manual Import: If the issue persists, try manually importing the solution through the Maker Portal. This can serve as a workaround to ensure the solution is stored properly.
    4. Check for CLI Updates: Ensure that your Power Platform Tools and CLI (pac) are up to date, as this may be a bug resolved in newer versions.

    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.


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.