<@U04S8PLJWMT> what does this error mean? And how ...
# ask-ai
p
@kapa.ai what does this error mean? And how can I fix it? Failure in source: input state unexpectedly of type GLOBAL
k
It means your source connector received a state message in GLOBAL format, but it doesn’t support (or wasn’t expecting) GLOBAL state. In Airbyte, state messages can be LEGACY, STREAM, or GLOBAL. GLOBAL wraps shared_state plus per-stream stream_states and should be used only when there’s shared state across streams; otherwise STREAM is preferred. If a source expects STREAM but is given GLOBAL, it will fail like this (see Airbyte protocol: state types and AirbyteStateMessage) ([State types](https://docs.airbyte.com/platform/understanding-airbyte/airbyte-protocol#state-types), [AirbyteStateMessage](https://docs.airbyte.com/platform/1.7/understanding-airbyte/airbyte-protocol#airbytestatemessage)). How to fix: - Reset or clear the connection state so the next run starts without the incompatible GLOBAL state (then let the source emit its own state in the expected format) ([State types](https://docs.airbyte.com/platform/understanding-airbyte/airbyte-protocol#state-types)). - Ensure your source emits STREAM state (preferred) with state_type set to STREAM and a stream_descriptor per state message; do not emit GLOBAL unless your source truly uses shared state (e.g., CDC) ([AirbyteStateMessage](https://docs.airbyte.com/platform/1.7/understanding-airbyte/airbyte-protocol#airbytestatemessage)). - If you built a custom connector, verify you’re serializing state correctly (e.g., correct fields and types). Incorrectly shaped or legacy/Global state can trigger these errors; resetting bad state resolved similar issues for others ([Forum post resolution](https://discuss.airbyte.io/t/2001)).