Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Troubleshooting
I can't fix the schema error in B2B apps
I can't fix the schema error in B2B apps
Published on 9/11/2024
Last update on 10/18/2024

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:

  1. 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.
  2. Log in.
  3. Click Advanced Settings.
  4. Click Data structure.
  5. Click Data Entities.
  6. Click Edit in the CL row.
  7. 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.

  1. Click Save.
  2. 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

Contributors
1
Photo of the contributor
+ 1 contributors
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedbackSite Map