The knowledge sources indicate that the lookback window is a configuration parameter used in incremental syncs to re-fetch data from a specified period before the last sync, which helps capture updates to records that cannot be filtered by modification date. The value of the lookback window can be set in the connector configuration, and it is typically specified in days or as an ISO8601 duration (e.g., P1D for one day) depending on the connector implementation. However, there are reports (such as with the Amazon Ads connector) where the lookback window value in the state can become unexpectedly large (e.g., 513, 1900, or even 8022), and manual edits to the state (via the UI or API) do not persist, as the next sync overwrites the edited value. This suggests that, for some connectors, the lookback window in the state is managed internally by the connector logic and may not be directly controllable by editing the state alone. Instead, it is recommended to set the lookback window in the connector's configuration, if supported, rather than trying to edit the state directly. If the connector does not respect the configuration or continues to overwrite the value, this may be a bug or limitation in the connector implementation, as seen in the Amazon Ads connector issue. In such cases, a workaround is to adjust the start date or use automation to reset the state, but a proper fix would require changes to the connector code itself or a bugfix from the Airbyte team or community contributors [Amazon Ads connector incremental sync not working](
https://github.com/airbytehq/airbyte/issues/54649). In summary: - The lookback window should be set in the connector configuration. - Editing the state directly may not have the desired effect if the connector overwrites it. - If you are seeing unexpected values and cannot change them via configuration or state editing, it may be a connector-specific issue or bug. If you need to control the lookback window, ensure your connector's configuration exposes this parameter and that your connector logic respects it. If not, you may need to review or modify the connector code accordingly.