Exception in update collection


We are doing data migration from SQL to MongoDB using java code. Data migration job failed in middle and through below exception. It would be great if anyone suggest me to resolve this issue.

MongoDB version : 4.2.3

       at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
2021-01-23 08:18:34,755 [ERROR] [c.e.e.c.d.CartStructureRepositoryImpl]  Exception in update cstics list CP-1204136 state should be: open
java.lang.IllegalStateException: state should be: open
        at com.mongodb.assertions.Assertions.isTrue(Assertions.java:70) ~[mongodb-driver-core-3.11.2.jar!/:?]
        at com.mongodb.internal.connection.BaseCluster.getDescription(BaseCluster.java:167) ~[mongodb-driver-core-3.11.2.jar!/:?]

Best Regards,
Satya Dommeti