Tags / Keywords: B2B apps, Schema error, Master Data.
In environments using B2B apps, users may get the alert Schema is invalid
related to schema errors. This type of alert usually occurs due to an incorrect configuration in the CL (customer) entity within Master Data.
The most common situation involves adding required fields to the schema that defines data for the CL entity in Master Data. When a B2B Suite app tries to create a user without providing the required fields, an invalid schema alert is displayed. This problem can occur when accessing the Organization page in the VTEX Admin or the Organization Requests page in the storefront.
Solution
Fixing the Schema is invalid alert in B2B apps involves adjusting the configuration of the required fields in Master Data.
Fixing the Schema is invalid alert in B2B apps
To fix the Schema is invalid alert, follow the steps below to ensure the correct configuration:
- In the VTEX Admin, go to Store Settings > Storefront > Master Data, or type Master Data in the search bar at the top of the page.
- Log in.
- Click Advanced Settings.
- Click Data structure.
- Click Data Entities.
- Click Edit in the CL row.
- Review all the fields in the list to identify the one where the option is nullable and unchecked, and then check it.
Only the email field should remain with the "Is nullable" option unchecked.
- Click Save.
- In the list of Data Entities, click Publish.
The image below shows the necessary steps to fix the configuration of the required fields in Master Data, solving the Schema is invalid
alert.
An error occurred while trying to load the image. https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/_1.gif