09-11-2019 12:49 AM
we have an error message in our device log of mobile app.
Could not sync change. Retried 5 times. (Internal Server Error) AppShell.ShellException: Internal Server Error at AppShell.RestClient.Delete (System.String url) [0x00104] in <766bee195c2c44d0b8a0d10b6648049a>:0
What is meaning of id <766bee195c2c44d0b8a0d10b6648049a>?
Is this a table or an entry in a table?
Is there a possibility to get more details why there is a sync problem?
Thank you very much,
Solved! Go to Solution.
09-12-2019 03:10 AM
hmm, I searched in all tables belonging to app and compared all primary keys of tables with id,
but I didn't find id anywhere.
Is it possible that this id is only on local device (new entry) and entry wasn't synchronised yet due to sync problems?
09-12-2019 05:30 AM - edited 09-12-2019 05:31 AM
That's strange. What column have you set as GUID in your shell for this entity? Is it ID?
From the message it says 'Delete' action but you claim it is 'New Entry'. Are you adding or deleting feature previous to the sync?
Or perhaps elaborate on what action you take prior to the sync will be helpful.
Perhaps in this case it is referencing the session ID, but in my experience it was always GUID.
09-12-2019 05:35 AM
this id is part of the stacktrace and doesn't have any specific meaning.
The details of the internal server error should have been logged in the Studio log.
09-16-2019 01:01 AM
ok, in Studio log (security logs) we could see a conflict with foreign-key constraint, this caused sync problem probably.
But on local device we didn't see any entry which could has caused this constraint conflict.
So the only chance we had was to delete foreign-key constraint on database.
Then, synchronisation worked fine.
After syncing, we didn't see any conflict with foreign-key constraint on new synced data on database,
so we inserted constraint again, and it works.
So what could be reason for sync problem?
Is there a possibility to see which entry on local device causes conflict?
Do we have access to stored data on local device?
Thank you very much,