web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / pac pcf push installs ...
Power Apps
Unanswered

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 🙂

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    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?

  • mschafer85 Profile Picture
    42 on at

    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 Moderator on at

    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).

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    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

  • mschafer85 Profile Picture
    42 on at

    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 🙂

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard