Custom object not found
Detection
- RegExp:
Error (.*) In field: field - no CustomObject named (.*) found
Examples
Error Admin In field: field - no CustomObject named Invoice__c found
Resolution
{1} refers to custom object {2}, which is not in the target org.
- If you renamed {2}, search and replace its old name in your sources
- If you deleted {2}, or do not want to deploy it: list the items in a destructiveChanges.xml file, then sf hardis:project:clean:references --config <that file> removes every reference to them from your sources
- If {2} must exist: 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/)