<@U04S8PLJWMT> I have klaviyo source configured an...
# ask-ai
e
@kapa.ai I have klaviyo source configured and it was working fine but on 2025-10-21 I received a single event with a datetime of 2025-11-20 and because of it my events_detailed stream is no longer being updated. I tried deleting that row from BigQuery but it seems that airbyte saves this max value somewhere internally. Is there a way to adjust it? Airbyte is deployed on EKS
k
Yes, Airbyte saves the maximum cursor value (in your case, the max
datetime
from the Klaviyo events) in its internal state database, not in your destination (BigQuery). Deleting the problematic row from BigQuery will not reset Airbyte’s internal state, so incremental syncs will continue from the highest
datetime
value seen, which is why your
events_detailed
stream is no longer updating. To resolve this, you need to reset the sync state for your connection. This will allow Airbyte to forget the previously saved cursor and re-fetch data from the beginning or from your configured start date. You can do this via the Airbyte UI: 1. Go to your Klaviyo connection in the Airbyte UI. 2. Click on the “Actions” menu (three dots) for the connection. 3. Select “Reset connection.” 4. Confirm the reset. This will clear the saved state, and the next sync will start fresh, allowing you to re-ingest events as needed. If you want to set a specific starting point (e.g., just before the problematic event), you may need to adjust the stream’s start date in the connection settings after the reset. If you want to inspect or manually edit the state, you can access the Airbyte internal Postgres database (assuming you’re using the default setup) and query the
state
table. For example:
Copy code
bash docker exec -ti airbyte-db psql -U docker -d airbyte SELECT * FROM state;
However, direct manual editing is not officially documented or recommended for most users. The reset via the UI is the safest approach. For EKS deployments, you may need to port-forward to the Airbyte database pod if you want to access it directly, but again, use caution with manual changes. For more details on how Airbyte persists and manages state, see the documentation: [How and where are cursors persisted](https://airbyte.com/tutorials/incremental-data-synchronization#step-2). Summary: Reset your Airbyte connection to clear the internal cursor and resume incremental syncs. Deleting rows from BigQuery alone will not affect Airbyte’s internal state tracking. If you continue to have issues with future-dated events blocking syncs, consider implementing a data validation step or filtering out such events upstream, as this is a known challenge with incremental syncs based on cursor fields that can jump far into the future.
e
can I adjust the value directly in Airbytes database? @kapa.ai
k
A message from kapa.ai
Yes, you can adjust the cursor value directly in Airbyte's internal database. Airbyte stores the state (including the cursor value) in its internal Postgres database, specifically in the
state
table. Users have reported successfully updating the cursor by executing an SQL
UPDATE
statement on this table. Here is an example of how to do it (you will need to adapt the query to your specific connection and cursor value):
Copy code
sql UPDATE state  SET state = jsonb_set(state, '{state, streams, 0, cursor}', '"2025-10-20T00:00:00.000000Z"', false)  WHERE connection_id = 'YOUR_CONNECTION_ID';
Important notes: - You must use the correct
connection_id
for your Klaviyo connection. - The cursor value format (e.g., timestamp precision) must match what Airbyte expects, or your syncs may fail [Update the cursor manually breaks my connection](https://discuss.airbyte.io/t/393). - Directly editing the database should be done with caution, as improper changes can break your syncs or require a full resync to recover [Manually defined cursor](https://discuss.airbyte.io/t/828). For more details and examples, see these community discussions: - [Manually defined cursor](https://discuss.airbyte.io/t/828) - [Update the cursor manually breaks my connection](https://discuss.airbyte.io/t/393) - [How to sync 300Gb, or set cursor value?](https://discuss.airbyte.io/t/3733) Recommendation: Always back up your database before making manual changes, and consider using the Airbyte UI to reset or edit state if available, as this is safer and less error-prone.