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 -f not wo...
Power Apps
Answered

pac pcf push -f not working now

(0) ShareShare
ReportReport
Posted on by 200

Hi , Few months ago I would have to pac pcf push -pp new -f to updated the latest code in solution but now it dosesn't seems to work.Only way that I know left is to increment the version in manifest file.Is there any other way to update the solution

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @sheldoncopper73 ,

    What do you mean by "it doesn't work"? Do you get an error?

     

    There were issues with an earlier version of "pac": it seemed to upload, but it actually didn't.

    The latest version "1.3.1" works though. Which version do you use?

     

    You don't need the "-f" anymore: it does a full update anyways - unfortunately this means that I cannot upload in a few seconds anymore, it takes pretty long to have in uploaded, but it's still better than having to increment the version, build and install the new solution manually.

     

    Best regards,
    Diana
    ----------
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @sheldoncopper73 ,

    Do you mean that the "pac pcf push -pp new -f" command work well before?

    Have you re-build your PCF component project before updating it to your solution?

     

    Before updating the code to the latest in your solution, please make sure you have re-build PCF component project. In addition, the -publisher-prefix value in your push command should match the publisher prefix of your solution in which the components will be included. In other words, the -publisher-prefix value in your Push command should match the  -publisher-prefix value you defined in your pac solution init command.

    Please check the following article for more details:

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/import-custom-controls#deploying-code-components

     

    After you re-build your PCF Component Project using "npm run build" command, please run the following command:

     

    msbuild /t:build /restore
    

     

    to re-build your solution file. After that, you could consider remove the solution from your CDS Environment, then re-import the solution file into your CDS Environment manually, then check if the issue is fixed.

    More details about updating an existing PCF project, please check the following article:

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/updating-existing-controls#updating-the-project-files

     

    As an another solution, you could also consider another solution file based on the latest code using the following command:

     

    pac solution init --publisher-name new_publisher_name --publisher-prefix new_prefix_value

     

    Also please make sure you have installed latest pac command on your side, please run the following command to install the latest version of pac command:

    pac install latest

     

    2.JPG

     

     

    Best regards, 

  • Sheldon Copper Profile Picture
    200 on at

    Thanks for your reply will try the given steps

  • v-xida-msft Profile Picture
    on at

    Hi @sheldoncopper73 ,

    Have you taken a try with the solution I provided above? Is it helpful?

     

    Please consider take a try with the solution I provided above, then check if the issue is fixed. If the solution is helpful in your scenario, please consider go ahead click "Accept as Solution" to identify this thread has been solved.

     

    If you have any issue with the solution, please feel free to let me know here.

     

    Best regards,

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 301 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 297 Most Valuable Professional

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard