This message was deleted.
# ask-ai
s
This message was deleted.
k
I'm sorry, but the knowledge sources provided do not contain specific information about the error "java.util.NoSuchElementException: List is empty" occurring after calling
/api/v1/connections/update
when syncing Postgres to BigQuery. However, there are several reports of sync failures and issues after connector or platform upgrades, especially involving Postgres sources and BigQuery destinations. Common causes in those cases include: - Schema changes or mismatches between the source and destination. - Streams or tables present in the state or status messages that are not present in the current catalog, leading to errors like "A stream status has been detected for a stream not present in the catalog" after updates or schema changes [[destination-bigquery] After an upgrade to 2.8.0 a connection to a postgres source started failing](https://github.com/airbytehq/airbyte/issues/40555). - Problems with connector versions or Airbyte platform versions after upgrades, sometimes requiring a rollback or further upgrade to resolve [[source-postgres] Full Refresh | Overwrite only works every other sync on most connections](https://github.com/airbytehq/airbyte/issues/42468). The specific "NoSuchElementException: List is empty" is not mentioned in the sources, so I cannot provide a definitive cause or solution. If you are experiencing this after a connection update, it may be related to a mismatch or missing configuration in the connection or catalog, but the knowledge sources do not confirm this. If you can provide more detailed logs or context, or if you see related errors about streams or state, that might help narrow down the issue. Otherwise, I recommend checking for schema mismatches, ensuring all streams in the state are present in the catalog, and verifying connector and platform versions for compatibility.
Sorry @Amarjit Atwal, it looks like your question contains files, which I cannot process. Please reformulate your question without including any files.
a
@kapa.ai - Detailed logs and here (I've cut some repetitive info out): Here's the info In 3 parts: Part 1:
k
A message from kapa.ai
Thank you for your detailed instructions and for providing additional context. Based on the knowledge sources above, here is what I can determine regarding your issue: You are experiencing a sync failure between Postgres and BigQuery after updating a connection, with the error:
Copy code
java.util.NoSuchElementException: List is empty
What the knowledge sources say: - There are several reports of sync failures after connector or Airbyte platform upgrades, especially with Postgres sources and BigQuery destinations. A common pattern is that schema changes or mismatches between the source and destination can cause syncs to fail. For example, if a stream or table is present in the state or status messages but not in the current catalog, Airbyte may throw errors and halt the sync [[destination-bigquery] After an upgrade to 2.8.0 a connection to a postgres source started failing](https://github.com/airbytehq/airbyte/issues/40555). - The specific error message "NoSuchElementException: List is empty" is not directly mentioned in the knowledge sources. However, similar issues have been linked to missing or mismatched streams/tables after updates or schema changes. - In some cases, users have resolved similar issues by resetting the connection, recreating the connection, or ensuring that all streams referenced in the state are present in the catalog [[destination-bigquery] After an upgrade to 2.8.0 a connection to a postgres source started failing](https://github.com/airbytehq/airbyte/issues/40555). What you can try: - Check if any tables or streams have been removed or renamed in your source or destination since the last successful sync. - Ensure that the connection's catalog is up to date and matches the actual schema in both Postgres and BigQuery. - If you recently upgraded connectors or Airbyte itself, consider resetting the connection or recreating it to clear any stale state that might reference missing streams. - Review the full logs for any additional context, especially messages about missing streams, state mismatches, or catalog issues. Limitations: I'm sorry, but the knowledge sources do not contain explicit information about the "NoSuchElementException: List is empty" error in this context, so I cannot provide a definitive root cause or solution. The suggestions above are based on similar issues reported in the sources. If you can provide the full logs (with sensitive info redacted), I may be able to help further by identifying patterns that match known issues in the knowledge sources.
a
Part 1: 2025-07-17 134716 info INFO sync-operations-10 i.a.i.b.d.o.AbstractStreamOperation(prepareStageForNormalSync):125 register_airbyte_tf.nationalisations: non-truncate sync and no temp raw table. Initial raw table status is null. 2025-07-17 134716 info INFO sync-operations-10 i.a.i.b.d.o.AbstractStreamOperation(prepareFinalTable):247 Final Table exists for stream nationalisations 2025-07-17 134716 info INFO main i.a.c.i.d.a.b.BufferManager(<init>):48 Max 'memory' available for buffer allocation 768 MB 2025-07-17 134716 info INFO main i.a.c.i.b.IntegrationRunner$Companion(consumeWriteStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_core):406 Starting buffered read of input stream 2025-07-17 134716 info INFO main i.a.c.i.d.a.FlushWorkers(start):73 Start async buffer supervisor 2025-07-17 134716 info INFO pool-3-thread-1 i.a.c.i.d.a.b.BufferManager(printQueueInfo):94 [ASYNC QUEUE INFO] Global: max: 768 MB, allocated: 10 MB (10.0 MB), %% used: 0.013020833333333334 | State Manager memory usage: Allocated: 10 MB, Used: 0 bytes, percentage Used 0.0 2025-07-17 134716 info INFO main i.a.c.i.d.a.AsyncStreamConsumer(start):89 class io.airbyte.cdk.integrations.destination.async.AsyncStreamConsumer started. 2025-07-17 134716 info INFO main i.a.c.i.b.IntegrationRunner$Companion(consumeWriteStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_core):428 Finished buffered read of input stream 2025-07-17 134716 info INFO main i.a.c.i.d.a.FlushWorkers(close):193 Closing flush workers -- waiting for all buffers to flush 2025-07-17 134716 info INFO main i.a.c.i.d.a.FlushWorkers(close):230 Closing flush workers -- all buffers flushed 2025-07-17 134716 info INFO main i.a.c.i.d.a.s.GlobalAsyncStateManager(flushStates):153 Flushing states 2025-07-17 134716 info INFO main i.a.c.i.d.a.s.GlobalAsyncStateManager(flushStates):207 Flushing states complete 2025-07-17 134716 info INFO main i.a.c.i.d.a.GlobalMemoryManager(free):78 Freeing 0 bytes.. 2025-07-17 134716 info INFO main i.a.c.i.d.a.FlushWorkers(close):238 Closing flush workers -- supervisor shut down 2025-07-17 134716 info INFO main i.a.c.i.d.a.FlushWorkers(close):240 Closing flush workers -- Starting worker pool shutdown.. 2025-07-17 134716 info INFO main i.a.c.i.d.a.FlushWorkers(close):245 Closing flush workers -- workers shut down 2025-07-17 134716 info INFO main i.a.c.i.d.a.b.BufferManager(close):73 Buffers cleared.. 2025-07-17 134716 info INFO sync-operations-3 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-5 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-6 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 22025-07-17 134716 info INFO sync-operations-7 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.subjects because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-10 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.funding_methods. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-7 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.subjects. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-10 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-10 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.lead_partner_users. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-10 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.lead_partner_users because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-10 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.lead_partner_users. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-10 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-10 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.allocation_subjects. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-10 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.allocation_subjects because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-10 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.allocation_subjects. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.sign_offs. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-5 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.subject_specialisms. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.subject_specialisms because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.subject_specialisms. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-5 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.hesa_collection_requests. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.hesa_collection_requests because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.hesa_collection_requests. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-5 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.apply_applications. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.apply_applications because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.apply_applications. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-5 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.nationalities. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.nationalities because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.nationalities. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-5 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.dqt_trn_requests. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.dqt_trn_requests because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.dqt_trn_requests. Truncate sync: false; stream success: false; final table suffix not blank: false
Part 2: 2025-07-17 134716 info INFO sync-operations-5 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-2 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.potential_duplicate_trainees. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.placements. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.placements because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-2 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.placements. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-5 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.degrees. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.degrees because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.degrees. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-5 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.nationalisations. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.nationalisations because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-5 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.nationalisations. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-6 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.courses. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-8 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.trainee_withdrawal_reasons. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-4 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.withdrawal_reasons. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-3 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.funding_method_subjects. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-10 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-10 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.activities. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-10 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.activities because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-10 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.activities. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-2 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.dttp_providers. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-2 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.dttp_providers because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-2 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.dttp_providers. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-7 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-9 i.a.i.d.b.o.BigQueryStorageOperation(cleanupStage):127 Nothing to cleanup in stage for Streaming inserts 2025-07-17 134716 info INFO sync-operations-7 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.hesa_metadata. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-9 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):357 Not overwriting raw table for register_airbyte_tf.provider_users. Truncate sync: false; stream success: false; raw table suffix: "" 2025-07-17 134716 info INFO sync-operations-7 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.hesa_metadata because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-9 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):378 Skipping typing and deduping for stream register_airbyte_tf.provider_users because it had no records during this sync and no unprocessed records from a previous sync. 2025-07-17 134716 info INFO sync-operations-7 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.hesa_metadata. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-9 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.provider_users. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO sync-operations-1 i.a.i.b.d.o.AbstractStreamOperation(finalizeTable):418 Not overwriting final table for register_airbyte_tf.users. Truncate sync: false; stream success: false; final table suffix not blank: false 2025-07-17 134716 info INFO main i.a.i.b.d.o.DefaultSyncOperation(finalizeStreams):150 Cleaning up sync operation thread pools 2025-07-17 134716 info INFO main i.a.c.i.d.a.AsyncStreamConsumer(close):200 class io.airbyte.cdk.integrations.destination.async.AsyncStreamConsumer closed 2025-07-17 134716 info INFO main i.a.c.i.d.a.AsyncStreamConsumer(close):212 Some streams either received an INCOMPLETE stream status, or did not receive a stream status at all: null.disabilities, null.funding_method_subjects, null.withdrawal_reasons, null.trainee_withdrawal_reasons, null.dttp_schools, null.sign_offs, null.courses, null.potential_duplicate_trainees, null.schools, null.providers, null.lead_partners, null.course_subjects, null.bulk_update_row_errors, null.academic_cycles, null.hesa_trn_submissions, null.users, null.trainees, null.provider_users, null.trainee_withdrawals, null.funding_methods, null.subjects, null.lead_partner_users, null.hesa_metadata, null.allocation_subjects, null.activities, null.subject_specialisms, null.hesa_collection_requests, null.apply_applications, null.nationalities, null.dqt_trn_requests, null.placements, null.dttp_providers, null.degrees, null.nationalisations 2025-07-17 134716 error ERROR main i.a.c.i.u.ConnectorExceptionHandler(handleException):68 caught exception! io.airbyte.commons.exceptions.TransientErrorException: Some streams were unsuccessful due to a source error. See logs for details. at io.airbyte.cdk.integrations.destination.async.AsyncStreamConsumer.close(AsyncStreamConsumer.kt:215) ~[airbyte-cdk-core-0.46.0.jar:?] at kotlin.jdk7.AutoCloseableKt.closeFinally(AutoCloseableJVM.kt:48) ~[kotlin-stdlib-2.0.0.jar:2.0.0-release-341] at io.airbyte.cdk.integrations.base.IntegrationRunner.runInternal(IntegrationRunner.kt:215) [airbyte-cdk-core-0.46.0.jar:?] at io.airbyte.cdk.integrations.base.IntegrationRunner.run(IntegrationRunner.kt:119) [airbyte-cdk-core-0.46.0.jar:?] at io.airbyte.cdk.integrations.base.IntegrationRunner.run$default(IntegrationRunner.kt:113) [airbyte-cdk-core-0.46.0.jar:?] at io.airbyte.integrations.destination.bigquery.BigQueryDestinationKt.main(BigQueryDestination.kt:566) [io.airbyte.airbyte-integrations.connectors-destination-bigquery.jar:?] Stack Trace: io.airbyte.commons.exceptions.TransientErrorException: Some streams were unsuccessful due to a source error. See logs for details. at io.airbyte.cdk.integrations.destination.async.AsyncStreamConsumer.close(AsyncStreamConsumer.kt:215) at kotlin.jdk7.AutoCloseableKt.closeFinally(AutoCloseableJVM.kt:48) at io.airbyte.cdk.integrations.base.IntegrationRunner.runInternal(IntegrationRunner.kt:215) at io.airbyte.cdk.integrations.base.IntegrationRunner.run(IntegrationRunner.kt:119) at io.airbyte.cdk.integrations.base.IntegrationRunner.run$default(IntegrationRunner.kt:113) at io.airbyte.integrations.destination.bigquery.BigQueryDestinationKt.main(BigQueryDestination.kt:566) 2025-07-17 134716 info Destination finished successfully — exiting read dest... 2025-07-17 134716 info readFromDestination: exception caught 2025-07-17 134716 info readFromDestination: done. (writeToDestFailed:false, dest.isFinished:true) 2025-07-17 134716 info Closing StateCheckSumCountEventHandler
Part 3: 2025-07-17 134716 info sync summary: { "status" : "failed", "startTime" : 1752756340562, "endTime" : 1752756436829, "totalStats" : { "bytesEmitted" : 0, "destinationStateMessagesEmitted" : 0, "destinationWriteEndTime" : 0, "destinationWriteStartTime" : 1752756340860, "meanSecondsBeforeSourceStateMessageEmitted" : 0, "maxSecondsBeforeSourceStateMessageEmitted" : 0, "meanSecondsBetweenStateMessageEmittedandCommitted" : 0, "recordsEmitted" : 0, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0, "replicationEndTime" : 1752756436825, "replicationStartTime" : 1752756340562, "sourceReadEndTime" : 0, "sourceReadStartTime" : 1752756340872, "sourceStateMessagesEmitted" : 0 }, "streamStats" : [ ], "performanceMetrics" : { "processFromSource" : { "elapsedTimeInNanos" : 1391990, "executionCount" : 1, "avgExecTimeInNanos" : 1391990.0 }, "readFromSource" : { "elapsedTimeInNanos" : 2587103014, "executionCount" : 89, "avgExecTimeInNanos" : 2.9068573191011235E7 }, "processFromDest" : { "elapsedTimeInNanos" : 386805, "executionCount" : 1, "avgExecTimeInNanos" : 386805.0 }, "writeToDest" : { "elapsedTimeInNanos" : 0, "executionCount" : 0, "avgExecTimeInNanos" : "NaN" }, "readFromDest" : { "elapsedTimeInNanos" : 95854961030, "executionCount" : 397, "avgExecTimeInNanos" : 2.4144826455919397E8 } } } 2025-07-17 134716 info failures: [ { "failureOrigin" : "source", "failureType" : "system_error", "internalMessage" : "java.util.NoSuchElementException: List is empty.", "externalMessage" : "Something went wrong in the connector. See the logs for more details.", "metadata" : { "attemptNumber" : 0, "jobId" : 1437, "from_trace_message" : true, "connector_command" : "read" }, "stacktrace" : "java.util.NoSuchElementException: List is empty.\n\tat kotlin.collections.CollectionsKt___CollectionsKt.first(_Collections.kt:221)\n\tat io.airbyte.cdk.integrations.source.relationaldb.AbstractDbSource.validateCursorFieldForIncrementalTables(AbstractDbSource.kt:221)\n\tat io.airbyte.cdk.integrations.source.relationaldb.AbstractDbSource.read(AbstractDbSource.kt:138)\n\tat io.airbyte.cdk.integrations.base.ssh.SshWrappedSource.read(SshWrappedSource.kt:70)\n\tat io.airbyte.cdk.integrations.base.IntegrationRunner.readSerial(IntegrationRunner.kt:290)\n\tat io.airbyte.cdk.integrations.base.IntegrationRunner.runInternal(IntegrationRunner.kt:190)\n\tat io.airbyte.cdk.integrations.base.IntegrationRunner.run(IntegrationRunner.kt:119)\n\tat io.airbyte.integrations.source.postgres.PostgresSource.main(PostgresSource.java:712)\n", "timestamp" : 1752756343454 }, { "failureOrigin" : "destination", "failureType" : "transient_error", "internalMessage" : "Some streams either received an INCOMPLETE stream status, or did not receive a stream status at all: null.disabilities, null.funding_method_subjects, null.withdrawal_reasons, null.trainee_withdrawal_reasons, null.dttp_schools, null.sign_offs, null.courses, null.potential_duplicate_trainees, null.schools, null.providers, null.lead_partners, null.course_subjects, null.bulk_update_row_errors, null.academic_cycles, null.hesa_trn_submissions, null.users, null.trainees, null.provider_users, null.trainee_withdrawals, null.funding_methods, null.subjects, null.lead_partner_users, null.hesa_metadata, null.allocation_subjects, null.activities, null.subject_specialisms, null.hesa_collection_requests, null.apply_applications, null.nationalities, null.dqt_trn_requests, null.placements, null.dttp_providers, null.degrees, null.nationalisations\nio.airbyte.commons.exceptions.TransientErrorException: Some streams were unsuccessful due to a source error. See logs for details.", "externalMessage" : "Some streams were unsuccessful due to a source error. See logs for details.", "metadata" : { "attemptNumber" : 0, "jobId" : 1437, "from_trace_message" : true, "connector_command" : "write" }, "stacktrace" : "io.airbyte.commons.exceptions.TransientErrorException: Some streams were unsuccessful due to a source error. See logs for details.\n\tat io.airbyte.cdk.integrations.destination.async.AsyncStreamConsumer.close(AsyncStreamConsumer.kt:215)\n\tat kotlin.jdk7.AutoCloseableKt.closeFinally(AutoCloseableJVM.kt:48)\n\tat io.airbyte.cdk.integrations.base.IntegrationRunner.runInternal(IntegrationRunner.kt:215)\n\tat io.airbyte.cdk.integrations.base.IntegrationRunner.run(IntegrationRunner.kt:119)\n\tat io.airbyte.cdk.integrations.base.IntegrationRunner.run$default(IntegrationRunner.kt:113)\n\tat io.airbyte.integrations.destination.bigquery.BigQueryDestinationKt.main(BigQueryDestination.kt:566)\n", "timestamp" : 1752756436739 }, { "failureOrigin" : "source", "internalMessage" : "Source process exited with non-zero exit code 1", "externalMessage" : "Something went wrong within the source connector", "metadata" : { "attemptNumber" : 0, "jobId" : 1437, "connector_command" : "read" }, "stacktrace" : "io.airbyte.workers.internal.exception.SourceException: Source process exited with non-zero exit code 1\n\tat io.airbyte.workers.general.BufferedReplicationWorker.readFromSource(BufferedReplicationWorker.java:365)\n\tat io.airbyte.workers.general.BufferedReplicationWorker.lambda$runAsyncWithHeartbeatCheck$3(BufferedReplicationWorker.java:223)\n\tat java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\n", "timestamp" : 1752756343529 }, { "failureOrigin" : "destination", "internalMessage" : "Destination process exited with non-zero exit code 1", "externalMessage" : "Something went wrong within the destination connector", "metadata" : { "attemptNumber" : 0, "jobId" : 1437, "connector_command" : "write" }, "stacktrace" : "io.airbyte.workers.internal.exception.DestinationException: Destination process exited with non-zero exit code 1\n\tat io.airbyte.workers.general.BufferedReplicationWorker.readFromDestination(BufferedReplicationWorker.java:503)\n\tat io.airbyte.workers.general.BufferedReplicationWorker.lambda$runAsync$2(BufferedReplicationWorker.java:216)\n\tat java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\n", "timestamp" : 1752756436798 }, { "failureOrigin" : "replication", "internalMessage" : "io.airbyte.workers.exception.WorkerException: Destination process exit with code 1. This warning is normal if the job was cancelled.", "externalMessage" : "Something went wrong during replication", "metadata" : { "attemptNumber" : 0, "jobId" : 1437 }, "stacktrace" : "java.lang.RuntimeException: io.airbyte.workers.exception.WorkerException: Destination process exit with code 1. This warning is normal if the job was cancelled.\n\tat io.airbyte.workers.general.BufferedReplicationWorker$CloseableWithTimeout.lambda$close$0(BufferedReplicationWorker.java:548)\n\tat io.airbyte.workers.general.BufferedReplicationWorker.lambda$runAsyncWithTimeout$5(BufferedReplicationWorker.java:244)\n\tat java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\nCaused by: io.airbyte.workers.exception.WorkerException: Destination process exit with code 1. This warning is normal if the job was cancelled.\n\tat io.airbyte.workers.internal.LocalContainerAirbyteDestination.close(LocalContainerAirbyteDestination.kt:61)\n\tat io.airbyte.workers.general.BufferedReplicationWorker$CloseableWithTimeout.lambda$close$0(BufferedReplicationWorker.java:546)\n\t... 5 more\n", "timestamp" : 1752756436806 } ] 2025-07-17 134716 info 2025-07-17 134716 info ----- END REPLICATION ----- 2025-07-17 134716 info 2025-07-17 134717 info Returning output... 2025-07-17 134717 info Closing Segment analytics client... 2025-07-17 134717 info Waiting for Segment analytic client to flush enqueued messages... 2025-07-17 134717 info Segment analytic client flush complete. 2025-07-17 134717 info Segment analytics client closed. No new events will be accepted. 2025-07-17 134717 info ----- START POST REPLICATION OPERATIONS ----- 2025-07-17 134717 info No post-replication operation(s) to perform. 2025-07-17 134717 info ----- END POST REPLICATION OPERATIONS ----- 2025-07-17 134717 info Retry State: RetryManager(completeFailureBackoffPolicy=BackoffPolicy(minInterval=PT10S, maxInterval=PT30M, base=3), partialFailureBackoffPolicy=null, successiveCompleteFailureLimit=5, successivePartialFailureLimit=1000, totalCompleteFailureLimit=10, totalPartialFailureLimit=20, successiveCompleteFailures=1, successivePartialFailures=0, totalCompleteFailures=1, totalPartialFailures=0) Backoff before next attempt: 10 seconds
@kapa.ai - Can you look at the above logs and figure out the error ?
k
A message from kapa.ai
Based on the knowledge sources provided, I do not have access to the actual logs you referenced in your last message—only your description of the error (
java.util.NoSuchElementException: List is empty
) and the context that this occurs after a connection update when syncing Postgres to BigQuery. From the available sources, this specific error message is not directly documented. However, there are related issues where sync failures after updates are caused by mismatches between the connection's catalog and the actual streams/tables present in the source or destination. For example, one documented error is: > "A stream status has been detected for a stream not present in the catalog" This occurs when the state references a stream that no longer exists in the catalog, often after schema changes or connector upgrades. The recommended actions in such cases are to reset the connection or ensure the catalog is up to date with the actual schema [[destination-bigquery] After an upgrade to 2.8.0 a connection to a postgres source started failing](https://github.com/airbytehq/airbyte/issues/40555). Summary: I'm sorry, but without the actual logs and since the specific "NoSuchElementException: List is empty" error is not mentioned in the knowledge sources, I cannot provide a definitive diagnosis. The closest related issues point to catalog and state mismatches after updates, which may require a connection reset or schema alignment. If you can provide the actual log content, I may be able to match it more closely to known issues in the sources.