{"section":"known-issues","requestedLocale":"en","requestedSlug":"organization-search-by-custom-field-fails-when-the-custom-field-name-has-spaces","locale":"en","slug":"organization-search-by-custom-field-fails-when-the-custom-field-name-has-spaces","path":"docs/en/known-issues/B2B/organization-search-by-custom-field-fails-when-the-custom-field-name-has-spaces.md","branch":"main","content":"## Summary\n\nIn the B2B Organizations admin (Organizations list), searching organizations by a custom field fails when the custom field's name contains spaces (e.g., \"ID SAP\"). No results are returned. The `getOrganizations` query responds with the error _\"The 'AND' command is invalid in the filter\"._\n\n## Simulation\n\n1. Install `vtex.b2b-organizations-graphql` 2.8.0 or later and the corresponding version of `vtex.b2b-organizations`.\n2. In the B2B settings, define an organization custom field whose name contains a space (e.g., \"ID SAP\").\n3. Set a value for this custom field on any organization.\n4. Go to **Admin > B2B Organizations > Organizations**.\n5. Select the custom field in the custom field filter and type any value in the search box.\n6. The list returns no results and the `getOrganizations` request fails with _\"The 'AND' command is invalid in the filter\"_.\n\n## Workaround\n\nUse custom field names without spaces (e.g., \"IDSAP\" or \"id_sap\") for fields that need to be searchable."}