Sync Errors with Mandatory attributes on Android

Hi,

Users have got the following type of errors concerning attributes that have been set as compulsory in the registration form in tracker, and is this happening with several the devices. The fields are correctly filled.

it is a headache because the error prevents users from syncing the data.

We are looking for possible solutions to this problem.

DHIS 2 version: 2.41.2

Android app version: 3.1.0.1

Thanks

Hi Maposse,

let’s try troubleshooting the problem

First make sure the device has the latest update from the server, please make sure to “Sync Configuration” on DHIS2 android setting.

Secondly make sure that the attribute ‘Fyw…’ id is have correct value , and make sure that there is a no program rule for the attribute.

please do this and let me know.

1 Like

hi @fernando
I once faced the same issue. The problem might stem from the way you defined your Tracked Entity Type. If you declared some Tracked Entity Type attributes when you created the Tracked Entity Type and then assigned that Tracked Entity Type to a program, all the attributes declared during the creation of the Tracked Entity Type must also be included as attributes in the program and configured accordingly.

For instance, if you created a Tracked Entity Type called ‘Person’ with an attribute ‘First Name’ as a mandatory field, then when you create a tracker program of type ‘Person,’ the ‘First Name’ attribute must also be included and set as mandatory.

In your case, please check the attribute “FywCaEpxIZ9” is available both in the tracked entity type attributes and in the program attributes as a mandatory field.

I hope this will solve the problem, please give feedback

2 Likes

Hi @arnold,

I will follow the steps you have described and give feedback. I just have a question: for mandatory attributes that are assigned only to the program, do we also have to assign them to the tracked entity?

Sorry for taking long to respond.

Thanks

Hi @fernando
You don’t have to assigned to Tracked Entity Type.

Hi @arnold , @vgarciabnz

We have situations in which errors resulting from sync on android devices (tablets/phones) can not be understood by users like in the image shared above

Users don’t know what the Ids mean. Is there a way to configure the android capture app so that in case of an attribute error or any another error, names are shown instead of Ids?

Thanks

Hi @dmbantu
I dont think its possible but I believe such errors are meant to be interpreted and understood by system admins.