I hope that this issue get fixed soon. But I was stuck with it since about two months now, and I saw a lot of questions in the community. Until we get a fix, I hope my workaround will help you.
The PCF developer are used to use “pac pcf push -pp
If a PCF with your publisher was already uploaded
The errors we get are different. In case the PCF was already uploaded to the environment, you get an error while trying to “push” the pcf
If you have a look in the log, it’s saying something something about a deletion issue in your environment (and the publisher). I couldn’t understand until recently
I’ve open an issue, but not solved yet.
If no other PCF was uploaded with your publisher yet
In that case, the “pac pcf push” works, but you don’t see the PCF in your environment. No “PowerAppsTools_
1. Downgrading the “pac cli”
Until today I didn’t knew what happened, and the only way I could workaround was to downgrade the pac cli. You can make that
- if using the standalone version of the pac cli “pac use”.
So you could switch using “pac use 1.28.3”
If you are using the VSCode version, you can downgrade by selecting the “Power Platform Tools” extension, and choosing the “Uninstall flyout”, and then “Install another version”
It works if you downgrade to version “v2.0.13” of the VSCode Extension. Don’t forget to reopen VSCode, otherwise you are still using the older version in your VSCode Terminal.
By downgrading we fix the “pcf push” issue, but we cannot use the newer features. So would be good to have a better solution.
2. Fix the reason of the problem
Let’s have a look again to the relase notes of the pac cli 1.29.6
“pcf push supports target environment
– Adds the –solution-unique-name argument (mutually exclusive with –publisher-prefix argument)
– The temporary solution (and the temporary publisher) is now deleted after import is successful.
– The publisher prefix from the target environment is used”
So it’s about deleting that solution. The fix depends on the situation of your environment.
If it’s your first upload in the environment
Then you don’t see the PCF because it lands inside the default solution. The “PowerAppsTools_
But only the solution is uninstalled, not the PCF itself.
To workaround the issue, I’ve just added the added the PCF to another solution (where I use the PCF for instance). Or maybe make your own PowerAppsTools solution (like “PowerAppsTools1_
Unfortunately I couldn’t add the PCF to another solution using the new maker experience (don’t know if this is only in my environment), but this worked with the “classic” customizing.
Once I’ve done that, I could use “pac pcf push” and I could see the updates in my solution.
If it’s not the first upload with the same publisher prefix
Well, we know now, that the “pac cli” is trying to delete the “PowerAppsTools_
- So the solution would be to move all the PCFs from the “PowerAppsTools_
” to another one (for instance I’ve make a solution “PowerAppsTools1_ efix>”, and added all my PCFs from “PowerAppsTools_ ”. The new created solution must have the same publisher with the same , of course.
2. Then we can delete the “PowerAppsTools_
3. Now the “pac pcf push -pp
I hope this get fixed soon! But until now, hope it helps!
The blog image was generated with Microsoft Designer.