Bug #1557
closedFeature #140: Technical Support, Bug Fixing and Services
Version #1552: Version 1.7
Module #1553: Resolve issues reported from eHealth
Newly added records are not getting uploaded to Web , records getting deleted from the device after data sync
100%
Description
Username: 186134
Password: eHealth@123
Scenario
Load the PH application
Login to application using the above credentials
Select Asha block
Go to Main Menu >> Survey >> View and Edit >> View House Survey
Select one House from the list
Click and Select the Option 'View Family'
Click on Add New Family Option
Provide Family Name and Select Members and add to family.
Click Save
Go to House survey screen
Again Go to New Family create screen
Click on Add New Family Option
Alert will be prompted 'Grouping survey enabled only after data sync. Do you want to sync data'.
Click 'Yes'
Toast will be prompted 'Failed to connect to the Server'.
Issue Found
After the above scenario executed, when trying to upload any new record to web via 'Sync Data' option from Side Menu, alert will be shown like 'Success. All data are synced' but the newly added records will not be uploaded to web and the same will be deleted from the device (SQlite DB) also.
Please see the screen recording attached. Here newly added family ,house details and Member are not getting uploaded to web and the records are deleted from the device after data syncing.
Note:
The alert 'Failed to connect to the Server' will be shown in some other cases also. Please see Bug #7304 .
Updated by Thara S Pillai over 2 years ago
- Category set to Development-App
After each upload sync initiated from the app, the app side will show a list of records that failed to get synchronized in the server. The format of the sync failed record list is as follows:
• <HouseName>/ErrorCodeNo
• <HouseName>/MemberName/ErrorCodeNo (For Aadhaar duplication, custom message is shown instead of ErrorCodeNo)
• <HouseName >/<FamilyName>/ErrorCodeNo
• <HouseName>/<RationCardNo>/ErrorCodeNo
• <HouseName>/<RelationName>/ErrorCodeNo
• <HouseName>/MemberName>/ErrorCodeNo (For ECR)
• <HouseName>/ErrorCodeNo (HouseHistory)
• <HouseName>/MemberName/ErrorCodeNo (Member History)
• Device Logging Error/ErrorCodeNo (Device Log)
eHealth suggested sync failed record handling can be modified as per the following.
• A delete option to be provided for Aadhaar duplicated members in sync failed list. The app user can opt to delete the corresponding member data. The member data will be deleted only if the member is not part of any grouping or relation.
• Other sync failed records will be kept in device and will be selected for subsequent upload synch also.
• On ASHA Block switch, the data from current ASHA Block will be upload synched to server. If there are records still pending for data sync, the user will be alerted Some data pending for synchronization. An ASHA Block switch will delete all records pending synchronization. Do you want to proceed with ASHA Block switch?. If user selects to proceed with ASHA Block switch, all records including pending synchronization will get deleted from device. And data for the new ASHA Block will be downloaded.