Working over the weekend it seems that pac pcf push --force is currently broken once a PCF component has been loaded into the environment.
It works when the component is first installed but all subsequent attempts fail to update the component even though --force confirms it is successfully).
I don't know if it's relevant but running pac pcf push without the force option results in the following error message (which I think is different to before so I suspect might be related).
Checking if the control 'hdn_hdn.DynamicOptionSet' already exists in the current org.
The control exists in the current org, loading the control's details.
Comparing the manifest in the current org to the manifest at \DynamicOptionSet\ControlManifest.xml.
The control manifests are the same.
Using incremental update.
Locating the web resources used by the 'hdn_hdn.DynamicOptionSet' control.
Error: Unable to cast object of type 'System.String' to type 'System.Byte[]'.
Thanks,
Ben
It's not been something I was looking at last week.
I'll be back working on PCF components tomorrow so will find out then.
Have you found a solution for the error?
I do unfortunately have the same error.
I don't think that's the case as I've only just updated to 1.2.6 earlier today (when it complained on the command line that an update was available).
I will investigate it further though, once I've fixed a bug that is stopping some things going out the door.
Maybe you upgraded the "pac" CLI? My colleague had the same issue, after installing the latest version of CLI. After deleting the "Microsoft.PowerApps.CLI.1.2.6" and going back to "1.1.6" it started to work again.
Best regards,
Diana
WarrenBelz
94
Most Valuable Professional
Michael E. Gernaey
72
Super User 2025 Season 1
mmbr1606
71
Super User 2025 Season 1