we are facing Data loss issue while Inserting From Server

To launch MongoDB on the server, we configure a Connection String with our host name and port. We are using Java to do an Insertion Operation in the database using that Connection String. Although we’ve successfully executed the identical configuration in our local setting which is running correctly ,but we’re unable to accomplish the same on the server where I’m having issues. Data loss issues indicate that only 15 or 16 of the 100 recorded were entered. Can someone then assist us in resolving this issue?