> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.sigmacomputing.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server.

# Troubleshoot input table connection issues

> Resolve Sigma input table connection errors caused by configuration or data platform issues affecting saves and new tables.

When you encounter an input table error (as a general user) or receive a system email notifying you of failed input table edits (as an admin), it can be the result of a configuration or availability issue in your connection or data platform. This type of issue must be resolved by an admin within Sigma or directly in the data platform.

This document explains how Sigma handles input table errors resulting from configuration and availability issues and provides guidance on troubleshooting and resolving these errors.

## User requirements

The ability to resolve an input table issue identified in this document requires the following:

* You must be assigned the **Admin** [account type](/docs/create-and-manage-account-types).

* You must have the necessary privileges in the data platform to perform the resolution tasks identified in this document.

If you don't meet these requirements, contact your Sigma or data platform administrator to resolve the issue.

## Input table error handling

To improve data integrity and prevent unexpected data loss, Sigma handles input table errors as follows:

* When an input table edit is unsuccessful due to configuration or availability issues in the connection or data platform, Sigma treats it as a fatal error and does not retry the operation. The underlying issue is not recoverable by Sigma, therefore, retrying the operation would continue to fail.

* An input table error resulting from a configuration or availability issue in the connection or data platform can apply to specific users or the entire organization. When Sigma detects this type of issue, it temporarily restricts the ability for affected users to create and edit input tables that are subject to the same error. Following the initial input table error, all relevant existing input table elements display an “Editing restricted” message.

* Sigma sends admins an email alert that identifies the misconfigured or unavailable connection, displays the error message, and links to this document.

## Troubleshooting steps

Complete the following steps to troubleshoot the error.

1. Review the organization and connection identified in the system email. This is important if you manage multiple organizations or connections.

2. Check the error message identified in the system email.

