Issue with Data Display in Capture App "Missing value in options"

Hey Everyone,

I am encountering an issue with the Capture App related to a program that contains attributes with an option set. Here’s the problem:

Description of the Issue:
• When data is entered, it gets saved successfully.
• However, the data is not displayed in the list (despite “Display in List” being enabled).
• Additionally, the data does not appear in analytics after running the analytics process.

Error Logs:
Upon reviewing the browser logs, I noticed an error message stating:
“Missing value in options.”

Interestingly, all options in the option set appear to have the correct values mapped.

Steps Taken to Resolve:
• Verified the sharing settings.
• Checked the configuration of the option set, TEI, TEA and Program and its mapping.

Despite these efforts, the issue persists.

Environment Details:
• Version: 2.37.8
• Build revision: d9a77b2

Please find below a screenshot highlighting the issue for reference.

Has anyone experienced a similar issue or encountered this specific error? If so, any insights or guidance on resolving this would be greatly appreciated.

Thank you for your support!

Best regards,
Akash

@DHIS2-Community

1 Like

Hi @akashjindal

Welcome back to the community!

Would you please share the version of the Capture app you are using? You can find that in the App Management app.

Is there a chance that you could check the Network request that are being sent right at the time when you open “Drafted NAP_1”? Do the requests return anything?

Could you run this request to get more details about the object? /api/identifiableObjects/mJ0WzkQoZFq

Thanks!

Dear @Gassim,

Thank you for your reply.

I am using the default capture app with DHIS2 V2.37.8 hence I can’t see the capture app version in the App management, please find the screenshot below.

I cant even find the capture app in the DHIS2 App hub, although i am using the latest version of App management, please see the below screen shots:

Please find below the response from the suggested API call(/api/identifiableObjects/mJOWzkQoZFq):

Please also find below a screenshot of the network tab while opening the Draft NAP_1.

Looking forward to your response.

Many thanks
Akash Jindal

It’s not clear why you’re not seeing the app at all. I would recommend upgrading to one of the supported versions (at least 2.39.7).

The screenshot is missing other fields see below. I needed all the fields to look around if there’s an issue:

Yes, it doesn’t show any issue when sending the request. You’ll also need to check the OU and Program access settings for the user. One tip is to try to reproduce the whole thing on play, if you get the same issue then share the step by step so it’s easier to debug. Does this issue happen to all the programs in your system? Only this program? It’s good to investigate further as it’s not clear up to this point.

Thanks!

Hi @Gassim

Thank you for reviewing the issue.

At this point, we cannot upgrade the DHIS2 version, so we need to work with the current version for now. Nonetheless, I appreciate the suggestion.

Regarding your query on the API output, below is the output from the application for the endpoint (api/trackedEntityAttributes/mJOWzkQoZFq):

I’ve verified all user permissions, and everything appears to be in order. However, this issue persists specifically in this instance and any new program that i design now. Interestingly, I noticed that the same data is visible in the Tracker Capture app.

Regards
Akash