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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Update Component

(0) ShareShare
ReportReport
Posted on by 75

Hi,

 

I have worked on the component and created the app. Now, when I have changed my code and used following commenad..

 

1. MsBuild /t:restore

2. Msbulid

 

it generates the zip file. Now, I already have component uploaded. first it does not ask if i want to replace the component. and second new code does not take effect. 

 

How do i make sure that my code is updated and running in the model driven app ?

I have the same question (0)
  • Hemant Gaur Profile Picture
    Microsoft Employee on at
    You would need to update the control version in the manifest file. We are working on improving the user experience here as multiple folks have reported this.

    There is no override warning as the action of solution import with the updated control version implies the upgrade intent, like all other solution components.
  • GLMSDev Profile Picture
    75 on at

    Can you please provide which tag in manifest file ? When I did it threw an error of version not matching and  did not allow me to upload the component.

  • Verified answer
    Hemant Gaur Profile Picture
    Microsoft Employee on at

    It is following attribute in manifest. 

    <control namespace="MyNamespace" constructor="MyControl" version="0.0.1" ...
     
    Note that if there are incompatable changes in the control manifest like say removal/addition of the required property than the import fails. This is because there is no way for the current version configuration to account for the change. For these rare cases, please remove the control from configuration and then uninstall it. 
     
     
     
  • mcutchins Profile Picture
    85 on at

    I tried changing the version number and the changes still did not take.  I have to remove the solution (which entails removing the control from each field, form, view, etc. it is associated with) and then import the solution as new.  This is not great from a maintenance perspective as manual changes are tedious and error prone. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @mcutchins This was helpful for me.  I accidentally posted the same topic as you.  This definitely is a lot to just update the component after you make changes to it.

  • Greg Hurlman (MSFT) Profile Picture
    Microsoft Employee on at

    If you update your control version *and* the solution version, you should see an update without having to delete the old one first. We recognize this isn't ideal, and are working on a better devloop-deployment story.

  • MJain Profile Picture
    2,450 on at

    Which files are you referring to for updating solution version.

     

    Thanks

  • Ben Thompson Profile Picture
    1,400 on at

    The file you needed to update the version number in was in the ControlManifest.Input.xml file.

     

    You don't need to do that anymore if you are using the command line to push the controls to your target environment (which is now the recommended approach). 

  • Greg Hurlman (MSFT) Profile Picture
    Microsoft Employee on at

    Please note that the CLI "pac pcf push" method is meant for the dev loop only, not for pushes to a production environment. For that, you should manually bump your version, build for release (msbuild /p:Configuration=release), and deploy the ZIP via the web.

  • JP-09110045-0 Profile Picture
    Microsoft Employee on at

    Another thing to note is that if you are testing the control on Canvas, it requires the version bump as well as it requires the version change to detect that there was an update to the control.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard