Announcements
I am getting the following error while trying to push the component into my environment after it has been rebuilt:
Error: Unable to cast object of type 'System.String' to type 'System.Byte[]'.
@HemantG
First steps, first - if you run npm run build what do you see.
It's a silly thing to suggest but the push command does return build errors..
I think I have the same issue here: https://powerusers.microsoft.com/t5/Power-Apps-Component-Framework/Bug-in-quot-pac-pcf-push-quot-when-updating-images/m-p/453008
In my case it started after I added some images to my component. Since then, was only possible to upload it after I deleted the component from the solution (after removing it from the form).
Hoping the update for PowerApps CLI will come soon.
@DianaBirkelbach If you are right a adding --force or -f will fix it.
so just enter -f at the end of your pac pcf push -pp prefix -f command.
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 610
Haque 317
WarrenBelz 315 Most Valuable Professional