<@U04S8PLJWMT> Airbyte Sync Failure – AppStoreConn...
# ask-ai
d
@kapa.ai Airbyte Sync Failure – AppStoreConnect (Custom → Snowflake) Since yesterday, the sync failed with:
Some streams either received an INCOMPLETE stream status, or did not receive a stream status at all: null.subscription_event_report, null.subscription_report, null.sales_report, null.subscriber_report
k
The error message you’re seeing—`Some streams either received an INCOMPLETE stream status, or did not receive a stream status at all: null.subscription_event_report, null.subscription_report, null.sales_report, null.subscriber_report`—indicates that the Airbyte sync from AppStoreConnect to Snowflake failed because certain streams did not complete successfully. Based on the knowledge sources, this type of error is typically associated with system errors or transient issues in the source connector or the platform. These errors are shown in yellow in the Airbyte UI and, in most cases, may resolve themselves without any action required. However, if the issue persists, it could be due to: - Temporary issues with the AppStoreConnect API (such as rate limits or data availability). - Platform or connector bugs, especially if you are using a connector that is deprecated or not fully supported. - Schema or configuration mismatches between source and destination. Recommended steps: 1. Check for Transient Issues: Wait and try running the sync again. Sometimes, these errors resolve on their own if they are due to temporary API or network issues. 2. Review Connector Status: The Appstore source connector is deprecated and may not be compatible with the latest Airbyte platform updates. If you are using the archived Appstore connector, consider migrating to a custom connector as recommended in the documentation. More details can be found in the [Appstore connector deprecation notice](https://docs.airbyte.com/integrations/sources/appstore). 3. Check Data Availability: The AppStoreConnect API may not have data available for the requested period, especially for very recent or very old data (older than 365 days). This can cause streams to be incomplete. 4. Review Logs: Check the Airbyte job logs for more detailed error messages that might indicate the root cause. 5. Connector Version: Ensure you are using the latest supported versions of both the source and destination connectors, as bugs are often fixed in newer releases. 6. Retry Policy: Airbyte will automatically retry failed syncs according to its retry policy, but persistent failures may require manual intervention or configuration changes. See more about retries in the [Airbyte jobs documentation](https://docs.airbyte.com/platform/understanding-airbyte/jobs#sync-jobs). If the problem continues after these steps, and especially if you are using the deprecated Appstore connector, you may need to develop or use a custom connector for AppStoreConnect data going forward, as the archived connector is no longer supported and may not function reliably with new Airbyte versions. I'm sorry, but there is no specific troubleshooting step for this exact error in the knowledge sources beyond these general recommendations and the deprecation notice for the Appstore connector. If you need to continue syncing this data, please refer to the [custom connector documentation](https://docs.airbyte.com/connector-development/) for guidance on building your own integration. [Appstore connector deprecation notice](https://docs.airbyte.com/integrations/sources/appstore) [Connection troubleshooting](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/review-connection-status#connection-troubleshooting)
d
@kapa.ai while resyncing the stream, it shows
Copy code
[ {
  "failureOrigin" : "destination",
  "failureType" : "transient_error",
  "internalMessage" : "Some streams either received an INCOMPLETE stream status, or did not receive a stream status at all: null.subscription_event_report, null.subscription_report, null.sales_report, null.subscriber_report\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" : 3,
    "jobId" : 49510419,
    "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:217)\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.cdk.integrations.base.adaptive.AdaptiveDestinationRunner$Runner.run(AdaptiveDestinationRunner.kt:68)\n\tat io.airbyte.integrations.destination.snowflake.SnowflakeDestinationKt.main(SnowflakeDestination.kt:422)\n",
  "timestamp" : 1757581166318
}, {
  "failureOrigin" : "replication",
  "internalMessage" : "LEGACY states are deprecated.",
  "externalMessage" : "Something went wrong during replication",
  "metadata" : {
    "attemptNumber" : 3,
    "jobId" : 49510419
  },
  "stacktrace" : "java.lang.IllegalArgumentException: LEGACY states are deprecated.\n\tat io.airbyte.container.orchestrator.bookkeeping.ParallelStreamStatsTracker.getEmittedCountForCurrentState(ParallelStreamStatsTracker.kt:193)\n\tat io.airbyte.container.orchestrator.worker.state.StateEnricher.enrich(StateEnricher.kt:38)\n\tat io.airbyte.container.orchestrator.worker.ReplicationWorkerHelper.processMessageFromSource(ReplicationWorkerHelper.kt:324)\n\tat io.airbyte.container.orchestrator.worker.MessageProcessor.run(ReplicationTask.kt:158)\n\tat io.airbyte.container.orchestrator.worker.MessageProcessor$run$1.invokeSuspend(ReplicationTask.kt)\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\n\tat kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)\n\tat io.micrometer.core.instrument.composite.CompositeTimer.record(CompositeTimer.java:141)\n\tat io.micrometer.core.instrument.Timer.lambda$wrap$2(Timer.java:199)\n\tat datadog.trace.bootstrap.instrumentation.java.concurrent.Wrapper.run(Wrapper.java:47)\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\tSuppressed: io.airbyte.workers.internal.exception.SourceException: Channel was closed\n\t\tat io.airbyte.container.orchestrator.worker.SourceReader.run(ReplicationTask.kt:217)\n\t\tat io.airbyte.container.orchestrator.worker.ReplicationWorker$runJobs$2$tasks$1$1.invokeSuspend(ReplicationWorker.kt:154)\n\t\tat io.airbyte.container.orchestrator.worker.ReplicationWorker$runJobs$2$tasks$1$1.invoke(ReplicationWorker.kt)\n\t\tat io.airbyte.container.orchestrator.worker.ReplicationWorker$runJobs$2$tasks$1$1.invoke(ReplicationWorker.kt)\n\t\tat io.airbyte.container.orchestrator.worker.util.AsyncUtils$runAsync$1$1.invokeSuspend(AsyncUtils.kt:22)\n\t\tat io.airbyte.container.orchestrator.worker.util.AsyncUtils$runAsync$1$1.invoke(AsyncUtils.kt)\n\t\tat io.airbyte.container.orchestrator.worker.util.AsyncUtils$runAsync$1$1.invoke(AsyncUtils.kt)\n\t\tat kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:66)\n\t\tat kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:43)\n\t\tat kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)\n\t\tat kotlinx.coroutines.BuildersKt.withContext(Unknown Source)\n\t\tat io.airbyte.container.orchestrator.worker.util.AsyncUtils$runAsync$1.invokeSuspend(AsyncUtils.kt:21)\n\t\t... 8 more\n\tCaused by: kotlinx.coroutines.channels.ClosedSendChannelException: Channel was closed\n\t\tat kotlinx.coroutines.channels.BufferedChannel.getSendException(BufferedChannel.kt:1759)\n\t\tat kotlinx.coroutines.channels.BufferedChannel.onClosedSend(BufferedChannel.kt:138)\n\t\tat kotlinx.coroutines.channels.BufferedChannel.send$suspendImpl(BufferedChannel.kt:123)\n\t\tat kotlinx.coroutines.channels.BufferedChannel.send(BufferedChannel.kt)\n\t\tat io.airbyte.container.orchestrator.worker.util.ClosableChannelQueue.send(ClosableChannelQueue.kt:16)\n\t\tat io.airbyte.container.orchestrator.worker.SourceReader.run(ReplicationTask.kt:196)\n\t\t... 19 more\n\tSuppressed: io.airbyte.workers.internal.exception.DestinationException: No exit code found.\n\t\tat io.airbyte.container.orchestrator.worker.DestinationWriter.handleException(ReplicationTask.kt:129)\n\t\tat io.airbyte.container.orchestrator.worker.DestinationWriter.run(ReplicationTask.kt:108)\n\t\tat io.airbyte.container.orchestrator.worker.DestinationWriter$run$1.invokeSuspend(ReplicationTask.kt)\n\t\t... 8 more\n\tCaused by: java.lang.IllegalStateException: No exit code found.\n\t\tat io.airbyte.container.orchestrator.worker.io.ContainerIOHandle.getExitCode(ContainerIOHandle.kt:101)\n\t\tat io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteSource.getExitValue(LocalContainerAirbyteSource.kt:82)\n\t\tat io.airbyte.container.orchestrator.worker.DestinationWriter.run(ReplicationTask.kt:102)\n\t\t... 9 more\n",
  "timestamp" : 1757581166707
} ]
k
A message from kapa.ai
Your Airbyte sync is failing with two key errors: 1. "Some streams either received an INCOMPLETE stream status, or did not receive a stream status at all..." This means that the destination (Snowflake) did not receive a complete or any status for the listed streams. This is often a symptom of a source-side error or a problem with how state is being managed or emitted during the sync. The error is classified as a "transient_error," which means it could be temporary, but if it persists, it needs attention. 2. "LEGACY states are deprecated." This is a critical error. Airbyte has deprecated the use of LEGACY state messages. The stacktrace shows:
Copy code
java.lang.IllegalArgumentException: LEGACY states are deprecated.
This means your source connector is emitting state in the old LEGACY format, which is no longer supported in recent Airbyte versions. The platform now expects state to be emitted in either the STREAM or GLOBAL format, as described in the [Airbyte Protocol documentation](https://docs.airbyte.com/platform/understanding-airbyte/airbyte-protocol#airbytestatemessage). What does this mean and what should you do? - Root Cause: Your source connector is emitting state in the LEGACY format, but Airbyte now requires state to be emitted in the STREAM or GLOBAL format. This is causing the sync to fail and the destination to report incomplete or missing stream statuses. - Resolution: - Update your source connector to emit state in the STREAM or GLOBAL format. The STREAM format is preferred unless you have a use case (like CDC) that requires GLOBAL state. - If you are using a custom or community connector, you may need to update its code to comply with the new protocol. See the [AirbyteStateMessage documentation](https://docs.airbyte.com/platform/understanding-airbyte/airbyte-protocol#airbytestatemessage) for the required structure. - If you are using an official connector, ensure you are on the latest version, as older versions may still emit LEGACY state. - Reference: > "LEGACY exists for backwards compatibility. In this state type, the state object is totally a black box. The only inference that can be drawn from the state object is that if it is null, then there is no state for the entire Source. All current legacy cases are being ported to stream or global. Once they are, it will be removed." [State Types – Airbyte Protocol](https://docs.airbyte.com/platform/understanding-airbyte/airbyte-protocol#state-types) Summary: Your sync is failing because the source is emitting deprecated LEGACY state messages. Update your connector to emit STREAM or GLOBAL state to resolve the issue. If you need guidance on the new state formats, refer to the [Airbyte Protocol documentation](https://docs.airbyte.com/platform/understanding-airbyte/airbyte-protocol#airbytestatemessage). If you need help updating a custom connector, let me know!