Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

pac pcf push installs a solution and immediately uninstalls it

(1) ShareShare
ReportReport
Posted on by 42

Hi everybody,

 

I'm having a strange issue with my code component.

 

I've followed the instructions at https://learn.microsoft.com/en-us/training/modules/build-power-apps-component/package-code-component and built my component. However, when I use

pac pcf push --publisher-prefix marc


there's no errors on the command line and the solution gets imported successfully - but immediately uninstalled, too.

mschafer85_0-1702640238635.png


No error codes to be seen.

When I create a solution via msbuild and upload it manually, things work just fine. The solution is installed and stays installed. No automatic uninstall.

I've tried that with two different (Developer) tenants; once inside a Production environment, once inside a Developer environment. And each time I had the same issue.

Maybe anyone has an idea why this is happening? That would make my week 🙂

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: pac pcf push installs a solution and immediately uninstalls it

    Hi @mschafer85 , 


    The "pac pcf push" issue is fixed with pac cli version 1.30.6. 😍
    This will be available soon in VSCode too, but until then, you can use the standalone version of the pac cli.
    Even the new parameter "--solution-unique-name" worked now. We can now specify which solution should be used. The publisher prefix is taken from the solution.

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: pac pcf push installs a solution and immediately uninstalls it

    Hi @mschafer85 , 
    I have now a better workaround. Maybe it helps in the future: https://dianabirkelbach.wordpress.com/2024/01/16/how-to-fix-pac-pcf-push-issues-with-pac-cli-newer-than-1-28-3-publisher-error-or-solution-deleted/

  • mschafer85 Profile Picture
    42 on at
    Re: pac pcf push installs a solution and immediately uninstalls it

    Hi @DianaBirkelbach@cchannon,

    thanks for your suggestions!

    It indeed was caused by some issue with the Microsoft PowerPlatform CLI - I downgraded the "Power Platform Tools" extension within VS Code to 2.0.3 and it worked like a charm.

    Just in time for the weekend 🙂

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: pac pcf push installs a solution and immediately uninstalls it

    Hi @mschafer85 , 
    Currently there are issues with "pac pcf push". Maybe you could try to downgrade the "pac cli" and see if your issue persists.
    Here the other thread for reference: https://powerusers.microsoft.com/t5/Power-Apps-Pro-Dev-ISV/PCF-Push-eror/m-p/2476718/highlight/true#M9545

  • cchannon Profile Picture
    4,702 Super User 2025 Season 1 on at
    Re: pac pcf push installs a solution and immediately uninstalls it

    OK, that would be my first suspect. I don't have a good reason to suspect it, but having two different installs of the same thing, one with background updates and the other without... It's no smoking gun, but it is deserving of suspicion.

     

    So I would uninstall both, then install one of your choice (personally, I like the Windows install because it gets earlier feature releases like the PowerFx support just introduced a few weeks ago, but the VS Code tools are definitely more stable). That will eliminate two possibilities at once: the possibility that there is a conflict between the tools and the possibility that you have an old/bad build (which happens: there have been a lot of PAC builds released with nasty bugs).

  • mschafer85 Profile Picture
    42 on at
    Re: pac pcf push installs a solution and immediately uninstalls it

    That happens with every component I build, unfortunately - no matter the content, no matter the tenant or environment.

    I've installed PAC in Windows:

    mschafer85_0-1702644564623.png



    But in VS Code, I've also got the Power Platform Tools extension.

  • cchannon Profile Picture
    4,702 Super User 2025 Season 1 on at
    Re: pac pcf push installs a solution and immediately uninstalls it

    That is bizarre. Is it just this one component? Like, if you write a basic Hello World, can you deploy that?

     

    Second question, is PAC installed through VS Code or directly to windows as standalone?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 87 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 67 Super User 2025 Season 1

Overall leaderboard