Experience site not found
Detection
- RegExp:
Error (.*) In field: Site - no CustomSite named (.*) found
Examples
Error Partners In field: Site - no CustomSite named Partners1 found
Resolution
{1} refers to site {2}, which is not in the target org.
- Deploy the CustomSite {2} with the Network and the ExperienceBundle (or DigitalExperienceBundle) of the site: 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/)
- Check <urlPathPrefix> of the site: only letters and digits