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
e
ergun aydemir
said
almost 4 years ago
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
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
e
ergun aydemir
said
almost 4 years ago
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
ergun aydemir
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
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstPranav J
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
ergun aydemir
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
-
Why do I get "Undefined symbols" errors when building with KinveyKit?
-
How do I register push tokens?
-
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
-
How can I assign additional properties to users?
-
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
-
Authorization Token Invalid or Expired
-
BOOL and how it is stored in the database.
-
Offline saving throwing errors
-
Custom endpoint not able to form request object
-
Security through business logic
See all 437 topics