{"record":{"id":"a5bc61ab0d021bda","repo":"n8n-io/n8n","slug":"invalid-filter-format-expected-filter-key","errorCode":null,"errorMessage":"Invalid `--filter` format. Expected: --filter \"key:value\"","messagePattern":"Invalid `--filter` format\\. Expected: --filter \"key:value\"","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@n8n/ai-workflow-builder.ee/evaluations/cli/argument-parser.ts","lineNumber":474,"sourceCode":"\n\tif (!enableIntrospection) return undefined;\n\n\treturn {\n\t\tenableIntrospection: enableIntrospection || undefined,\n\t};\n}\n\nfunction parseFilters(args: {\n\tfilter: string[];\n\tnotionId?: string;\n\ttechnique?: string;\n}): LangsmithExampleFilters | undefined {\n\tconst filters: LangsmithExampleFilters = {};\n\n\tfor (const raw of args.filter) {\n\t\tconst match = raw.match(/^(\\w+):(.+)$/);\n\t\tif (!match) {\n\t\t\tthrow new Error('Invalid `--filter` format. Expected: --filter \"key:value\"');\n\t\t}\n\n\t\tconst [, key, valueRaw] = match;\n\t\tconst value = valueRaw.trim();\n\t\tif (value.length === 0) {\n\t\t\tthrow new Error(`Invalid \\`--filter\\` value for \"${key}\": value cannot be empty`);\n\t\t}\n\t\tswitch (key) {\n\t\t\tcase 'do':\n\t\t\t\tfilters.doSearch = value;\n\t\t\t\tbreak;\n\t\t\tcase 'dont':\n\t\t\t\tfilters.dontSearch = value;\n\t\t\t\tbreak;\n\t\t\tcase 'technique':\n\t\t\t\tfilters.technique = value;\n\t\t\t\tbreak;\n\t\t\tcase 'id':","sourceCodeStart":456,"sourceCodeEnd":492,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/ai-workflow-builder.ee/evaluations/cli/argument-parser.ts#L456-L492","documentation":"Error \"Invalid `--filter` format. Expected: --filter \"key:value\"\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/ai-workflow-builder.ee/evaluations/cli/argument-parser.ts:474 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-12T13:17:24.610Z"}