powerplatform-build-tools icon indicating copy to clipboard operation
powerplatform-build-tools copied to clipboard

pac powerpages download doesn't include null values so upload doesn't clear removed attributes

Open Cliveo opened this issue 2 years ago • 3 comments

Title says it all,

  1. When you do a download where a field has been cleared, the yml file does not contain the attribute at all. (should be there but null) e.g. multi step form steps previous step field
  2. When you then go to upload to the next environment the value doesn't get cleared

Cliveo avatar Oct 09 '23 21:10 Cliveo

Interestingly, have you tried setting only a space to check if the attribute is still in the file?

allandecastro avatar Oct 30 '23 16:10 allandecastro

They are definitely not in the file, I just recently experienced this with clearing the value for the tab on a basic form as well (it was becoming a multi step basic form through load tabs as steps so needed to the tab attribute cleared). My two examples are both drop downs going from a value to none, not a string field.

Cliveo avatar Oct 30 '23 23:10 Cliveo

This is still a known issue. Current workaround is to add the key and the default value in the YAML files to 'clear' the earlier set value.

MrRishabhJain avatar Sep 16 '24 17:09 MrRishabhJain