{"section":"troubleshooting","requestedLocale":"en","requestedSlug":"i-cant-fix-the-schema-error-in-b2b-apps","locale":"en","slug":"i-cant-fix-the-schema-error-in-b2b-apps","path":"docs/en/troubleshooting/b2b/i-cant-fix-the-schema-error-in-b2b-apps.md","branch":"main","content":"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.\n\nThe 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.\n\n## Solution\nFixing the Schema is invalid alert in B2B apps involves adjusting the configuration of the required fields in Master Data.\n\n### Fixing the Schema is invalid alert in B2B apps\nTo fix the Schema is invalid alert, follow the steps below to ensure the correct configuration:\n\n1. 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.\n2. Log in.\n3. Click **Advanced Settings**.\n4. Click **Data structure**.\n5. Click **Data Entities**.\n6. Click **Edit** in the **CL** row.\n7. Review all the fields in the list to identify the one where the option is **nullable** and unchecked, and then check it.\n\n   > ⚠️ Only the email field should remain with the **Is nullable** option unchecked.\n\n8. Click **Save**.\n9. In the list of **Data Entities**, click **Publish**.\n\nThe image below shows the necessary steps to fix the configuration of the required fields in Master Data, solving the `Schema is invalid` alert.\n\n![B2B Suite - troubleshootingv2](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/troubleshooting/b2b-commerce/i-cant-fix-the-schema-error-in-b2b-apps_1.gif)"}