-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
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); });