Unable to generate from schema error
This article addresses the Campaign Standard issue where you receive the “Unable to generate from schema” error when attemoting to re-draft or publish a custom resource. To resolve this, you need to remove the null records in the custom resource’s data.
Description description
Environment
Adobe Campaign Standard
Issue/Symptoms
Unable to re-draft and publish a custom resource (Example: CustomResourceA).
When attempting to re-draft and publish, errors are received:
Error while executing the method ‘GenerateCusResource’ of service ‘xtk:builder’.
‘cpmcustomResourceA’ schema definition not found. Unable to generate from schema ‘cus:customResourceA’.
Resolution resolution
To resolve the error and remove the null records, all custom resources that have a link to the custom resource mentioned in the error must be found.
Example below:
- Click on the custom resources (customResourceB, customResourceC, .etc.) with a link to customResourceA and uncheck the do not synchronize box.
- Go to the customResourceA custom resource and cancel the re-draft.
- Publish the resources.
- Go to the custom resources (customResourceB, customResourceC, etc.) and unlink customResourceA.
- Publish the resources.
- Go to the customResourceA and re-draft.
- Go to the custom resources (customResourceB, customResourceC, etc.) and check the do not synchronize box.
- Publish the resources.
Causes
In the custom resource’s data, there are records with null values which could not be deleted from the UI or through a workflow.
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f