LykosAI/StabilityMatrix · error · InvalidOperationException
No ComfyUI workflows found in
Error message
No ComfyUI workflows found in "{file.Name}" - the file contains neither workflow json nor images with an embedded workflow What it means
DownloadCivitWorkflowStep.ExecuteAsync throws InvalidOperationException when an archive contains no ComfyUI workflow JSON and no images with an embedded workflow (importedCount == 0 and foundGenerationParametersOnly false). It means the download simply has nothing workflow-like in it.
Solutions
- Check the Civitai page for an explicit ComfyUI workflow attachment before downloading
- Download the correct file (workflow JSON) directly instead of the archive
- Handle InvalidOperationException in the caller and inform the user no workflow exists in this file
Defensive patterns
Strategy: try-catch
Validate before calling
if (!archiveHasWorkflowJson && !archiveHasWorkflowImages) throw new SkipImportException("no ComfyUI workflow in file"); Try / catch
try { await step.ExecuteAsync(progress); } catch (InvalidOperationException ex) { ui.Notify(ex.Message); } Prevention
- Check the Civitai page explicitly lists a ComfyUI workflow
- Download the workflow JSON directly when unsure
- Pre-scan archives for workflow markers before import
When it happens
Trigger: Calling ExecuteAsync on a downloaded Civitai file where no workflow.json and no workflow-embedding images exist, so zero items are imported.
Common situations: Downloading plain model weights or preview images from Civitai expecting a workflow; wrong archive downloaded; creator removed the workflow attachment.
Understand the failure class
Background: EmptyResultError / "no results found": when an API or scraper succeeds but returns zero rows — this error's family across 9 libraries.
Related errors
- " " contains images with WebUI-style generation parameters…
- Sampler not selected
- : Model not selected
- Scheduler not selected
- BaseClipVision not set
AI-assisted analysis of LykosAI/StabilityMatrix@af93d6ef57 (2026-09-12).
Data as JSON: /api/errors/c9abee98294a013c.
Report an issue: GitHub.
Appendix: source
Thrown at StabilityMatrix.Core/Models/PackageModification/DownloadCivitWorkflowStep.cs:79
isMultiple: false
)
.ConfigureAwait(false)
? 1
: 0,
_ => await ImportWorkflowJsonAsync(
await File.ReadAllTextAsync(tempFile).ConfigureAwait(false),
fileStem,
targetDir,
isMultiple: false
)
.ConfigureAwait(false)
? 1
: 0,
};
if (importedCount == 0)
{
throw new InvalidOperationException(
foundGenerationParametersOnly
? $"\"{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"
: $"No ComfyUI workflows found in \"{file.Name}\" - "
+ "the file contains neither workflow json nor images with an embedded workflow"
);
}
progress?.Report(new ProgressReport(1f, $"Imported {importedCount} workflow(s)"));
}
finally
{
if (tempFile.Exists)
{
tempFile.Delete();
}
}View on GitHub (pinned to af93d6ef57)