Skip to content

Empty custom object

Detection

  • RegExp: Error (.*) Must specify a non-empty label for the CustomObject

Examples

  • Error Invoice__c Must specify a non-empty label for the CustomObject

Resolution

The CustomObject {1} has been committed without its attributes: its .object-meta.xml has no label, so the target org can not create it.
This usually happens when an object is retrieved empty, for example an object owned by a managed package.
- Retrieve {1} again with the Metadata Retriever of VS Code, and check that its .object-meta.xml has a label and the other attributes of the object
- If {1} belongs to a managed package, remove it from your sources: sf hardis:project:clean:manageditems --namespace <namespace>
- Or, if {1} does not belong to your project, remove the objects/{1} folder: saving your User Story updates manifest/package.xml

Comments