You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Old fastSync restore fails with association error, for a subject that was part of a subject migration.
Related to Freshdesk ticket
To Reproduce
Steps to reproduce the behavior:
Ensure that you backup latest fast-sync file on s3, rename "MobileDbBackup-a603e38d-9945-4f9d-a40e-8692bb2b1449" to "MobileDbBackup-a603e38d-9945-4f9d-a40e-8692bb2b1449_TO_BE_REPLACED"
Rename "MobileDbBackup-a603e38d-9945-4f9d-a40e-8692bb2b1449_BKP_01_nov_2023" to "MobileDbBackup-a603e38d-9945-4f9d-a40e-8692bb2b1449"
Login as "pattavayal" user "Ashwini" org
Due to use of old fast-sync, sync fails with association error
The values specified for ProgramEncounter and ProgramEnrolment in the error are all valid and linked to each other correctly
Rename "MobileDbBackup-a603e38d-9945-4f9d-a40e-8692bb2b1449" to "MobileDbBackup-a603e38d-9945-4f9d-a40e-8692bb2b1449_BKP_01_nov_2023"
Restore latest fast sync back by renaming "MobileDbBackup-a603e38d-9945-4f9d-a40e-8692bb2b1449_TO_BE_REPLACED" to "MobileDbBackup-a603e38d-9945-4f9d-a40e-8692bb2b1449"
##Additional info
The Individual related the the errored ProgramEnrolment was part of a subjectMigration.
select * from subject_migration where individual_id = 29202;
-- "23362","eca86b41-046a-444b-87c6-58cf6ebf3bd1","29202","367","173","10","5967166","false","0","2328","2328","2022-07-28 04:33:11.788 +00:00","2022-07-28 04:33:11.788 +00:00",,,,,"141",
/* Related SQLs*/
select * from encounter where individual_id = 29202;
select * from individual where id = 29202;
select * from program_encounter where uuid = '64f62f54-8361-45c2-a1de-3773a8a28c07'; /*enro = 151205*/
-- select * from encounter where uuid = '1033bfbc-f3c7-4a15-8d71-4e0ed66550d6';
select * from program_enrolment where uuid like '030820db-5e14%'; /*151205 = '030820db-5e14-42ea-ae60-c3194c8aae42'*/
Expected behavior
Sync should complete successfully even with old fastSync file
Smartphone (please complete the following information):
Version: 5.0.4
Developer Checklist
Developer fixing the bug should fill this checklist.
Does the fix require extensive regression testing?
Are you mentioning the required scenarios that could be affected?
The text was updated successfully, but these errors were encountered:
Describe the bug
Old fastSync restore fails with association error, for a subject that was part of a subject migration.
Related to Freshdesk ticket
To Reproduce
Steps to reproduce the behavior:
##Additional info
The Individual related the the errored ProgramEnrolment was part of a subjectMigration.
Expected behavior
Sync should complete successfully even with old fastSync file
Smartphone (please complete the following information):
Developer Checklist
Developer fixing the bug should fill this checklist.
The text was updated successfully, but these errors were encountered: