Conflicts not allowed and there is already an existing doc with id

#1

Detail Error—

05-18 18:33:15.264 16543-16543/? W/System.err: com.couchbase.lite.CouchbaseLiteException: Conflicts not allowed and there is already an existing doc with id: 2233b1f2-68f5-4fb7-80fb-4260195481be
05-18 18:33:15.264 16543-16543/? W/System.err: at com.couchbase.lite.Database.putRevision(Database.java:3530)
05-18 18:33:15.264 16543-16543/? W/System.err: at com.couchbase.lite.Database.putRevision(Database.java:3465)
05-18 18:33:15.264 16543-16543/? W/System.err: at com.couchbase.lite.Document.putProperties(Document.java:415)
05-18 18:33:15.264 16543-16543/? W/System.err: at com.couchbase.lite.Document.putProperties(Document.java:250)
05-18 18:33:15.264 16543-16543/? W/System.err: at net.zoftech.b2ccom.db.BaseDocumentManager.updateDocument(BaseDocumentManager.java:75)
05-18 18:33:15.264 16543-16543/? W/System.err: at net.zoftech.b2ccom.activities.DetailMessageActivity.onClick(DetailMessageActivity.java:925)
05-18 18:33:15.264 16543-16543/? W/System.err: at android.view.View.performClick(View.java:5204)
05-18 18:33:15.264 16543-16543/? W/System.err: at android.view.View$PerformClick.run(View.java:21153)
05-18 18:33:15.264 16543-16543/? W/System.err: at android.os.Handler.handleCallback(Handler.java:739)
05-18 18:33:15.264 16543-16543/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
05-18 18:33:15.264 16543-16543/? W/System.err: at android.os.Looper.loop(Looper.java:148)
05-18 18:33:15.264 16543-16543/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5417)
05-18 18:33:15.264 16543-16543/? W/System.err: at java.lang.reflect.Method.invoke(Native Method)
05-18 18:33:15.264 16543-16543/? W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
05-18 18:33:15.264 16543-16543/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

#2

Hi @tbkangane90,
From log message , the saving document is conflicted. you need to re-store the document. Please refere following link?
http://developer.couchbase.com/documentation/mobile/current/develop/guides/couchbase-lite/native-api/document/index.html#updating
Thanks!

#3

Thanks…

If any query i will contact you.