Tab settings on an object without tab
Detection
- RegExp:
Error (.*) You can't edit tab settings for (.*), as it's not a valid tab
Examples
Error Admin You can't edit tab settings for Invoice__c, as it's not a valid tab.
Resolution
{1} sets the visibility of the tab of {2}, but {2} has no tab in the target org.
- Deploy the CustomTab of {2}: retrieve it from your org with the Metadata Retriever of VS Code, commit it and save your User Story: sfdx-hardis adds it to manifest/package.xml
- With delta deployments, an item that did not change in the Pull Request is not deployed: change it in the Pull Request, or turn on useDeltaDeploymentWithDependencies (https://sfdx-hardis.cloudity.com/salesforce-devops-config-delta-deployment/)
- Or remove the <tabVisibilities> block of {2} from {1}