Update wrong partition on Mongodb Realm Sync (Android)

Viewed 11

We are using Atlas device sync on our apps, with partition that each user can only access their own data.

Somehow my app has saved some wrong partitions for some users, but we can't lose all those data with wrong partitions.

When the app tries to sync the data, it gets an error:

UPDATE instruction had incorrect partition value for key "_partition" { expectedPartition: xxx, foundPartition: (ProtocolErrorCode=212)

But some partitions are correctly and already on server.

All those data are still in local, but we need to update the partition to send it to server. How can i update the partition on a local data and sync it to server?

enter image description here

0 Answers
Related