Hi Retool Team,
We’re new to Retool and are exploring workflows for SQL database integrations. I’ve set up a form in Retool that triggers a workflow to insert data into a Snowflake table.
The workflow runs a standard INSERT INTO
query, where form inputs are passed dynamically as query parameters. However, I keep encountering a "VARIANT" error during execution, even though the data types in the database are defined correctly and the query works when tested manually in Snowflake.
Details of the Setup:
Database: Snowflake
Fields: Mix of VARCHAR
, FLOAT
, and TIMESTAMP
types.
ID: Auto-incremented (handled in Snowflake).
DATECREATED: Set via CURRENT_TIMESTAMP()
in the query.
Issue: Form submissions are passing inputs, but the workflow fails due to an unsupported VARIANT
type error.
Note: I have tried submitting a test form with valid values, but the issue persists.
Questions:
- Are there known issues with how null or empty form inputs are passed to SQL queries in Retool? I have also tested with actual form submissions and still encounter the error.
- What’s the recommended approach for ensuring form inputs align with Snowflake’s required data types?
- Any feedback on how workflows that write back to Snowflake databases work best when triggered by forms?
- If possible, could you share example workflows or best practices for similar use cases?
We’d greatly appreciate any guidance or troubleshooting steps to resolve this and ensure the workflow functions as intended!
Thank you,
Easton Place