hasura/graphql-engine · error
schema dump for source
Error message
schema dump for source %s of kind %v is not supported
What it means
ExportSchemaDump only supports dumping for certain source kinds; for any other kind it returns this error stating schema dump is unsupported for that source name/kind combination.
Solutions
- Run schema dump against a postgres source
- Upgrade the CLI if newer versions support your source kind
- Explicitly pass the correct source name
Defensive patterns
Strategy: validation
Validate before calling
if sourceKind != "postgres" {
return fmt.Errorf("schema dump unsupported for kind %q; use postgres", sourceKind)
} Prevention
- Only run --from-schema flows against postgres sources
- Pass the source name explicitly on multi-source instances
When it happens
Trigger: Calling ExportSchemaDump with a sourceKind the function has no branch for (e.g. mssql, bigquery, or an empty source name on multi-source setups in older versions).
Common situations: Trying `hasura migrate create --from-schema` or export flows against a non-postgres source, or omitting the source name on multi-source instances.
Related errors
- reading response from schema dump api
- {0}
- {0}
- {0}
- a preset argument ' ' has been set for the model ' ' but no…
AI-assisted analysis of hasura/graphql-engine@724551b9ae (2026-08-28).
Data as JSON: /api/errors/683ae82b8a993ac1.
Report an issue: GitHub.
Appendix: source
Thrown at cli/migrate/database/hasuradb/schema_dump.go:58
return nil, errors.E(op, err)
}
bs, err := io.ReadAll(resp)
if err != nil {
return nil, errors.E(
op,
errors.KindHasuraAPI,
fmt.Errorf("reading response from schema dump api: %w", err),
)
}
return bs, nil
}
return nil, errors.E(
op,
fmt.Errorf("schema dump for source %s of kind %v is not supported", sourceName, sourceKind),
)
}
View on GitHub (pinned to 724551b9ae)