<@U04S8PLJWMT> Hi we are using airbyte_1_1_0 and ...
# ask-ai
t
@kapa.ai Hi we are using airbyte_1_1_0 and set up a jira connection using the existing connector Jira v3.5.3. My streams are failing with this error: closing connection because of an Exception net.snowflake.client.jdbc.SnowflakeSQLException: SQL compilation error: Table 'RAW.JIRA._AIRBYTE_RAW_LABELS' does not exist or not authorized. There is no airbyte_raw tables in this schema as they are generated in RAW."airbyte_internal". This table for instance exists : RAW."airbyte_internal"."jira_raw__stream_labels_airbyte_tmp" Why is the connector looking in the wrong schema?
k
The error you're seeing—`Table 'RAW.JIRA._AIRBYTE_RAW_LABELS' does not exist or not authorized`—indicates that Airbyte (or a downstream process like dbt normalization) is looking for the raw table in the wrong schema (
RAW.JIRA
) instead of the correct location (
RAW."airbyte_internal"
). By default, Airbyte writes raw tables for each stream into the
airbyte_internal
schema within your destination database (e.g.,
RAW."airbyte_internal"."jira_raw__stream_labels_airbyte_tmp"
). The final tables are created in the schema you specify, but the raw tables are always in
airbyte_internal
unless you override this setting. This is expected behavior for the Snowflake destination connector, as described in the documentation: > Airbyte outputs each stream into its own raw table in
airbyte_internal
schema by default (can be overriden by user) and a final table with Typed columns. Contents in raw table are NOT deduplicated. [Snowflake Output Schema](https://docs.airbyte.com/integrations/destinations/snowflake#output-schema) The error usually occurs when: - A downstream process (like dbt normalization or a custom query) is configured to look for raw tables in the wrong schema (e.g.,
RAW.JIRA
instead of
RAW.airbyte_internal
). - There is a misconfiguration in the Airbyte connection or in the dbt project that causes it to reference the wrong schema. How to resolve: - Ensure that any dbt models or custom SQL queries reference the correct schema and table names, e.g.,
RAW.airbyte_internal.jira_raw__stream_labels
. - If you are using dbt normalization, check your dbt project and generated models to ensure they are targeting the correct schema for raw tables. - If you want raw tables to be created in a different schema, you can override the default in the Airbyte destination configuration. If you are using a custom namespace or have changed the default schema settings, make sure all related configurations (including dbt and Airbyte connection settings) are consistent. There have been issues reported where custom namespaces or schema settings led to Airbyte or dbt looking in the wrong place for raw tables, especially if the destination is set to mirror the source structure or use a custom namespace, but the permissions or schema mappings are not aligned [[Snowflake destination sync fails with custom namespace](https://github.com/airbytehq/airbyte/issues/26373)]. Summary: The connector is looking in the wrong schema because either the downstream process or configuration is not aligned with Airbyte's default behavior of writing raw tables to the
airbyte_internal
schema. Update your references to point to
RAW.airbyte_internal
for raw tables, or adjust your Airbyte destination configuration if you want to change where raw tables are written.
t
@kapa.ai can it be that the connector is outdated and using the old airbyte behaviour propagating the raw tables in the destinations schema instead of
airbyte_internal
? Is there a way to enforce the connector to use the right schema?
k
A message from kapa.ai
Based on the knowledge sources, it is possible that older versions of Airbyte connectors wrote raw tables directly into the destination schema (e.g.,
RAW.JIRA
). However, with the introduction of Destinations V2, Airbyte standardized the behavior so that all raw tables are written to the
airbyte_internal
schema by default. This change was made to avoid cluttering user schemas and to provide a consistent staging area for raw data across destinations. The documentation states: > Airbyte will now generate all raw tables in the
airbyte_internal
schema. We no longer clutter your destination schema with raw data tables. [Upgrading to Destinations V2](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2) If you are using an older connector version (such as Jira v3.5.3), it may still be using the legacy behavior, depending on when Destinations V2 support was added for your destination. The documentation also notes that after upgrading to a Destinations V2-compatible version, raw tables will be moved to the
airbyte_internal
schema, and the old tables will be left untouched [[Quick Start to Upgrading](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2#quick-start-to-upgrading)]. How to enforce the correct schema: - Upgrade your destination connector to a Destinations V2-compatible version. This will ensure that raw tables are written to the
airbyte_internal
schema as per the new standard. - You can also override the raw table schema in the destination configuration if needed. For example, in Postgres and other destinations, there is a configuration field for "Raw table schema" which defaults to
airbyte_internal
but can be changed [[Postgres Config Reference](https://docs.airbyte.com/integrations/destinations/postgres#reference)]. Summary: Yes, an outdated connector could be using the old behavior. To enforce the correct schema, upgrade to a Destinations V2-compatible connector and check your destination configuration to ensure the raw table schema is set to
airbyte_internal
or your preferred schema. If you continue to see issues after upgrading, review your downstream processes to ensure they reference the correct schema for raw tables.
t
@kapa.ai here is some constext from the output: Stack Trace: net.snowflake.client.jdbc.SnowflakeSQLException: SQL compilation error: Table 'RAW.JIRA._AIRBYTE_RAW_LABELS' does not exist or not authorized. 2025-07-07 171656 destination INFO sync-operations-4 i.a.i.b.d.t.BaseDestinationV1V2Migrator(shouldMigrate):50 Migration Info: Required for Sync mode: false, No existing v2 raw tables: false, A v1 raw table exists: false 2025-07-07 171656 destination INFO sync-operations-4 i.a.i.b.d.t.BaseDestinationV1V2Migrator(migrateIfNecessary):30 No Migration Required for stream: LABELS 2025-07-07 171656 destination INFO main i.a.i.b.d.t.TyperDeduperUtil(executeRawTableMigrations):66 Refetching initial state for streams: [StreamId(finalNamespace=JIRA, finalName=ISSUE_TRANSITIONS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_issue_transitions, originalNamespace=jira, originalName=issue_transitions), StreamId(finalNamespace=JIRA, finalName=BOARD_ISSUES, rawNamespace=airbyte_internal, rawName=jira_raw__stream_board_issues, originalNamespace=jira, originalName=board_issues), StreamId(finalNamespace=JIRA, finalName=FILTERS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_filters, originalNamespace=jira, originalName=filters), StreamId(finalNamespace=JIRA, finalName=FILTER_SHARING, rawNamespace=airbyte_internal, rawName=jira_raw__stream_filter_sharing, originalNamespace=jira, originalName=filter_sharing), StreamId(finalNamespace=JIRA, finalName=ISSUE_WORKLOGS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_issue_worklogs, originalNamespace=jira, originalName=issue_worklogs), StreamId(finalNamespace=JIRA, finalName=WORKFLOWS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_workflows, originalNamespace=jira, originalName=workflows), StreamId(finalNamespace=JIRA, finalName=ISSUE_PROPERTIES, rawNamespace=airbyte_internal, rawName=jira_raw__stream_issue_properties, originalNamespace=jira, originalName=issue_properties), StreamId(finalNamespace=JIRA, finalName=BOARDS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_boards, originalNamespace=jira, originalName=boards), StreamId(finalNamespace=JIRA, finalName=SPRINTS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_sprints, originalNamespace=jira, originalName=sprints), StreamId(finalNamespace=JIRA, finalName=PROJECTS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_projects, originalNamespace=jira, originalName=projects), StreamId(finalNamespace=JIRA, finalName=PROJECT_CATEGORIES, rawNamespace=airbyte_internal, rawName=jira_raw__stream_project_categories, originalNamespace=jira, originalName=project_categories), StreamId(finalNamespace=JIRA, finalName=PROJECT_COMPONENTS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_project_components, originalNamespace=jira, originalName=project_components), StreamId(finalNamespace=JIRA, finalName=USERS_GROUPS_DETAILED, rawNamespace=airbyte_internal, rawName=jira_raw__stream_users_groups_detailed, originalNamespace=jira, originalName=users_groups_detailed), StreamId(finalNamespace=JIRA, finalName=ISSUES, rawNamespace=airbyte_internal, rawName=jira_raw__stream_issues, originalNamespace=jira, originalName=issues), StreamId(finalNamespace=JIRA, finalName=APPLICATION_ROLES, rawNamespace=airbyte_internal, rawName=jira_raw__stream_application_roles, originalNamespace=jira, originalName=application_roles), StreamId(finalNamespace=JIRA, finalName=USERS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_users, originalNamespace=jira, originalName=users), StreamId(finalNamespace=JIRA, finalName=ISSUE_FIELDS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_issue_fields, originalNamespace=jira, originalName=issue_fields), StreamId(finalNamespace=JIRA, finalName=SPRINT_ISSUES, rawNamespace=airbyte_internal, rawName=jira_raw__stream_sprint_issues, originalNamespace=jira, originalName=sprint_issues), StreamId(finalNamespace=JIRA, finalName=DASHBOARDS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_dashboards, originalNamespace=jira, originalName=dashboards), StreamId(finalNamespace=JIRA, finalName=ISSUE_RESOLUTIONS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_issue_resolutions, originalNamespace=jira, originalName=issue_resolutions), StreamId(finalNamespace=JIRA, finalName=LABELS, rawNamespace=airbyte_internal, rawName=jira_raw__stream_labels, originalNamespace=jira, originalName=labels)] 2025-07-07 171656 destination INFO main i.a.c.d.j.JdbcDatabase(execute$lambda$0):50 executing statement: create table if not exists "airbyte_internal"."_airbyte_destination_state" ("name" varchar, "namespace" varchar, "destination_state" varchar, "updated_at" timestamp with time zone) 2025-07-07 171656 destination INFO main i.a.c.d.j.JdbcDatabase(execute$lambda$0):54 statement successfully executed I changed the default destination schema in snowflake to
airbyte_internal
still it looks for a table in the
jira
schema.
k
A message from kapa.ai
Based on the logs and your description, Airbyte is correctly writing raw tables to the
airbyte_internal
schema (e.g.,
RAW."airbyte_internal"."jira_raw__stream_labels"
), but something—likely a downstream process such as dbt normalization or a custom query—is still looking for the raw table in the
JIRA
schema (i.e.,
RAW.JIRA._AIRBYTE_RAW_LABELS
). From the log:
Copy code
Refetching initial state for streams: [StreamId(finalNamespace=JIRA, ..., rawNamespace=airbyte_internal, rawName=jira_raw__stream_labels, ...)]
This shows Airbyte is aware that the raw table is in
airbyte_internal
. **Changing the default destination schema in Snowflake to
airbyte_internal
will not affect where Airbyte writes the raw tables**—Airbyte manages this internally and, by default (with Destinations V2), writes raw tables to the
airbyte_internal
schema, not to the schema specified as the default in your Snowflake connection. This is confirmed in the documentation: > The location of raw tables will from now on default to an
airbyte_internal
schema in your destination. [Upgrading to Destinations V2](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2#upgrading-as-a-user-of-raw-tables) Why is something looking in the wrong schema? - If you are using dbt normalization or custom SQL, it may be configured to look for raw tables in the
JIRA
schema instead of
airbyte_internal
. - This can happen if the dbt project or transformation logic was created before upgrading to Destinations V2, or if it is not dynamically referencing the correct schema. How to resolve: - Update your dbt models or any downstream SQL to reference the correct schema:
RAW.airbyte_internal.jira_raw__stream_labels
. - Do not set your default destination schema in Snowflake to `airbyte_internal`; keep it as your intended final data schema (e.g.,
JIRA
). Airbyte will handle raw tables in
airbyte_internal
and final tables in your configured schema. - If you are using Airbyte's built-in normalization, ensure you are on a recent version and that your connection settings are correct. If you have custom dbt transformations, update them to use the new raw table locations. Summary: Changing the default schema in Snowflake does not affect where Airbyte writes raw tables. The issue is likely with downstream processes referencing the old schema. Update all references to raw tables to use the
airbyte_internal
schema as per Destinations V2 behavior. If you continue to see issues, review your dbt or transformation logic for hardcoded schema names or outdated references [[Upgrading to Destinations V2](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2#upgrading-as-a-user-of-raw-tables)].
t
@kapa.ai the steam breaks with this warning from replication: 'message='Airbyte could not track the sync progress. Sync process exited without reporting status.', type='io.airbyte.workers.exception.WorkloadMonitorException', nonRetryable=false'
k
A message from kapa.ai
The error message you are seeing:
Copy code
'message='Airbyte could not track the sync progress. Sync process exited without reporting status.', type='io.airbyte.workers.exception.WorkloadMonitorException', nonRetryable=false'
indicates that the sync process for your connection exited unexpectedly without reporting its status back to Airbyte. This is a known issue that can occur in several scenarios: - The sync process crashes or is killed before it can send a status update to Airbyte. - Resource constraints (such as memory or CPU limits) can cause the process to be terminated by the system. - Connector or platform bugs may also cause the process to exit prematurely. This error has been reported by other users as well, especially when running syncs with a large number of streams or after a platform upgrade. In some cases, all sync jobs hang in "Queued" or "Starting" state, and when they fail, this is the error shown [[All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812)], [[Amazon Seller Partner syncs started failing](https://github.com/airbytehq/airbyte/issues/53167)]. What you can do: - Check your Airbyte deployment resources (CPU, memory) to ensure the sync process is not being killed due to resource exhaustion. - Review the logs for the sync attempt to see if there are any additional errors or stack traces before this message. - Try restarting Airbyte or redeploying if multiple syncs are stuck. - Disable and re-enable streams to isolate if a particular stream is causing the issue. - If the problem persists across all connectors and syncs, it may indicate a deeper platform or infrastructure issue. If you are on Airbyte Cloud, you may also want to reach out to Airbyte support for further assistance, as this error can sometimes be related to backend platform issues. Unfortunately, the knowledge sources do not provide a definitive root cause or a guaranteed fix, but the above steps are consistent with the troubleshooting approaches discussed in similar reports [[All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812)], [[Amazon Seller Partner syncs started failing](https://github.com/airbytehq/airbyte/issues/53167)].