microsoft / powerplatform-build-tools

Power Platform Build Tools automate common build and deployment tasks related to Power Platform. This includes synchronization of solution metadata (a.k.a. solutions) between development environments and source control, generating build artifacts, deploying to downstream environments, provisioning/de-provisioning of environments, and the ability to perform static analysis checks against your solution using the PowerApps checker service.
MIT License
186 stars 38 forks source link

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

Open Cliveo opened 11 months ago

Cliveo commented 11 months ago

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
allandecastro commented 11 months ago

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

Cliveo commented 11 months ago

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.

MrRishabhJain commented 2 weeks ago

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.