mshanemc/shane-sfdx-plugins

๐Ÿ› PermissionSet converted from Profile has invalid visibility tab settings

Closed this issue ยท 2 comments

  1. Acquire some Profile e.g. the Admin.profile SFDX seems to always generate
  2. Convert Profile to PermissionSet: sfdx shane:profile:convert -n Administrator -p Admin
  3. Deploy: sfdx force:source:push -f -g -w 30
  4. ๐Ÿ’ฅ

Error parsing file: 'Hidden' is not a valid value for the enum 'PermissionSetTabVisibility'

Line pointed to:

+    <tabSettings>
+        <tab>Example__c</tab>
-        <visibility>Hidden</visibility>
+    </tabSettings>

DefaultOn was another invalid visibility.
Docs says these are not valid values at all:
image
Manually changing the visibilities to e.g. Visible made it possible to deploy again.

@e02d96ec16 thanks for a super well-crafted issue.

I think I fixed it. Since you've got an org with the issue, can you sfdx update and check out the latest version for me?

@mshanemc Confirmed. Thank you very much!