{"record":{"id":"41f733317066c42a","repo":"LykosAI/StabilityMatrix","slug":"file-name-contains-images-with-webui-style-generation","errorCode":null,"errorMessage":"\"{file.Name}\" contains images with WebUI-style generation parameters, but no embedded ComfyUI workflow - the creator may not have attached the actual workflow to this file","messagePattern":"\"(.+?)\" contains images with WebUI-style generation parameters, but no embedded ComfyUI workflow - the creator may not have attached the actual workflow to this file","errorType":"exception","errorClass":"InvalidOperationException","httpStatus":null,"severity":"error","filePath":"StabilityMatrix.Core/Models/PackageModification/DownloadCivitWorkflowStep.cs","lineNumber":79,"sourceCode":"                        isMultiple: false\n                    )\n                    .ConfigureAwait(false)\n                    ? 1\n                    : 0,\n                _ => await ImportWorkflowJsonAsync(\n                        await File.ReadAllTextAsync(tempFile).ConfigureAwait(false),\n                        fileStem,\n                        targetDir,\n                        isMultiple: false\n                    )\n                    .ConfigureAwait(false)\n                    ? 1\n                    : 0,\n            };\n\n            if (importedCount == 0)\n            {\n                throw new InvalidOperationException(\n                    foundGenerationParametersOnly\n                        ? $\"\\\"{file.Name}\\\" contains images with WebUI-style generation parameters, \"\n                            + \"but no embedded ComfyUI workflow - the creator may not have attached \"\n                            + \"the actual workflow to this file\"\n                        : $\"No ComfyUI workflows found in \\\"{file.Name}\\\" - \"\n                            + \"the file contains neither workflow json nor images with an embedded workflow\"\n                );\n            }\n\n            progress?.Report(new ProgressReport(1f, $\"Imported {importedCount} workflow(s)\"));\n        }\n        finally\n        {\n            if (tempFile.Exists)\n            {\n                tempFile.Delete();\n            }\n        }","sourceCodeStart":61,"sourceCodeEnd":97,"githubUrl":"https://github.com/LykosAI/StabilityMatrix/blob/af93d6ef57c01cd890d7e0ad0a9ea8c9fcda3002/StabilityMatrix.Core/Models/PackageModification/DownloadCivitWorkflowStep.cs#L61-L97","documentation":"DownloadCivitWorkflowStep.ExecuteAsync imports ComfyUI workflows from a downloaded Civitai archive. If no workflows were imported but images with WebUI-style generation parameters were found, it throws InvalidOperationException explaining the creator embedded only WebUI parameters, not a ComfyUI workflow.","triggerScenarios":"Downloading a Civitai model/workflow archive whose images contain A1111-style generation parameter chunks but no embedded ComfyUI workflow JSON, so importedCount == 0 with foundGenerationParametersOnly true.","commonSituations":"Civitai entries that are LoRA/checkpoint pages with screenshot images rather than actual workflow attachments; creators using ComfyUI-generated images with A1111-style metadata; users clicking 'download workflow' on a model that has none.","solutions":["Verify the Civitai item actually ships a ComfyUI workflow (workflow JSON or images with embedded workflow)","Ask the creator to attach the actual ComfyUI workflow file to the upload","Catch InvalidOperationException in ExecuteAsync caller and surface a user-friendly message about the missing workflow"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"var hasWorkflow = entries.Any(e => e.IsWorkflowJson || e.ImageHasEmbeddedWorkflow);\nif (!hasWorkflow) /* warn user before calling ExecuteAsync */;","typeGuard":null,"tryCatchPattern":"try { await step.ExecuteAsync(progress); } catch (InvalidOperationException ex) { ui.Notify(ex.Message); }","preventionTips":["Confirm the Civitai download includes workflow JSON or workflow-embedding images","Inspect archive contents before invoking the import step","Surface creator-facing guidance when only WebUI params are present"],"tags":["csharp","comfyui","civitai","import"],"backgroundTag":"empty-result-set","analyzedSha":"af93d6ef57c01cd890d7e0ad0a9ea8c9fcda3002","analyzedAt":"2026-09-12T19:02:43.389Z","contentChangedAt":"2026-09-12T19:02:43.389Z","schemaVersion":2},"datasetVersion":"2026-09-16T04:17:20.429Z"}