Hi All,
At a bit of a loss at the moment. I am supporting a new server build for a new project, and we have pushed over a few programs to get them started. One of them we pushed over is for both Browser (Capture) and Mobile (DHIS2 Android) data capture.
For some reason, although I believe the user has adequate sharing and assignment settings, the user is unable to see any data elements at all in the android mobile side. On the browser (in Capture App), the same user can see data elements and all rules seem to be firing just fine.
I’m using 2.35.10, Android 2.4 & 2.5 (tried both, just to be sure). I’ve checked through User Groups and assignments to the program…but by the very nature of the program/data elements being able to be viewed and also having the event properly sync in capture with the same user…I’m just lacking proper understanding of where to look to try and get this fixed.
Any ideas?
Was able to run the data checker in the backend of the 2.4 training version of the android and this came up:
Build version: 2.4
Build date: 1981-01-01 01:01:02
Current date: 2021-12-30 10:07:09
Device: OnePlus BE2011
OS version: Android 11 (SDK 30)
Stack trace:
java.lang.IllegalArgumentException: Both content and data must not be null
at org.hisp.dhis.rules.models.RuleActionShowError.create(RuleActionShowError.java:21)
at org.hisp.dhis.rules.models.RuleActionShowError.create(RuleActionShowError.java:31)
at org.dhis2.Bindings.RuleExtensionsKt.toRuleEngineObject(RuleExtensions.kt:189)
at org.dhis2.Bindings.RuleExtensionsKt.toRuleActionList(RuleExtensions.kt:81)
at org.dhis2.usescases.development.DevelopmentActivity.lambda$loadProgramRuleCheck$0$DevelopmentActivity(DevelopmentActivity.java:60)
at org.dhis2.usescases.development.-$$Lambda$DevelopmentActivity$dTZ866hD-rbqb6N5D5BLesRd2b4.onClick(Unknown Source:2)
at android.view.View.performClick(View.java:7520)
at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:992)
at android.view.View.performClickInternal(View.java:7489)
at android.view.View.access$3600(View.java:826)
at android.view.View$PerformClick.run(View.java:28555)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:233)
at android.app.ActivityThread.main(ActivityThread.java:8063)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)