{"record":{"id":"bac2ecc16be6830c","repo":"n8n-io/n8n","slug":"error-during-parsing-of-json-schema-please-check","errorCode":null,"errorMessage":"Error during parsing of JSON Schema. Please check the schema and try again.","messagePattern":"Error during parsing of JSON Schema\\. Please check the schema and try again\\.","errorType":"exception","errorClass":"NodeOperationError","httpStatus":null,"severity":"error","filePath":"packages/@n8n/nodes-langchain/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.ts","lineNumber":231,"sourceCode":"\t\tconst jsonSchema =\n\t\t\tschemaType === 'fromJson'\n\t\t\t\t? generateSchemaFromExample(jsonExample, jsonExampleAllFieldsRequired)\n\t\t\t\t: jsonParse<JSONSchema7>(inputSchema);\n\n\t\tconst zodSchema = convertJsonSchemaToZod<z.ZodSchema<object>>(jsonSchema);\n\t\tconst nodeVersion = this.getNode().typeVersion;\n\n\t\tconst autoFix = this.getNodeParameter('autoFix', itemIndex, false) as boolean;\n\n\t\tlet outputParser;\n\t\ttry {\n\t\t\toutputParser = await N8nStructuredOutputParser.fromZodJsonSchema(\n\t\t\t\tzodSchema,\n\t\t\t\tnodeVersion,\n\t\t\t\tthis,\n\t\t\t);\n\t\t} catch (error) {\n\t\t\tthrow new NodeOperationError(\n\t\t\t\tthis.getNode(),\n\t\t\t\t'Error during parsing of JSON Schema. Please check the schema and try again.',\n\t\t\t);\n\t\t}\n\n\t\tif (!autoFix) {\n\t\t\treturn {\n\t\t\t\tresponse: outputParser,\n\t\t\t};\n\t\t}\n\n\t\tconst model = (await this.getInputConnectionData(\n\t\t\tNodeConnectionTypes.AiLanguageModel,\n\t\t\titemIndex,\n\t\t)) as BaseLanguageModel;\n\n\t\tconst prompt = this.getNodeParameter('prompt', itemIndex, NAIVE_FIX_PROMPT) as string;\n","sourceCodeStart":213,"sourceCodeEnd":249,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/nodes-langchain/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.ts#L213-L249","documentation":"Error \"Error during parsing of JSON Schema. Please check the schema and try again.\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/nodes-langchain/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.ts:231 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}