Using the .NET library with Realm-Atlas.
In the main, the sync is working brilliantly. But there is one collection that is giving me grief and not syncing. I have likely mucked something up but cannot figure out what I did wrong. Once I figure that out, I hope to be able to get it fixed…
I added an optional array of strings to a collection. The existing documents do not have that set, and that’s okay. I think.
My .NET client is subscribed to the collection and the documents that are in Atlas are coming down to my local Realm file as part of the initial sync.
I add string values to the array. Note that by default the .NET library will create an empty IList<string>
if the value in realm is null. That’s good.
Some of the documents get values added, other don’t.
Nothing syncs from Realm up to Atlas.
I thought it might be because none of the documents had any data in them. So I used Compass to set the value of all documents to an empty array. I deleted my local Realm file and started over. Exact same behavior. The writes are visible locally using Realm Studio, they are visible to my code… but modifications are NOT going back up.
Using Compass I look at my sync session database and there is nothing from that collection that is in the unsynced_documents store. I just learned about that today so I’m glad I found it… there are other errors that show up in there. That’s good to know.
There are NO exceptions being thrown when writing the data or syncing. There are NO error messages either locally or in any of the sync logs in Atlas.
This error is incredibly opaque and I’m very frustrated and need to get it solved.
Any pointers appreciated. Especially if you know of somewhere else that I can look for error messages.