Skip to content

Unique constraint failed error - 2067 with pouchdb-mapreduce- Android #107

@SuhailMehta

Description

@SuhailMehta

I am working on react-native project which uses sync so we decided to use couch-pouch. With pouchdb websql adapter i am using your your sqlite storage which is working fine for ios app but when we try to run the same app on android its was able to insert data from couch to sqlite storage but when we query the data it throws an error pointing Unique constraint failed for document-store.id (error - 2067).

With pouchdb-mapreduce i can see the _pouch_dbName-mrview db being created but it was empty.
So, before query the indexes insert must be done for a view but as db is empty i can't under why unique constraints are failing.

Can you suggest the a way to resolve it or i can add some more information to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions