Start a new topic
Answered

RLMException

I get following error during sync operation: *** Terminating app due to uncaught exception 'RLMException', reason: 'Object has been deleted or invalidated.' Here is the test case: 1) Have a datastore (.sync) 2) create a record and save it 3) Disconnect internet connection 4) create another record and save it. (successful) 5) restore internet connection 5) quit application and run it again 6) make a sync call 7) get the error. I can provide more details. Please help.

Best Answer

Hi Pranav,


I found a workaround like following which works when connection is up and fails when connection is down. (But it does not generate the error). 


1) Make a pull on a datastore (.sync)

2) create a record and save it (.network)

3) if fails because of connection, try later to save it


Best Regards


Ergun,

Before quitting the application if you do a sync() does it make a difference? Also does calling push() (which should save data from local to remote) make any difference?

Thanks,
Pranav
Kinvey
Answer

Hi Pranav,


I found a workaround like following which works when connection is up and fails when connection is down. (But it does not generate the error). 


1) Make a pull on a datastore (.sync)

2) create a record and save it (.network)

3) if fails because of connection, try later to save it


Best Regards

Login or Signup to post a comment