error :Realms.Exceptions.RealmException: 'Cannot write to class UserRecord when no flexible sync subscription has been created

I am using the Realm.ToDo exmaple . I try to upload a new object that is called UserRecord . each time I try to upload UserRecord I get this error :
Realms.Exceptions.RealmException: ‘Cannot write to class UserRecord when no flexible sync subscription has been created.’

Hi @Tom_Pol,

I assume you’re referring to the .NET version of the typical version of the ToDo sample app.

The class UserRecord isn’t part of the app models, so you’ve likely added it yourself: if that’s the case, you also have to add UserRecord to your subscriptions (probably using the SetSubscriptions call), otherwise you won’t be able to operate on it, as you haven’t defined any access.

That, in a nutshell, is what the error is saying.