Iulian
09/12/2025, 6:58 AMkapa.ai
09/12/2025, 6:59 AMdate_scrap), ensure that: - The field exists in all documents. - The field's data type is consistent across all documents. - New records have a value for this field that is greater than the last synced value. If the field is not updated or is missing in new documents, Airbyte will not detect them as new for incremental syncs. This is a common issue, as described in a similar forum post where no new records were synced after the first run due to cursor field configuration issues. Review your cursor field setup and the data in your source collection to ensure it matches expectations [Forum Post: Mongodb incremental + append - no row after first sync](https://discuss.airbyte.io/t/1641). 2. Connector Limitations: The MongoDB v2 connector has some limitations: - Collections with different data types for the _id field among documents are not supported. - Empty collections are excluded from schema discovery. - If you are using incremental syncs, ensure that the oplog retention is sufficient and that the sync frequency is appropriate, but since you are not seeing errors, this is less likely to be the cause in your case [Connector Limitations](https://docs.airbyte.com/integrations/sources/mongodb-v2/mongodb-v2-troubleshooting#connector-limitations). 3. No New Data Matching the Cursor: If no new records have a cursor value greater than the last synced value, Airbyte will not sync any new records. Double-check that new documents are being inserted with the correct cursor field values. 4. Schema Discovery Issues: If the schema changes (e.g., new fields are added or removed), and schema enforcement is enabled, it could potentially cause issues with detecting new records, though this usually results in errors. What to check: - Verify the cursor field is present and correctly populated in all new documents. - Confirm that new documents have a cursor value greater than the last synced value. - Check the Airbyte connection settings for the correct cursor field and sync mode. - Review the connector and Airbyte logs for any warnings or info messages that might indicate skipped records or schema issues. If after these checks the issue persists and no errors are logged, you may want to review the Airbyte logs at a more detailed level or try a full refresh sync to see if new records are picked up. If you need more specific troubleshooting, please provide details about your cursor field configuration and examples of new documents that are not being synced.Iulian
09/12/2025, 7:02 AMIulian
09/12/2025, 7:02 AMkapa.ai
09/12/2025, 7:02 AMkapa.ai
09/12/2025, 7:03 AM_ab_cdc_cursor. Based on the knowledge sources, here are the key points to consider: - Incremental syncs rely on the cursor field: Airbyte will only sync records where the value of the cursor field is greater than (or, depending on mode, greater than or equal to) the last synced value. If new records do not have a _ab_cdc_cursor value greater than the last synced value, they will not be picked up in subsequent syncs. This is a common cause for seeing "0 records loaded" after the initial sync, even if new data exists in the source collection. This behavior is described in the documentation for incremental syncs and their known limitations [Incremental Sync - Append: Known Limitations](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations). - CDC and oplog retention: If you are using Change Data Capture (CDC) mode, the connector relies on MongoDB's oplog. If the oplog does not retain changes long enough between syncs, or if the saved offset becomes invalid, you may encounter issues. However, in your case, since there are no error logs, this is less likely the cause, but it's still important to ensure your oplog retention is sufficient for your sync frequency [MongoDB CDC Troubleshooting](https://github.com/airbytehq/airbyte/issues/48496). - No errors, but no new data: If there are no errors and no new records are synced, it strongly suggests that either: - No new records have a _ab_cdc_cursor value greater than the last synced value. - The connector is not detecting new changes due to how the cursor is being managed or populated. What else is needed to diagnose further: - Are new records being inserted into the source collection with a valid and increasing _ab_cdc_cursor value? - Is the _ab_cdc_cursor field being set automatically by the connector, or are you populating it yourself? - Can you provide an example of a new document (with the _ab_cdc_cursor field) that is not being synced? If the _ab_cdc_cursor is managed by Airbyte and you are using CDC, you should not need to set it manually. If you are setting it yourself, ensure its value is always increasing for new records. If you can share a sample of a new document and confirm how the _ab_cdc_cursor is being set, it would help narrow down the issue. Otherwise, based on the knowledge sources, the most likely cause is that the new records do not have a cursor value greater than the last synced value, so they are not being picked up in incremental syncs.Iulian
09/12/2025, 7:06 AMkapa.ai
09/12/2025, 7:06 AMkapa.ai
09/12/2025, 7:06 AM_ab_cdc_cursor) used for incremental syncs in Airbyte is not stored in your source documents. Instead, Airbyte maintains the cursor state internally. Specifically, Airbyte persists this state—including the most recent cursor value—in its own internal Postgres database. This allows Airbyte to keep track of which records have already been synced, even if the worker or pod is restarted. You can view this state by connecting to the Airbyte Postgres database and querying the state table. For example: sql SELECT * FROM state; This table contains the cursor values and other state information for each connection. The cursor is used by Airbyte to determine which records to sync next, but it is not written back to your source data in MongoDB. This mechanism is described in the Airbyte documentation and tutorials: > Airbyte persists this state ([StatePersistence.java](https://github.com/airbytehq/)) to an internal Postgres database. > The contents of the state database can be viewed with the following command: > SELECT * FROM state; > [Explore Airbyte’s incremental data synchronization](https://airbyte.com/tutorials/incremental-data-synchronization#step-2) So, the cursor is managed and stored by Airbyte itself, not in your MongoDB documents.Iulian
09/12/2025, 7:35 AMkapa.ai
09/12/2025, 7:35 AMkapa.ai
09/12/2025, 7:36 AMIulian
09/12/2025, 7:51 AMkapa.ai
09/12/2025, 7:51 AMkapa.ai
09/12/2025, 7:52 AMIulian
09/12/2025, 8:08 AMkapa.ai
09/12/2025, 8:08 AMkapa.ai
09/12/2025, 8:08 AMstate table to be GLOBAL for some connectors. This is because, in CDC scenarios (such as log-based replication), the state often needs to track a global position in the database log (like an oplog or WAL position) that applies across multiple streams or collections. The Airbyte protocol specifically notes that the GLOBAL state type is used when there is shared state across streams, which is typical for CDC implementations: > The GLOBAL case allows the author of a Source to share state across streams (shared_state). This message should only be used in cases where there is a shared state across streams (e.g. CDC where the WAL log number is a global cursor), otherwise prefer STREAM [Airbyte Protocol: State Types](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol#state-types). So, seeing GLOBAL as the state type in your state table is normal and expected when CDC is enabled.Iulian
09/12/2025, 9:02 AMkapa.ai
09/12/2025, 9:03 AMkapa.ai
09/12/2025, 9:03 AMTanuj Shriyan
09/15/2025, 12:09 PMIulian
09/15/2025, 12:24 PMIulian
09/15/2025, 12:25 PMTanuj Shriyan
09/15/2025, 12:36 PMIulian
09/16/2025, 7:15 AM