Forcing the download of cases from the server
Posted: July 1st, 2021, 6:20 pm
The scenario is the following:
1. The enumerator executed some interviews, but did not finish all of them, they were pending from one reason or other.
2. The enumerator uploaded the interviews to the server.
3. The DMC crashed for some reason, the enumerator took another DMC and started to work in the same sector. The problem is that to start the work, the system creates the cases from a cadaster (this is not an statistical survey, it is more like a control survey), and these "new" cases start blank, with all the answers notappl.
4. Now we need to download back to the DMC the cases that were stored in the server, but tow problems will (might) arise:
4.1 the new cases that we want to be overwritten by the ones in the server are newer than the ones in the server, so the syncdata(GET) might not bring back the cases from the server.
4.2 as we are talking about different DMCs, although the case ID is exactly the same, the syncdata(GET) might create duplicates in the DMC.
So, the question is:
How can we enforce the download to overwrite the cases in the DMC, even if the have different dates and UUIDs?
Or, do you have another approach to solve this problem?
1. The enumerator executed some interviews, but did not finish all of them, they were pending from one reason or other.
2. The enumerator uploaded the interviews to the server.
3. The DMC crashed for some reason, the enumerator took another DMC and started to work in the same sector. The problem is that to start the work, the system creates the cases from a cadaster (this is not an statistical survey, it is more like a control survey), and these "new" cases start blank, with all the answers notappl.
4. Now we need to download back to the DMC the cases that were stored in the server, but tow problems will (might) arise:
4.1 the new cases that we want to be overwritten by the ones in the server are newer than the ones in the server, so the syncdata(GET) might not bring back the cases from the server.
4.2 as we are talking about different DMCs, although the case ID is exactly the same, the syncdata(GET) might create duplicates in the DMC.
So, the question is:
How can we enforce the download to overwrite the cases in the DMC, even if the have different dates and UUIDs?
Or, do you have another approach to solve this problem?