The error message "The length 34 has exceeded the limit of 31" suggests that there is a limitation being enforced on the database name length when using Key-pair Authentication in Power BI for your Snowflake connection. While Snowflake allows database names up to 35 characters with password authentication, it appears that the Key-pair Authentication method may impose stricter limits, potentially due to how the connection is being handled or configured in Power BI.
To resolve this issue, you may want to consider renaming your databases to ensure that they comply with the 31-character limit when using Key-pair Authentication. Additionally, reviewing the configuration settings in Power BI for the Snowflake connection could provide insights into any specific limitations or requirements that need to be addressed.
If you continue to experience issues, consulting the Snowflake documentation or reaching out to their support may also be beneficial for understanding the constraints associated with Key-pair Authentication in your specific setup.
References: