Skip to content

Hidden standard button unknown

Detection

  • RegExp: Error (.*) In field: excludeButtons, no such standard action:\s*(\w+)

Examples

  • Error Account-Account Layout In field: excludeButtons, no such standard action:SmartFillEnrich

Resolution

Layout {1} hides the standard button {2}, which does not exist in the target org (its feature is not enabled there).
- Enable the feature that brings {2} in the target org
- Or, to keep it for the orgs that have it, add a replacement rule that removes it before each deployment to the orgs that refuse it (https://sfdx-hardis.cloudity.com/salesforce-devops-config-replacement-rules/):
  sf hardis:project:replacement:create --agent --layer project --id remove-unknown-excluded-button --type xml-remove --files "**/layouts/*.layout-meta.xml" --xml-path "Layout/excludeButtons[.={2}]" --include-branches TARGET_BRANCH
- Or remove <excludeButtons>{2}</excludeButtons> from {1}

Comments