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:
- 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. - Verify Solution State: Make sure the solution is in an unmanaged state. Managed solutions can trigger uninstall behavior after updates.
- 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.
- 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.