Capture app Synchronization Issue

Dear all,
I have an instance of DHIS2 running on version 2.35.1 and the android capture app is running on version 2.51 but the app is not syncing with the server and it is giving the error shown below:
Cause: Something unexpected went worng.

Exception: java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.ValueInstantiationException: Cannot construct instance of org.hisp.dhis.android.core.validation.AutoValue_ValidationRuleExpression$Builder, problem: Missing required properties: expression description
at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 20377] (through reference chain: org.hisp.dhis.android.core.arch.api.payload.internal.Payload[“validationRules”]->java.util.ArrayList[17]->org.hisp.dhis.android.core.validation.$$AutoValue_ValidationRule$Builder[“rightSide”])

Created: Wed Mar 16 10:05:40 GMT 2022

Error component: Server

StackTrace: org.hisp.dhis.android.core.maintenance.AutoValue_D2Error

From the log, I notice it has to do with a validation rule but already checked all of them they are OK. The one on the form itself is showing the error attached to


this comment

Hi @Gerald_Thomas,

it seems that there is a validationRule whose rightSide has an empty expression or description. You can run this query on your browser replacing your server url and verify if there is any validation rule with an empty expression or description in the rightSide.

https://<your_server_url>/api/validationRules.json?paging=false&fields=name,rightSide[expression,description]

Hope it helps

2 Likes

Thanks very much, Victor. This works for me

1 Like