Skip to content

ExperienceBundle Metadata API not enabled

Detection

  • RegExp: Error (.*) wasn't deployed because ExperienceBundle isn't enabled for Aura sites

Examples

  • Error Partners1 Partners1 wasn't deployed because ExperienceBundle isn't enabled for Aura sites.

Resolution

The ExperienceBundle Metadata API is not enabled for Aura sites in the target org.
- Enable it in the target org (and in the source org before retrieving): Setup -> Digital Experiences -> Settings -> "Enable ExperienceBundle Metadata API"
- The manual deployment action below reminds to do it in each org of the pipeline, with a checkbox in the Pull Request comments

Deployment action

A deployment action can solve this error. Create it on the Pull Request of the current branch:

sf hardis:project:action:create --agent --scope pr --pr-id current --when pre-deploy --type manual --label "Enable ExperienceBundle Metadata API" --instructions "1. Open Setup, type Digital Experiences in the Quick Find box, and open Settings
2. Check \"Enable ExperienceBundle Metadata API\", then Save
3. If it is already checked, there is nothing to do"

Documentation: https://sfdx-hardis.cloudity.com/salesforce-devops-work-on-user-story-deployment-actions-manual/

Comments