I’m looking for a way to move objects from one realm into another. I’ve been trying to do this by modifying their partition values accordingly (for me, that’s ownerId, which I’m changing from
newUser.id). At this point I’ve tried every possible variation of this that I could think of: doing a
.create with the object and deleting the old one, migrating them all to a local realm and then back to the other synced realm, just changing the ownerId and praying that would do something.
I’ve gotten so many different errors with everything I’ve tried, the most common being
Ending session with error: failed to validate upload changesets: SET instruction had incorrect partition value for key "ownerId" (ProtocolErrorCode=212)
as well as
MongoDB error: E11000 duplicate key error (even after generating new
integrating changesets failed: error creating new integration attempt: error doing preliminary merge for integration attempt: error finding merge window: error finding reciprocal history version range: connection(cluster0-shard-00-01-ltqcv.mongodb.net:27017[-11247596]) failed to write: context canceled (ProtocolErrorCode=101)
I’ve also gotten a ton of native iOS errors (I’m using React Native) intermittently when logging out users, logging in users on different devices, and just occasionally when logging in. (the most recent was in
table.hpp line 249:
Would love some direction on how to move forward on this.