Users are unable to sync data. There is no error showing. After clicking send, it shows syncing data, but it goes back to the same message below again and again, so nothing is pushed to the server. It happens with granular and full data sync. The users are stuck.
Hi @fernando ,
We also face this issue randomly. Rebooting of a device usually helps. If not, you may also try to clear all local data or reinstall the program. But be carefull! In this case you will loose all unsynced data.
Thanks for your help. What does reinstalling the program mean?
I will tell the users to reboot their devices. They have already entered much data that is unsynced due to the problem, so clearing the local data will make them lose data and reenter it again.
Press “+” and then Enter event. Then do nothing and press “back errow”. Choose “Discard any changes”. Try to sync. This algorythm replicates the error in 100% times for me.
We have tried all possibilities: reinstall Android app, clear local data, reboot the device and press+ to create event (do nothing and discard the changes), but the problem still continues.
Hi @fernando, I am sorry for the issues you are encountering, could you give us some more information on what kind of configuration you are using? is it a a tracker program with events? do you have any program rules enabled?
Also if you had a testing server in which we could replicate this.
This will help us replicate and troubleshoot the issue. It certainly should be showing a more relevant error message.
@fernando , @Xavi and others,
With the latest version 3.1.1.1 of the program, this issue occurs only if you follow these steps:
Create an event in the app.
Delete the event without syncing it.
Attempt to sync.
In this scenario, the app will become stuck, and further synchronization will not be possible.
Then the only way to solve the issue is to delete local data or reinstall the App. It is not very common scenario. But it is annoying for users
This time when we update a completed event and try to sync the changes, nothing happens. By clicking on send, it processes and stops, going back to the sync message box. it is a headache.
Thanks for bringing this up and for the detailed investigation!
We’ve been looking into the issue and believe we’ve identified a possible root cause. It seems that if a user creates and then deletes an event before it has ever been synced with the server—or discards changes on a newly created event—the sync status of the enrollment and the associated TEI does not update correctly. Instead of switching to “synced”, they remain in a “pending to sync” state.
When you later try to sync the TEI or enrollment, the system finds nothing to actually sync (since the event was deleted), and as a result, no sync is performed and the post-sync status update is not triggered. This causes the enrollment and TEI to appear stuck in a syncing loop.
We’re currently working on a fix for this behavior. You can follow the progress through this JIRA ticket that Victor shared: ANDROSDK-2067
The good news is that this seems to be a visual issue only—data should still sync correctly otherwise. However, if you believe this is causing actual data loss or sync failures, please let us know with as much detail as possible.
In the meantime, here’s a simple workaround you can try:
Go into the enrollment dashboard where the event was deleted.
Open any other event for this enrollment and change a value temporarily, then set it back to the original value (this will mark the event as “needing sync”).
Click “Sync TEI” or “Sync Enrollment” again.
This should force the sync process to trigger properly and update the status of the TEI and enrollment.
Hope this helps, and thanks again for your patience and collaboration!