Adeel Shakir
10/07/2025, 2:29 PMkapa.ai
10/07/2025, 2:29 PMCommand failed with error 10334 (BSONObjectTooLarge): 'BSONObj size: 19012632 (0x1221C18) is invalid. Size must be between 0 and 16793600(16MB) means that a document being processed by MongoDB exceeds the maximum allowed BSON document size of 16MB. This is a hard limit in MongoDB, and any attempt to insert or process a document larger than this will result in the error you are seeing. In the context of Airbyte: - Airbyte Cloud documentation confirms that the maximum size of a record in MongoDB is 16MB. Records larger than this will need to be modified. If a record cannot be stored due to this limit, Airbyte will attempt to adjust the record, but if it cannot, the sync may fail. Any modifications to the record will be stored within airbyte_meta.changes for your review within the destination. However, if the document is simply too large, the sync will fail with the error you are seeing. This is a MongoDB limitation, not specific to Airbyte, but Airbyte must respect it for successful syncs [Understand Airbyte Cloud limits](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/understand-airbyte-cloud-limits). What you can do: - Ensure that no single document in your source exceeds 16MB before syncing to MongoDB. - If you have control over the source data, consider splitting large documents into smaller ones. - If you are using Airbyte's typing and deduping features, Airbyte may attempt to trim the record, but this is not always possible for extremely large documents. If you need more details on how Airbyte handles large records or how to adjust your syncs, please refer to the Airbyte documentation or the MongoDB documentation for BSON size limits. If you need further troubleshooting steps, let me know the context (source, destination, connector version) and I can help you look for more specific guidance.Adeel Shakir
10/07/2025, 2:31 PMkapa.ai
10/07/2025, 2:31 PMkapa.ai
10/07/2025, 2:31 PMairbyte_meta.changes for your review within the destination. However, if the document cannot be trimmed to fit the limit, the sync will fail [Airbyte Cloud limits](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/understand-airbyte-cloud-limits). Summary: - You cannot increase the 16MB limit in MongoDB. - You must ensure your records are smaller than 16MB before syncing. - Airbyte will try to help, but cannot bypass this MongoDB restriction. If you need to process larger data, consider redesigning your data model to split large documents into multiple smaller ones before syncing to MongoDB.Adeel Shakir
10/07/2025, 2:32 PMkapa.ai
10/07/2025, 2:33 PMkapa.ai
10/07/2025, 2:33 PMAdeel Shakir
10/07/2025, 2:54 PMkapa.ai
10/07/2025, 2:54 PMkapa.ai
10/07/2025, 2:55 PMError, Exception, or Fail may help you locate more context around the error, though the logs may not always specify the table or collection name if the error is thrown at a lower level [Browsing logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs). If the logs do not provide the table name, you may need to: - Review your source data for large documents. - Check collections with known large or complex documents. - Consider adding additional logging or validation in your source system to flag oversized documents before syncing. Unfortunately, based on the current documentation, there is no built-in Airbyte feature that automatically identifies the problematic table or collection in this scenario.