<@U04S8PLJWMT> JavaScript execution error: Uncaugh...
# ask-ai
k
@kapa.ai JavaScript execution error: Uncaught Execution of multiple statements failed on statement \"INSERT INTO \"?\".\"...\" (at line 2, position 0).\nSQL compilation error:\nObject ? '?' exceeds maximum length limit of 255 characters. in SYSTEM$MULTISTMT at ' throw
Execution of multiple statements failed on statement {0} (at line {1}, position {2}).
.replace('{1}', LINES[i])' position 4\nstackstrace: \nSYSTEM$MULTISTMT line: 10"
k
The error message you provided—"JavaScript execution error: Uncaught Execution of multiple statements failed on statement ... SQL compilation error: Object ? '?' exceeds maximum length limit of 255 characters. in SYSTEM$MULTISTMT..."—indicates that during a multi-statement execution in Snowflake, an object (likely a column name, table name, or identifier) exceeded Snowflake's maximum allowed length of 255 characters. While the knowledge sources do not mention this exact error message, there is a related issue with the Airbyte Snowflake destination connector where SQL compilation errors occur due to invalid identifiers or issues in multi-statement execution. For example, one user encountered a similar error with an invalid identifier in SYSTEM$MULTISTMT during a sync, which suggests that Airbyte's generated SQL or object names may sometimes violate Snowflake's identifier length or formatting rules, leading to such errors. The log excerpt from that issue is:
Copy code
Warning from destination: java.lang.RuntimeException: SQL compilation error: error line 150 at position 2 invalid identifier '"COMPONENT COMBINATION"' in SYSTEM$MULTISTMT ...
This points to problems with how identifiers are handled in multi-statement contexts in Snowflake, which aligns with your error about exceeding the maximum length limit for an object in SYSTEM$MULTISTMT. To resolve this, you should: - Check the names of your tables, columns, or other objects being created or referenced in your sync to ensure none exceed 255 characters. - If you are using Airbyte, review your source schema and consider renaming any fields or objects with excessively long names before syncing to Snowflake. If you continue to encounter this issue, you may want to open a GitHub issue with Airbyte or review existing issues for further troubleshooting steps, as this appears to be a limitation in how object names are handled in the connector or in Snowflake itself[Snowflake sync error example](https://github.com/airbytehq/airbyte/issues/47175).