Do you use Alteryx in a language other than English? If so, we want to hear from you! Please help us improve the international experience of our products by participating in this 5 minute survey.

We are updating the requirements for Community registration. As of 7/21/21 all users will be required to register a phone number with their My Alteryx accounts. If you have already registered, you will be prompted on your next login to add your phone number.

Alteryx Designer Knowledge Base

Definitive answers from Designer experts.

Error: "Unsupported data type 'bit'", when writing data with a Boolean to Snowflake

gtorres8
Alteryx
Alteryx
Created

Environment Details


When trying to write to a Snowflake database using a DSN-less connection string in the Output Data tool and when a Boolean column exists in the data set, the following error occurs:


 

SQL compilation error: Unsupported data type 'bit'.




If the Boolean column was removed with a Select tool in the workflow, data will write successfully.

 

  • Designer
    • All 
    • Output Data tool
  • Snowflake
    • DSN-less connection string set up
    • Boolean data type
  • Snowflake ODBC Drivers
    • Version 2.21.07


Cause


Lua scripts are not being used when using a DSN-less connection string in the workflow, either directly in the Input/Output tool or within a saved Gallery data connection. Lua scripts map driver and database data types to Alteryx types. Since the Lua script is not being used with a DSN-less connection string, the bit data type is being used by default, which will not work with Snowflake.



Resolution


Workaround

 

Create a System DSN connection to Snowflake for either the Output Data tool or a Gallery Data connection set up.

 

Note

 

If using a Gallery set up, ensure that both DSN connection setups are configured and named identical on the Alteryx Server and client Designer machine.

 

Additional Information