Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-425

realms.Exceptions.RealmInvalidTransactionException:** 'Loading...

      First time it works but the second time it throws this error

      realms Exceptions RealmInvalidTransactionException

       App.realm.Write(() => {
            configButton.updatedAt = DateTimeOffset.Now;
            configButton.UsageCount -= 1;
      
            var auditlog = new AuditLog
            {
                userId = App.RealmApp.CurrentUser.Id,
                AppliedAt = DateTimeOffset.Now,
                Email = App.RealmApp.CurrentUser.Profile.Email,
                ButtonApplied = configButton,
                SiteLocation = new SiteLocation
                {
                    Altitude = location.Altitude,
                    Latitude = location.Latitude,
                    Longitude = location.Longitude
                }
            };
            id = auditlog.Id;
            App.realm.Add(auditlog); 
        });
      

            Assignee:
            ferdinando.papale@mongodb.com Ferdinando Papale
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: