Skip to content

sObject type not supported

Detection

  • RegExp: Error (.*) sObject type '(\w+)' is not supported

Examples

  • Error InvoiceService sObject type 'Invoice__c' is not supported.

Resolution

Apex {1} uses object {2}, which the target org does not have, or that the deployment user can not access.
- Deploy the object {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/)
- Check the API name (__c suffix, namespace prefix). If {2} is a standard object, enable its feature in the target org

Comments