cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jhandel
New Member

Can't seem to update Custom Controls in D365?

I have a PCF control (custom control) in D365 that for some reason I can't update. I have set the version in my solution.xml and in my controlmanifest.xml multiple times to try to get the javascript to install but it just skips over it.

Even though the solution deployment says it succeeds (with the solution version number) when I export the solution the controlmanifest.xml that downloads is the originally deployed version.

It seems crazy that you can't update a custom control that you have deployed so I have to be missing something

example Scenario:

  • Starting Solution version = 1.02
  • Starting controlmanifest.xml version = 0.0.123
  • install new solution with version 1.03. & 1.0.1
  • Solution shows as 1.03 & Logs show that the control was processed
  • Download the Solution (export)
  • Solution xml show version 1.03 (good)
  • controlmanifest.xml version 0.0.123 (what, what???)
  • control javascript still the old javascript (v 0.0.123)

I should note this is an unmanaged solution and the control is then shared with our primary customizations solution (also unmanaged) that deploys out to UAT and PROD.

22 REPLIES 22

Hi @Magesoe , 

I had the same thought in the beginning.

But there is a big difference: the bundle.js generated and uploaded using "pac pcf push" is not minimized. Using "msbuild" you can generate both managed and unmanaged solution for production (using msbuild /p:configuration=Release).

 

You can see in my blog what a difference it makes in terms of size: https://dianabirkelbach.wordpress.com/2020/04/28/pcf-solution-packaging-unmanaged-production-release...

 

This community thread helped me understand this: https://powerusers.microsoft.com/t5/Power-Apps-Pro-Dev-ISV/Production-PCF-bundling-in-unmanaged-solu...

 

Hope it helps.

 

Kind regards,

Diana

 

Kind 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."

Lot of discussion on the topic  - here are my comments 🙂 

 

1. PCF control not updated 

incrementing the control manifest version should update the control in the server. Two step verification would be first to check that the solution package has the new control version and then on server the control is updated. 

 

2. Controls need to be reconfigured 

Should not happen, once upgraded all existing configurations on model apps should take the new version. there are some internal caches for load optimization so browser window refresh or reload might be required. 

 

3. Increment solution version 

this is not needed , just the control manifest version should suffice. 

 

4. PAC push is faster and optimal way for development and saves lot of time incrementing as @DianaBirkelbach mentioned. If you try it out , you cannot get back to manifest update 🙂 

 

5. Control update in canvas apps 

For completeness, once the control is updated in CDS , the canvas app needs to be reopened to prompt for control upgrade . This is sub optimal for canvas PCF development and we are evalauting options to improve. PCF push also does not help in this case.

 

hemant 

Hi, how can I delete a custom control? I deleted its solution but can still use the custom control. I think that it is because I had the custom control being used by a field at the time of deleting the solution. 

HemantG
Power Apps
Power Apps

Control in unmanaged solution like all other unmanaged objects is not deleted with solution delete. 

You can go to customization explorer and find control under "custom controls'.

 

System does not let you delete the in use control as dependencies are tracked. Remove from forms where it is used, publish customization and then you can delete control.

 

thanks,

Hemant 

rezaniroomand
Frequent Visitor

I have the same problem with a virtual PCF control. I have already tried:

  1. Incrementing any of the three numbers of the version (a.b.c) in the PCF control has no effect.
  2. Incrementing solution version and the PCF version also does not have any effect.
  3. Incrementing any of the three numbers of the version (a.b.c) in the PCF control and using the `pac pcf push` command has no effect.

No matter what I do, the old bundle.js file is loaded. Of courser I have tried hard refresh. When I push directly or import the solution which includes the new version of the PCF control (which I have verified), the history of the solution indicates that the new version has been uploaded, but the last modification date of the control remains the same. 

DianaBirkelbach
Super User
Super User

Hi @rezaniroomand , 

What version of pac cli do you use?

Kind 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."

Thanks for comin back to me. The version is 1.18.4+g1a00e63 which I assume is the latest.

DianaBirkelbach
Super User
Super User

HI  @rezaniroomand , 

There seem to be an issue with pac cli at the moment. Switching to pac cli v1.16 seems to solve the problem. 

Another  way is to make a  publishAll after that. 

Here is the other thread, where we talked about that: https://powerusers.microsoft.com/t5/Power-Apps-Pro-Dev-ISV/Virtual-PCF-Dataset-Component-Not-Getting...

Kind 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."

Hi @DianaBirkelbach ,

Perhaps MS needs better regression testing. I'll give it a try and report back here for the record.

I've just reported the issue here: https://github.com/microsoft/powerplatform-vscode/issues/294

Kind 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."

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (3,627)