Dataform encountered an error: Unexpected property “type”, or property value type of “string” is incorrect. ReferenceError: Unexpected property “type”, or property value type of “string” is incorrect.
I can compile my project without errors (“dataform compile”), but with “dataform run --dry-run”, I’m getting stuck.
The error “Unexpected property ”type”, or property value type of “string” is incorrect” suggests there’s an issue with the structure of your Dataform configurations or sqlx files. Dataform expects specific properties and data types, and any deviation can cause this error during the dataform run command.
Here’s the workaround that you can do:
Check your project’s config.json file for any potential type mismatches. Pay close attention to properties like defaultDatabase, defaultSchema and any custom variables you’ve defined
Check all the data types defined in your schema files adhere to valid JSON schema types.