My Oracle Support Banner

Oracle GoldenGate - Best Practices To Initial Load Data From MySQL To MongoDB -Bulk write exception caught : Bulk write operation error on server mongodb_node2 (Doc ID 2821314.1)

Last updated on JULY 20, 2024

Applies to:

Oracle GoldenGate Big Data and Application Adapters - Version 19.1.0.0.3 and later
Information in this document applies to any platform.

Goal


=> Duplicate error on the record


ERROR 2021-09-12 22:48:11.000418 [main] - Bulk write exception caught : Bulk write operation error on server mongodb_node2:27017. Write errors: [BulkWriteEr
ror{index=0, code=11000, message='E11000 duplicate key error collection: rep_sn_operation_tool.tbl_test index: _id_ dup key: { _id: "6631" }', details={}}].


=ERROR 2021-09-12 22:48:11.000419 [main] - Error flushing cached operations in bulk write
com.mongodb.MongoBulkWriteException: Bulk write operation error on server mongodb_node2:27017. Write errors: [BulkWriteError{index=0, code=11000, message='E1
1000 duplicate key error collection: rep_sn_operation_tool.tbl_test index: _id_ dup key: { _id: "6631" }', details={}}].
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.