Ievgeniia PRYTULA
11/05/2025, 3:08 PMSaved offset is not valid. Please reset the connection, and then increase oplog retention and/or increase sync frequency.I can’t simply reset the connection, since some of the streams are incremental - resetting would cause significant data loss and would be very difficult to recover. Do you have any advice on how to restart this connection without wiping the existing data?
kapa.ai
11/05/2025, 3:08 PMjson "shared_state": { "state": { "[\"prod\",{\"server_id\":\"prod\"}]": "<old_stale_resume_token>", "[<mongo_url>]": "<new_resume_token>" }, "schema_enforced": false } Replace <old_stale_resume_token> with <new_resume_token> if the latter is up-to-date and valid. Users have reported that this allows the sync to proceed without a full reset, but it is not guaranteed and may only be a temporary fix. Also, this workaround may not be applicable in all cases, especially if both tokens are stale or missing. You should back up your state before making any manual changes. [See user reports and discussion](https://github.com/airbytehq/airbyte/issues/46569) Other suggestions from the knowledge sources: - Ensure your MongoDB user has read permission on the local database so Airbyte can correctly read oplog stats. This can help prevent the issue in the future, but does not resolve a currently invalid offset. - Increase your oplog retention and/or sync frequency to reduce the chance of the offset being lost in the future. - If you are using a version of the MongoDB connector prior to 2.0.4, consider upgrading, as there have been fixes related to state handling and resume tokens in newer versions. However, some users still report issues even on 2.0.4, so this is not a guaranteed fix for your current state. Summary: There is no officially supported way to recover from this error without resetting the connection. The only known workaround is to manually update the state with a valid resume token, but this is risky and not guaranteed. If you cannot risk data loss, you may want to reach out to Airbyte support directly for further assistance or wait for a connector update that addresses this issue more robustly. For more details and user experiences, see the related discussions: - [Incremental syncs giving errors - Saved offset is not valid](https://github.com/airbytehq/airbyte/issues/46569) - [Incremental sync error on specific collection - Saved offset is not valid](https://github.com/airbytehq/airbyte/issues/48496) If you need step-by-step guidance on manually editing the state, let me know, but please be aware of the risks involved.Ievgeniia PRYTULA
11/05/2025, 3:12 PMkapa.ai
11/05/2025, 3:14 PMkapa.ai
11/05/2025, 3:15 PMjson "shared_state": { "state": { "[\"prod\",{\"server_id\":\"prod\"}]": "<old_stale_resume_token>", "[<mongo_url>]": "<new_resume_token>" }, "schema_enforced": false } - Replace <old_stale_resume_token> with <new_resume_token>, so both keys have the same, valid resume token. #### 4. Save Your Changes - Click Update state to confirm your changes. - If you change your mind, click Revert changes to discard. #### 5. Confirm and Test - Confirm the changes to the connection state update. - Try running your sync again to see if the issue is resolved. --- Important Notes: - This workaround is based on user experiences and is not officially documented as a supported solution by Airbyte. It may only be a temporary fix and does not guarantee long-term stability. - Always back up your current state before making any manual changes. - If both tokens are stale or missing, this workaround will not help. - If you are unsure, consider reaching out to Airbyte support for further guidance. References: - [Official documentation on editing connection state](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/manage-connection-state) - [User workaround and discussion](https://github.com/airbytehq/airbyte/issues/46569) --- If you need more specific help with the JSON structure or have trouble finding the right resume token, let me know!