Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Below are some common issues you may come across while using DataSync for Snowflake.  Contact support@perspectium.com if your issue is not listed below or you have any other questions.


Connection Issues

When starting the meshlet, you may encounter connection issues showing the following error messages. See below for some areas to check to troubleshoot these issues.

Divbox


Expand
titleIncorrect username or password was specified

Verify if the ACCOUNT connection parameter was specified. Depending on your version of Snowflake, this parameter can be either ACCOUNT or ACCOUNT_NAME and should be specified in the connectionUrl configuration.

Code Block
languageyml
connectionUrl: jdbc:snowflake://<account>.<region>.snowflakecomputing.com/?ACCOUNT=<account>


Code Block
languageyml
connectionUrl: jdbc:snowflake://<account>.<region>.snowflakecomputing.com/?ACCOUNT_NAME=<account>




Divbox


Expand
titleJavaScript execution error: Uncaught Execution of multiple statements failed on statement "USE DATABASE <database"

Verify the database is valid and one the user has access to.



Divbox


Expand
titleNo active warehouse selected in the current session. Select an active warehouse with the 'use warehouse' command.

Verify the warehouse is valid and one the user has access to.



Divbox


Expand
titleUncaught Execution of multiple statements failed on statement "USE SCHEMA <schema>"

Verify the schema is valid and one the user has access to.



Divbox


Expand
titleRole '<role>' specified in the connect string does not exist or not authorized. Contact your local system administrator, or attempt to login with another role, e.g. PUBLIC

Verify the role is valid and one that has access to the database, warehouse and schema specified.





General Issues

When the meshlet is running, you may encounter issues showing the following error messages. See below for some areas to check to troubleshoot these issues.

Divbox


Expand
titleJavaScript execution error: Error loading database config file, Error: No content to map due to end-of-input.

Verify databaseConfig.json file exist in ./static/config/databaseConfig.json and has required fields.



Divbox


Expand
titleJavaScript execution error: HTTP Response Send Status: 401... Bad response when retrieving ServiceNow Schema

Verify the ServiceNow credentials are correct and the user specified has the proper role.



Divbox


Expand
titleJavaScript execution error: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.

Verify the encryption key in the yaml configuration file (.yml) matches the key from the sharing source.



Divbox


Expand
titleSelect statements are taking a long time to return

The meshlet uses SELECT statements to determine if a table you are trying to replicate exists in the Snowflake database as well as to get the table's columns to build the SQL statements to copy data into the database properly. However, if you see in Snowflake's history that there are SELECT * FROM <table_name> (i.e. SELECT * FROM incident) taking a long time to return, you can optimize it by updating the databaseConfig.json as follows:

Change

Code Block
languagesql
"selectAll":"SELECT * FROM %s",

To

Code Block
languagesql
"selectAll":"SELECT * FROM %s LIMIT 1",





Other Questions/Issues

Other questions and issues related you may encounter related to the Snowflake meshlet.

Divbox


Expand
titleHow do I know what schema the meshlet created?

In the data folder where the meshlet is installed there is a schemaColumns.dat file that holds the schemas of the tables it has created.



Divbox


Expand
titleDo column lengths matter in Snowflake?

The meshlet creates columns with data types with the full length to prevent any data integrity issues. That is, a VARCHAR data type (what is generally created for a string field) is created as VARCHAR without a specified column length as you would in other databases. This is the equivalent of creating it as the maximum VARCHAR(16777216) since there is no performance impact whether you use the full length declaration of a column data type or a smaller size. As well, this means that when column lengths are extended in ServiceNow, this does not need to be changed in Snowflake.



Divbox


Expand
titleWhy does the meshlet not change column data types in the Snowflake database?

To ensure there isn't any data loss, the meshlet will not alter columns to have different data types. Data will continued to be saved in the original column data type as when the column was first created.





Can't find what you're looking for?  

See the FAQ or browse the Perspectium Community Forum.