When connecting to Snowflake via Key-Pair Authentication from Tableau, the following error occurs:
An error occurred while communicating with the Snowflake data source 'data source name' Invalid username or password. Error Code: XXXXXXXX JWT token is invalid. [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx]
This behavior is caused by a third-party configuration issue, specifically related to key-pair authentication settings in Snowflake.
When encountering the JWT token is invalid error, we recommend referring to the following Snowflake's documentations to collect the detailed error message and UUID. Use this information to collaborate with your Snowflake administrator to identify the cause, as the issue can be caused by an incomplete or incorrect key-pair authentication configuration.
*Although we make every effort to ensure links to external websites are accurate, up to date, and relevant, Tableau cannot take responsibility for the accuracy or freshness of pages maintained by external providers. Contact the external site for answers to questions regarding its content.
The following Knowledge Article on Snowflake Community may be helpful:
004867848

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.