3. Locate the error message in the [Error messages and resolutions](#error-messages-and-resolutions) tables. If you cannot find the applicable error message, [contact Support](/docs/sigma-support).

4. Review the root cause, then complete the resolution provided for the authentication method configured on your connection.

## Error messages and resolutions

This section provides details about known configuration and availability errors specific to BigQuery, Databricks, PostgreSQL, Redshift, and Snowflake. If you encounter an error message that's not included in the following tables, [contact Support](/docs/sigma-support).

#### Incorrect WAL schema

|               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| :------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Error message | `wrong schema for WAL table <DATABASE>.<SCHEMA>.<WAS_TABLE_NAME>`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Root cause    | <p>The edit cannot be logged and committed due to a non-compliant write-ahead log (WAL) schema.</p><p>Possible causes: A user modified the schema in BigQuery by making one or more changes to a column or constraint.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Resolution    | <p>Compare the schema of the existing table against the `CREATE TABLE` statement below. If the schema doesn't match the exact column names, data types, and constraints provided in the SQL definition, correct the discrepancy.</p><p>If the schema cannot be corrected, delete it and run the SQL to create a compliant table.</p><pre><code class="language-sql">CREATE TABLE IF NOT EXISTS \&lt;project>.\&lt;dataset>.SIGDS\_WAL\_\&lt;connection\_id> (&#xA;  DS\_ID BYTES NOT NULL,&#xA;  EDIT\_ID BYTES NOT NULL,&#xA;  USER\_ID BYTES NOT NULL,&#xA;  EDIT\_NUM INT64 NOT NULL,&#xA;  PROTOCOL\_VERSION INT64 NOT NULL,&#xA;  EDIT JSON NOT NULL,&#xA;  METADATA STRING NOT NULL,&#xA;  TIMESTAMP TIMESTAMP NOT NULL&#xA;)</code></pre> |

#### Insufficient privileges

|               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| :------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Error message | `execution error: failed to execute query: unexpected operation state ERROR_STATE: [INSUFFICIENT_PERMISSIONS] Insufficient privileges: User does not have <REQUIRED_PRIVILEGE> on <OBJECT_TYPE><OBJECT_NAME>. SQLSTATE: 42501`                                                                                                                                                                                                                                                                                               |
| Root cause    | The service principal doesn't have the privilege required to perform the identified operation                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Resolution    | <p>Refer to <a href="https://docs.databricks.com/aws/en/data-governance/unity-catalog/manage-privileges/?language=Catalog%C2%A0Explorer#show-grant-and-revoke-privileges" target="_blank">Show, grant, and revoke privileges</a> in the Databricks documentation to ensure that the service principal used for your connection is granted the required catalog and schema privileges.</p><p>For information about the required privileges, see [Configure Databricks](/docs/connect-to-databricks#configure-databricks).</p> |

#### Invalid or expired access token

|                        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| :--------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Error message          | <p><code>Databricks access token is invalid or expired.</code></p><p>or</p><code>Invalid Databricks access token.</code>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Root cause             | <p>The access token provided in the connection configuration could not be used for authentication.</p><p>Possible causes:</p><ul><li>The token provided contains a typo.</li><li>An incorrect token was provided.</li><li>The token has been deleted or revoked.</li><li>The token has expired.</li></ul>                                                                                                                                                                                                                                                                                                                                                                         |
| Resolution (non-OAuth) | <p>In Sigma, go to the connection configuration page and enter a valid token in the <strong>Connection Credentials</strong> > <strong>Access token</strong> field.</p><p>If the access token has expired or been deleted or revoked, refer to <a href="https://docs.databricks.com/aws/en/dev-tools/auth/pat#databricks-personal-access-tokens-for-workspace-users" target="_blank">Databricks personal access tokens for workspace users</a> in the Databricks documentation to generate a new one.</p><p>For more information about access token requirements, see [Specify your connection credentials](/docs/connect-to-databricks#specify-your-connection-credentials) .</p> |
| Resolution (OAuth)     | <p>In Sigma, go to the connection configuration page and enter a valid token in the <strong>Service Account Configuration</strong> > <strong>Access token</strong> field.</p><p>If the access token has expired or been deleted or revoked, refer to <a href="https://docs.databricks.com/aws/en/dev-tools/auth/pat#databricks-personal-access-tokens-for-service-principals" target="_blank">Databricks personal access tokens for service principals</a> in the Databricks documentation to generate a new one.</p><p>For more information about access token requirements, see [Configure OAuth features](/docs/connect-to-databricks#configure-oauth-features).</p>           |

#### Incorrect WAL schema

|               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| :------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Error message | `wrong schema for WAL table <DATABASE>.<SCHEMA>.<WAS_TABLE_NAME>`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Root cause    | <p>The edit cannot be logged and committed due to a non-compliant write-ahead log (WAL) schema.</p><p>Possible causes: A user modified the schema in Databricks by making one or more changes to a column or constraint.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Resolution    | <p>Compare the schema of the existing table against the `CREATE TABLE` statement below. If the schema doesn't match the exact column names, data types, constraints, comments, and partitioning provided in the SQL definition, correct the discrepancy.</p><p>If the schema cannot be corrected, delete it and run the SQL to create a compliant table.</p><pre><code class="language-sql">CREATE TABLE IF NOT EXISTS \&lt;catalog>.\&lt;schema>.SIGDS\_WAL\_\&lt;connection\_id> (&#xA;  DS\_ID STRING NOT NULL COMMENT "SIGMA\_INPUTTABLE\_KEYFIELD\_NOT\_NULL",&#xA;  EDIT\_ID BINARY NOT NULL COMMENT "SIGMA\_INPUTTABLE\_KEYFIELD\_NOT\_NULL",&#xA;  USER\_ID BINARY NOT NULL COMMENT "SIGMA\_INPUTTABLE\_KEYFIELD\_NOT\_NULL",&#xA;  EDIT\_NUM BIGINT NOT NULL COMMENT "SIGMA\_INPUTTABLE\_KEYFIELD\_NOT\_NULL",&#xA;  PROTOCOL\_VERSION BIGINT NOT NULL COMMENT "SIGMA\_INPUTTABLE\_KEYFIELD\_NOT\_NULL",&#xA;  EDIT STRING NOT NULL COMMENT "SIGMA\_INPUTTABLE\_KEYFIELD\_NOT\_NULL",&#xA;  METADATA STRING NOT NULL COMMENT "SIGMA\_INPUTTABLE\_KEYFIELD\_NOT\_NULL",&#xA;  TIMESTAMP TIMESTAMP NOT NULL COMMENT "SIGMA\_INPUTTABLE\_KEYFIELD\_NOT\_NULL"&#xA;) PARTITIONED BY(DS\_ID)</code></pre> |

#### Incorrect WAL schema

|               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| :------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Error message | `wrong schema for WAL table <DATABASE>.<SCHEMA>.<WAS_TABLE_NAME>`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Root cause    | <p>The edit cannot be logged and committed due to a non-compliant write-ahead log (WAL) schema.</p><p>Possible causes: A user modified the schema in PostgreSQL by making one or more changes to a column or constraint.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Resolution    | <p>Compare the schema of the existing table against the `CREATE TABLE` statement below. If the schema doesn't match the exact column names, data types, and constraints provided in the SQL definition, correct the discrepancy.</p><p>If the schema cannot be corrected, delete it and run the SQL to create a compliant table.</p><pre><code class="language-sql">CREATE TABLE IF NOT EXISTS \&lt;schema>.SIGDS\_WAL\_\&lt;connection\_id> (&#xA;  DS\_ID BYTEA NOT NULL,&#xA;  EDIT\_ID BYTEA NOT NULL,&#xA;  USER\_ID BYTEA NOT NULL,&#xA;  EDIT\_NUM BIGINT NOT NULL,&#xA;  PROTOCOL\_VERSION SMALLINT NOT NULL,&#xA;  EDIT JSON NOT NULL,&#xA;  METADATA JSON NOT NULL,&#xA;  TIMESTAMP TIMESTAMPTZ NOT NULL,&#xA;  PRIMARY KEY (DS\_ID, EDIT\_ID),&#xA;  UNIQUE (DS\_ID, EDIT\_NUM)&#xA;);</code></pre> |

#### Case sensitivity enabled

|               |                                                                                                                                                                                                                                                                                                                                  |
| :------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Error message | `enable_case_sensitive_identifier must be off`                                                                                                                                                                                                                                                                                   |
| Root cause    | The `enable_case_sensitive_identifier` configuration value in Redshift is set to `true`, causing input table edits to fail.                                                                                                                                                                                                      |
| Resolution    | <p>In Redshift, set the `enable_case_sensitive_identifier` to `false`.</p><p>For more information about the configuration value, see <a href="https://docs.aws.amazon.com/redshift/latest/dg/r_enable_case_sensitive_identifier.html" target="_blank">enable\_case\_sensitive\_identifier</a> in the Redshift documentation.</p> |

#### Incorrect WAL schema

|               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| :------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Error message | `wrong schema for WAL table <DATABASE>.<SCHEMA>.<WAS_TABLE_NAME>`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Root cause    | <p>The edit cannot be logged and committed due to a non-compliant write-ahead log (WAL) schema.</p><p>Possible causes: A user modified the schema in Redshift by making one or more changes to a column or constraint.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Resolution    | <p>Compare the schema of the existing table against the `CREATE TABLE` statement below. If the schema doesn't match the exact column names, data types, and constraints provided in the SQL definition, correct the discrepancy.</p><p>If the schema cannot be corrected, delete it and run the SQL to create a compliant table.</p><pre><code class="language-sql">CREATE TABLE IF NOT EXISTS \&lt;schema>.SIGDS\_WAL\_\&lt;connection\_id> (&#xA;  DS\_ID VARBINARY(16) NOT NULL,&#xA;  EDIT\_ID VARBINARY(16) NOT NULL,&#xA;  USER\_ID VARBINARY NOT NULL,&#xA;  EDIT\_NUM BIGINT NOT NULL,&#xA;  PROTOCOL\_VERSION SMALLINT NOT NULL,&#xA;  EDIT SUPER NOT NULL,&#xA;  METADATA SUPER NOT NULL,&#xA;  TIMESTAMP TIMESTAMPTZ NOT NULL&#xA;) SORTKEY (DS\_ID, EDIT\_ID)</code></pre> |

#### Role not found

|                        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| :--------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Error message          | `Role does not exist`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Root cause             | <p>The role provided in the connection configuration cannot be found in your Snowflake environment.</p><p>Possible causes:</p><ul><li>The role provided contains a typo or case sensitivity issue.</li><li>The role was deleted in Snowflake.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Resolution (non-OAuth) | <p>In Sigma, go to the connection configuration page and verify that the role name is entered correctly in the **Connection Credentials** > **Role** field.</p><p>If the role was deleted, refer to <a href="https://docs.snowflake.com/en/user-guide/security-access-control-configure#create-a-role" target="_blank">Create a role</a> in the Snowflake documentation to recreate it (you cannot recover a deleted role). </p><p>For more information about setting a role in the connection configuration, see [Connect to Snowflake with key pair authentication](/docs/connect-to-snowflake#connect-to-snowflake-with-key-pair-authentication) or [Connect to Snowflake with basic authentication](/docs/connect-to-snowflake#connect-to-snowflake-with-basic-authentication).</p> |
| Resolution (OAuth)     | <p>In Sigma, go to the connection configuration page and verify that the role name is entered correctly in the **Service Account Configuration** > **Role** field.</p><p>If the role was deleted, refer to <a href="https://docs.snowflake.com/en/user-guide/security-access-control-configure#create-a-role" target="_blank">Create a role</a> in the Snowflake documentation to recreate it (you cannot recover a deleted role). </p><p>For more information about setting a role in the connection configuration, see [Connect to Snowflake with OAuth](/docs/connect-to-snowflake#connect-to-snowflake-with-oauth).</p>                                                                                                                                                             |

#### Cannot access warehouse

|                        |                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| :--------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Error message          | <p><code>000606 (57P03): No active warehouse selected in the current session.  Select an active warehouse with the 'use warehouse' command.</code></p>                                                                                                                                                                                                                                                                                  |
| Root cause             | <p>The connection cannot access a warehouse.</p><p>Possible cause: The warehouse is set using a user attribute that's invalid or has no value assigned to the user.</p>                                                                                                                                                                                                                                                                 |
| Resolution (non-OAuth) | <p>In Sigma, go to the connection configuration page and verify that the user attribute name used to set the warehouse is entered correctly in the **Connection Credentials** > **Warehouse** field. </p><p>If the user attribute name provided is valid, see [Configure user attributes on a Snowflake connection](/docs/dynamically-assign-roles-used-by-a-connection) to ensure that the user is assigned a warehouse attribute.</p> |
| Resolution (OAuth)     | <p>In Sigma, go to the connection configuration page and verify that the user attribute name used to set the warehouse is entered correctly in the **Connection Credentials** > **Warehouse** field. </p><p>If the user attribute name provided is valid, see [Configure user attributes on a Snowflake connection](/docs/dynamically-assign-roles-used-by-a-connection) to ensure that the user is assigned a warehouse attribute.</p> |

#### Cannot access tables

|               |                                                                                                                                                                                                                                                                           |
| :------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Error message | `002003 (42S02): SQL compilation error: Object <OBJECT_NAME> does not exist or not authorized.`                                                                                                                                                                           |
| Root cause    | <p>The connection cannot access tables containing input table data and the edit log.</p><p>Possible causes:</p><ul><li>The role provided doesn't have the Snowflake privileges required to access the identified table.</li><li>The table was deleted or moved.</li></ul> |
| Resolution    | See [Restore input table access for a Snowflake connection or user](/docs/restore-input-table-access-for-a-snowflake-connection-or-user).                                                                                                                                 |

#### Insufficient role privileges

|               |                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| :------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Error message | `003001 (42501): SQL access control error: Insufficient privileges to operate on schema <SCHEMA_NAME>`                                                                                                                                                                                                                                                                                                                                            |
| Root cause    | The role provided in the connection configuration doesn't have the Snowflake privileges required to perform the operation on the identified schema.                                                                                                                                                                                                                                                                                               |
| Resolution    | <p>Refer to <a href="https://docs.snowflake.com/en/user-guide/security-access-control-configure#grant-privileges-to-a-role" target="_blank">Grant privileges to a role</a> in the Snowflake documentation to grant the required privileges to the role.</p><p>For more information about the schema privileges required to correctly configure write access, see [Configure write access](/docs/connect-to-snowflake#configure-write-access).</p> |

#### User access disabled

|                        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| :--------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Error message          | <p><code>390101 (08004): User access disabled. Contact your local system administrator.</code></p>                                                                                                                                                                                                                                                                                                                                                                                                           |
| Root cause             | <p>The username and password provided in the connection configuration has been changed or disabled.</p>                                                                                                                                                                                                                                                                                                                                                                                                      |
| Resolution (non-OAuth) | <p>In Sigma, go to the connection configuration page and update the **User** and **Password** fields (or **User**, **Private key**, and **Private key passphrase** if the connection uses key pair authentication) in the **Connection Credentials** section.</p><p>Alternatively, refer to <a href="https://docs.snowflake.com/en/user-guide/admin-user-management#disabling-or-enabling-a-user" target="_blank">Disabling or enabling a user</a> in the Snowflake documentation to re-enable the user.</p> |

#### Incorrect WAL schema

|               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| :------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Error message | `wrong schema for WAL table <DATABASE>.<SCHEMA>.<WAS_TABLE_NAME>`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Root cause    | <p>The edit cannot be logged and committed due to a non-compliant write-ahead log (WAL) schema.</p><p>Possible causes: A user modified the schema in Snowflake by making one or more changes to a column or constraint.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Resolution    | <p>Compare the schema of the existing table against the `CREATE TABLE` statement below. If the schema doesn't match the exact column names, data types, and constraints provided in the SQL definition, correct the discrepancy.</p><p>If the schema cannot be corrected, delete it and run the SQL to create a compliant table.</p><pre><code class="language-sql">CREATE TABLE IF NOT EXISTS \&lt;CATALOG>.\&lt;SCHEMA>.SIGDS\_WAL\_\&lt;connection\_id> (&#xA;  DS\_ID BINARY(16) NOT NULL,&#xA;  EDIT\_ID BINARY(16) NOT NULL,&#xA;  USER\_ID BINARY(36) NOT NULL,&#xA;  EDIT\_NUM BIGINT NOT NULL,&#xA;  PROTOCOL\_VERSION SMALLINT NOT NULL,&#xA;  EDIT TEXT NOT NULL,&#xA;  METADATA TEXT NOT NULL,&#xA;  TIMESTAMP TIMESTAMP\_NTZ NOT NULL&#xA;) CLUSTER BY (DS\_ID)</code></pre> |