{"record":{"id":"683ae82b8a993ac1","repo":"hasura/graphql-engine","slug":"schema-dump-for-source-s-of-kind-v-is-not-suppor","errorCode":null,"errorMessage":"schema dump for source %s of kind %v is not supported","messagePattern":"schema dump for source (.+?) of kind (.+?) is not supported","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/migrate/database/hasuradb/schema_dump.go","lineNumber":58,"sourceCode":"\n\t\t\treturn nil, errors.E(op, err)\n\t\t}\n\n\t\tbs, err := io.ReadAll(resp)\n\t\tif err != nil {\n\t\t\treturn nil, errors.E(\n\t\t\t\top,\n\t\t\t\terrors.KindHasuraAPI,\n\t\t\t\tfmt.Errorf(\"reading response from schema dump api: %w\", err),\n\t\t\t)\n\t\t}\n\n\t\treturn bs, nil\n\t}\n\n\treturn nil, errors.E(\n\t\top,\n\t\tfmt.Errorf(\"schema dump for source %s of kind %v is not supported\", sourceName, sourceKind),\n\t)\n}\n","sourceCodeStart":40,"sourceCodeEnd":61,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/cli/migrate/database/hasuradb/schema_dump.go#L40-L61","documentation":"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.","triggerScenarios":"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).","commonSituations":"Trying `hasura migrate create --from-schema` or export flows against a non-postgres source, or omitting the source name on multi-source instances.","solutions":["Run schema dump against a postgres source","Upgrade the CLI if newer versions support your source kind","Explicitly pass the correct source name"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"if sourceKind != \"postgres\" {\n    return fmt.Errorf(\"schema dump unsupported for kind %q; use postgres\", sourceKind)\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only run --from-schema flows against postgres sources","Pass the source name explicitly on multi-source instances"],"tags":["hasura","schema-dump","unsupported-source"],"backgroundTag":"unsupported-source-kind","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}