Data Entry (beta) app produces an error (isDefault), whereas the normal Data Entry app works fine

Hi there,
I am working to implement a test DHIS data entry system to replace our expensive Power Apps based solution here in Eswatini.

Everything seems to work well for our proof-of-concept system and I am migrating some data entry forms over from Power Apps. Unfortunately though I am unable to test some features of the Data Entry (beta) app in DHIS2. When I select the data set in the beta app, it crashes with the following error:

An error occurred in the DHIS2 application.

The following information may be requested by technical support.

TypeError: Cannot read properties of undefined (reading 'isDefault')
TypeError: Cannot read properties of undefined (reading 'isDefault')
    at http://192.168.1.186/dhis-web-aggregate-data-entry/static/js/app.d54b1492.chunk.js:1:13140
    at Object.ba [as useMemo] (http://192.168.1.186/dhis-web-aggregate-data-entry/static/js/main.e0c04552.js:2:284553)
    at t.useMemo (http://192.168.1.186/dhis-web-aggregate-data-entry/static/js/main.e0c04552.js:2:389061)
    at Te (http://192.168.1.186/dhis-web-aggregate-data-entry/static/js/app.d54b1492.chunk.js:1:13010)
    at Me (http://192.168.1.186/dhis-web-aggregate-data-entry/static/js/app.d54b1492.chunk.js:1:13563)
    at Fe (http://192.168.1.186/dhis-web-aggregate-data-entry/static/js/app.d54b1492.chunk.js:1:14326)
    at _a (http://192.168.1.186/dhis-web-aggregate-data-entry/static/js/app.d54b1492.chunk.js:1:314530)
    at Ic (http://192.168.1.186/dhis-web-aggregate-data-entry/static/js/app.d54b1492.chunk.js:1:429490)
    at ea (http://192.168.1.186/dhis-web-aggregate-data-entry/static/js/main.e0c04552.js:2:280887)
    at Va (http://192.168.1.186/dhis-web-aggregate-data-entry/static/js/main.e0c04552.js:2:289777)
    in Ic
    in div
    in div
    in Pc
    in Uc
    in Gc
    in div
    in v
    in So
    in ka
    in T
    in t
    in L
    in t
    in t
    in l
    in f
    in Qc
    in im
    in nm
    in Suspense
    in Cr
    in div
    in div
    in Nr
    in Pe
    in we
    in Oe
    in ke
    in Ne
    in f
    in te
    in pe
    in X
    in DHIS2RuntimeProvider
    in zr
    in Dr
    in lr
    in Cr
    in Fr
    in qr

DHIS2 Data Entry Beta Error

I have attached a quick GIF as well showing the issue, which I hope will be helpful. Clearly the error is telling me that something should be set as “Default” and the beta app can’t read it. But what? The Org Unit? Default values in the data set? I am not sure.

And yes, I definitely cleared the browser cache while testing.

1 Like

Hi @pmacmillan: sorry for the problems you’re having with the app. Thanks for letting us know.

It seems like the metadata response might be missing some information.

Could you check the response back from [YOUR_SERVER_HERE]/api/42/dataEntry/metadata

and check two things:

  • under dataSets, does the dataSet you are having problems with have a categoryCombo
  • if yes, does the categoryCombos include the categoryCombo for that data set?

Let us know if the instructions above are not clear.

(Note: this is where I assume the error is coming from given when it occurs: aggregate-data-entry-app/src/shared/use-api-attribute-params.js at master · dhis2/aggregate-data-entry-app · GitHub)

1 Like

Hi Thomas,

first off, thanks for the quick response and, yes, that does appear to be my huckleberry, as the API is showing a categoryCombo that does not exist

            "code": "PMTCT_PNC_DS",
            "name": "PMTCT - PNC Cascade",
            "created": "2024-05-27T11:39:20.534",
            "lastUpdated": "2024-05-27T11:42:45.698",
            "externalAccess": false,
            "publicAccess": "rw------",
            "shortName": "PMTCT - PNC Cascade",
            "dimensionItemType": "REPORTING_RATE",
            "periodType": "Quarterly",
            "dataInputPeriods": [],
            "indicators": [],
            "compulsoryDataElementOperands": [],
            "sections": [
                {
                    "code": "PMTCT_PNC_DS_SECT",
                    "name": "PMTCT - PNC Cascade",
                    "created": "2024-05-27T11:40:51.166",
                    "lastUpdated": "2024-05-27T11:40:51.166",
                    "externalAccess": false,
                    "dataElements": [
                        "DRQBWoBfMs4"
                    ],
                    "indicators": [],
                    "greyedFields": [],
                    "sortOrder": 1,
                    "showRowTotals": false,
                    "showColumnTotals": false,
                    "disableDataElementAutoGroup": true,
                    "displayName": "PMTCT - PNC Cascade",
                    "favorite": false,
                    "id": "OgG4GaPurAN"
                },
                {
                    "code": "PMTCT_PNC_DS_STATUS_C",
                    "name": "PMTCT - PNC Status Cascade",
                    "created": "2024-05-27T11:41:57.180",
                    "lastUpdated": "2024-05-27T11:41:57.180",
                    "externalAccess": false,
                    "dataElements": [
                        "tdi8IDeb0FW",
                        "wgdk6GUEKeN",
                        "D7P4UII2T8b",
                        "FhwXRXcZqI8",
                        "BJn6s9iZAwM"
                    ],
                    "indicators": [],
                    "greyedFields": [],
                    "sortOrder": 2,
                    "showRowTotals": false,
                    "showColumnTotals": false,
                    "disableDataElementAutoGroup": true,
                    "displayName": "PMTCT - PNC Status Cascade",
                    "favorite": false,
                    "id": "zORlpsNoxSE"
                }
            ],
            "categoryCombo": {
                "id": "bjDvmb4bfuf"
            },
            "mobile": false,
            "version": 3,
            "expiryDays": 0,
            "timelyDays": 15,
            "notifyCompletingUser": false,
            "openFuturePeriods": 0,
            "openPeriodsAfterCoEndDate": 0,
            "fieldCombinationRequired": false,
            "validCompleteOnly": false,
            "noValueRequiresComment": false,
            "skipOffline": false,
            "dataElementDecoration": true,
            "renderAsTabs": false,
            "renderHorizontally": false,
            "compulsoryFieldsCompleteOnly": false,
            "formType": "SECTION",
            "displayName": "PMTCT - PNC Cascade",
            "favorite": false,
            "dimensionItem": "C0NmJVqJxPe",
            "displayShortName": "PMTCT - PNC Cascade",
            "displayFormName": "PMTCT - PNC Cascade",
            "id": "C0NmJVqJxPe",
            "dataSetElements": [
                {
                    "dataElement": {
                        "id": "D7P4UII2T8b"
                    }
                },
                {
                    "dataElement": {
                        "id": "DRQBWoBfMs4"
                    }
                },
                {
                    "dataElement": {
                        "id": "tdi8IDeb0FW"
                    }
                },
                {
                    "dataElement": {
                        "id": "BJn6s9iZAwM"
                    }
                },
                {
                    "dataElement": {
                        "id": "FhwXRXcZqI8"
                    }
                },
                {
                    "dataElement": {
                        "id": "wgdk6GUEKeN"
                    }
                }
            ],
            "organisationUnits": [
                "fO1bOVBarF2",
                "haOzq9zR5sl",
                "eKVCwwF01nd"
            ]
        },

The Category Combo: bjDvmb4bfuf does not exist as far as I can tell from the web UI under details and searching the metadata API here.

I am following the Youtube videos and docs to try and get this set up, but I can’t find any meaningful info on what a Category Combo does for a Data Set.

Metadata - DHIS2 Documentation

The docs just say, I can pick one if I want and the video says refer to the docs.

Further confusing is that I cannot actually pick one when I edit or create a dataset. “None” is my only option. I can create a new one, but then when I go to edit the Data Set again, I still cannot select one from the dropdown. Only “None” is an option.

DHIS2 CatCombo Issue

I reckon I can edit the table for this Data Set directly? I have access through PGadmin 4.

Okay. Yes. You do not need to assign a category combo to a data set in the UI, but assigning nothing in the UI is the equivalent, in the database, of assigning the default category combo.

In most systems, the default category Combo is bjDvmb4bfuf. Is your system an older configuration that has been migrated?

You should be able to check what the defaults are in your system by look at this api call:
[YOUR_SERVER_HERE]api/categoryCombos?paging=false&fields=id,name,isDefault,categories[id,name,isDefault,categoryOptions[id,name,isDefault]],categoryOptionCombos[id,name,isDefault]&filter=isDefault:eq:true

It’s probably better to clean up the default category combo here, rather than to spot fix in the database, but that might depend on what is already in your system.

Hi Thomas,

yeah that is my default combo category, bjDvmb4bfuf. I mentioned it in the post above as well. I just couldn’t see it in the UI, but it is in the DB and the API calls:. Here is the output from the API you sent:

{
    "categoryCombos": [
        {
            "name": "default",
            "categories": [
                {
                    "name": "default",
                    "categoryOptions": [
                        {
                            "name": "default",
                            "id": "xYerKDKCefk",
                            "isDefault": true
                        }
                    ],
                    "id": "GLevLNI9wkl"
                }
            ],
            "id": "bjDvmb4bfuf",
            "categoryOptionCombos": [
                {
                    "name": "default",
                    "id": "HllvX50cXC0"
                }
            ],
            "isDefault": true
        }
    ]
}

It’s probably better to clean up the default category combo here, rather than to spot fix in the database, but that might depend on what is already in your system.

I’m not sure what you mean here though. How can I clean the problem up?

I should add that I am using version DHIS 2.40.3.1, as I have only started this DHIS proof of concept project in the last 3 weeks. So I don’t have much to lose if I need to break things. Only 20 or so data elements and 3 datasets for basic testing.

That being said, the install docs were a bit outdated and after trying to get DHIS running on Ubuntu 18.04.6 and PostgreSQL 12, I got frustrated with the fact that PostgreSQL 12 has been retired for older versions of Ubuntu and I went with Ubuntu Server 24.04 and PostgreSQL 14 for my backend. That might be a factor here…

Hi @pmacmillan : Great. That response from the api looks like your default category combo is configured properly. Can you confirm the category combo does not appear in the api response under categoryCombos from [YOUR_SERVER_HERE]/api/42/dataEntry/metadata? (You could also just share the full response if that’s easier). If the categoryCombo is missing from the endpoint, we need to look check the code for that api response and see if there’s a reason it would not include the default categoryCombo.

Other questions

It’s probably better to clean up the default category combo here, rather than to spot fix in the database, but that might depend on what is already in your system.

I’m not sure what you mean here though. How can I clean the problem up?

Certain legacy instances have had problems where more than one default category combo exists. This does not seem to be relevant in your case, so there should not be anything to clean up.

That being said, the install docs were a bit outdated and after trying to get DHIS running on Ubuntu 18.04.6 and PostgreSQL 12, I got frustrated with the fact that PostgreSQL 12 has been retired for older versions of Ubuntu and I went with Ubuntu Server 24.04 and PostgreSQL 14 for my backend.

If you have any specific suggestions for improvement, please feel free to share. We welcome feedback and acknowledge that our documentation could be better. That said, I don’t think that the issue you’re facing would be a result of the PostrgreSQL version you’re using.

Just a quick comment here. It’s always not recommended at all to make direct changes to the DB as this could break it and some of the issues might only appear later during updates/upgrades (unless directed by an expert or know exactly what one is doing.)


Since you’re just starting, I recommend to check out the play.dhis2.org instances as well when facing similar issues and see if they’re reproducible there too.

Finally, welcome to the community! Glad to see this as a place where you chose to start your DHIS2 experience. :clap: :slight_smile:

1 Like

Hi Thomas,

yes the default combo category appears in this API call under all three data sets that I have created.

        "categoryCombo": {
            "id": "bjDvmb4bfuf"
        },

Here is an example output for the PMTCT - Maternity Cascade data set:

 "dataSets": [
        {
            "code": "PMTCT_MC_DS",
            "name": "PMTCT - Maternity Cascade",
            "created": "2024-05-23T11:44:11.102",
            "lastUpdated": "2024-05-27T11:42:36.794",
            "externalAccess": false,
            "publicAccess": "rwrw----",
            "shortName": "PMTCT - Maternity Cascade",
            "description": "Prevention of mother to child transmission - Maternity Cascade data entry",
            "dimensionItemType": "REPORTING_RATE",
            "periodType": "Quarterly",
            "dataInputPeriods": [],
            "indicators": [],
            "compulsoryDataElementOperands": [],
            "sections": [
                {
                    "code": "PMTCT_MC_DS_SECT",
                    "name": "PMTCT - Maternity Cascade",
                    "created": "2024-05-27T09:54:51.028",
                    "lastUpdated": "2024-05-27T11:43:04.793",
                    "externalAccess": false,
                    "dataElements": [
                        "B0O9qYWpP7O",
                        "MWFt8BstFQf",
                        "uwT867elDmQ",
                        "mXoaMlhwTi6",
                        "OtDJUmbk0IO",
                        "Qq67h1kGTDg",
                        "ILEEg3DEgkp",
                        "rUezyoMCaEP",
                        "gWNWzpxHqmj",
                        "TM6oLoTS2JN",
                        "S1ZbENIx0li",
                        "Xsc0ZX3Y5RD"
                    ],
                    "indicators": [],
                    "greyedFields": [],
                    "sortOrder": 1,
                    "showRowTotals": true,
                    "showColumnTotals": true,
                    "disableDataElementAutoGroup": true,
                    "displayName": "PMTCT - Maternity Cascade",
                    "favorite": false,
                    "id": "xClXBHQ2ouy"
                }
            ],
            "categoryCombo": {
                "id": "bjDvmb4bfuf"
            },
            "mobile": false,
            "version": 11,
            "expiryDays": 0,
            "timelyDays": 0,
            "notifyCompletingUser": false,
            "openFuturePeriods": 0,
            "openPeriodsAfterCoEndDate": 0,
            "fieldCombinationRequired": false,
            "validCompleteOnly": false,
            "noValueRequiresComment": false,
            "skipOffline": false,
            "dataElementDecoration": true,
            "renderAsTabs": false,
            "renderHorizontally": false,
            "compulsoryFieldsCompleteOnly": false,
            "formType": "SECTION",
            "displayName": "PMTCT - Maternity Cascade",
            "favorite": false,
            "dimensionItem": "J3NaSOaEB3O",
            "displayShortName": "PMTCT - Maternity Cascade",
            "displayDescription": "Prevention of mother to child transmission - Maternity Cascade data entry",
            "displayFormName": "PMTCT - Maternity Cascade",
            "id": "J3NaSOaEB3O",
            "dataSetElements": [
                {
                    "dataElement": {
                        "id": "gWNWzpxHqmj"
                    }
                },
                {
                    "dataElement": {
                        "id": "rUezyoMCaEP"
                    }
                },
                {
                    "dataElement": {
                        "id": "B0O9qYWpP7O"
                    }
                },
                {
                    "dataElement": {
                        "id": "ILEEg3DEgkp"
                    }
                },
                {
                    "dataElement": {
                        "id": "TM6oLoTS2JN"
                    }
                },
                {
                    "dataElement": {
                        "id": "Xsc0ZX3Y5RD"
                    }
                },
                {
                    "dataElement": {
                        "id": "mXoaMlhwTi6"
                    }
                },
                {
                    "dataElement": {
                        "id": "OtDJUmbk0IO"
                    }
                },
                {
                    "dataElement": {
                        "id": "MWFt8BstFQf"
                    }
                },
                {
                    "dataElement": {
                        "id": "Qq67h1kGTDg"
                    }
                },
                {
                    "dataElement": {
                        "id": "uwT867elDmQ"
                    }
                },
                {
                    "dataElement": {
                        "id": "S1ZbENIx0li"
                    }
                }
            ],
            "organisationUnits": [
                "fO1bOVBarF2",
                "haOzq9zR5sl",
                "eKVCwwF01nd"
            ]
        },

Hi Al-Gassim,

noted. No touchy the DB. I have PGadmin installed because our ultimate goal with this proof of concept is to ingest the data from PostgreSQL into PowerBI for to compliment our existing dashboards. Currently we are writing to a MS SQL Server from Power Apps, but that solution has become a bit unwieldy.

Thanks for the help!

1 Like

Thanks @pmacmillan.

When you request [YOUR_SERVER_HERE]/api/42/dataEntry/metadata, you should get an object back which contains the following properties:
{ 'dataSets', 'dataElements', 'indicators', 'categoryCombos', 'categories', 'categoryOptions', 'optionSets' }
I’m really trying to figure out what your response contains under the categoryCombos property, so if you could share that information, that would be helpful. Thanks.

Ah my mistake! Unfortunately, I can paste the full output of the metadata.json file, as it exceeds the character limit, nor am I allowed to upload the .json file as a “new user.” I could try a OneDrive public link, if you are allowed to click those.

Here is the snippet from categoryCombos, though:

And indeed bjDvmb4bfuf is missing from the list.

"categoryCombos": [
        {
            "code": "CATC_AGE_MOTHERS",
            "name": "Age - Mothers",
            "created": "2024-05-20T09:20:00.937",
            "lastUpdated": "2024-05-28T11:37:49.625",
            "categories": [
                "pkcEzfxkvkH"
            ],
            "dataDimensionType": "DISAGGREGATION",
            "skipTotal": false,
            "displayName": "Age - Mothers",
            "favorite": false,
            "id": "YaYuqgjylI8",
            "categoryOptionCombos": [
                {
                    "name": "50+",
                    "categoryOptions": [
                        "V2AF7U8W1GE"
                    ],
                    "displayName": "50+",
                    "id": "YuPsQO9A0zb"
                },
                {
                    "name": "40-44",
                    "categoryOptions": [
                        "rc1vF72eBKW"
                    ],
                    "displayName": "40-44",
                    "id": "uC46rqx0QHH"
                },
                {
                    "name": "25-29",
                    "categoryOptions": [
                        "hMnhMVCJdpZ"
                    ],
                    "displayName": "25-29",
                    "id": "zeVkBIA7RX3"
                },
                {
                    "name": "<1",
                    "categoryOptions": [
                        "bUVHE0c03KR"
                    ],
                    "displayName": "<1",
                    "id": "cNrUDqk8kAH"
                },
                {
                    "name": "10-14",
                    "categoryOptions": [
                        "qsc5amt0fGY"
                    ],
                    "displayName": "10-14",
                    "id": "n7Sza8Ncx3M"
                },
                {
                    "name": "20-24",
                    "categoryOptions": [
                        "Z6B1ZwnCmKm"
                    ],
                    "displayName": "20-24",
                    "id": "Vl0u9a33sGK"
                },
                {
                    "name": "45-49",
                    "categoryOptions": [
                        "PiRkFwJgAFC"
                    ],
                    "displayName": "45-49",
                    "id": "UILNjF6m3P1"
                },
                {
                    "name": "35-39",
                    "categoryOptions": [
                        "jeloc5Am5aF"
                    ],
                    "displayName": "35-39",
                    "id": "KqmHNBjitHf"
                },
                {
                    "name": "1-4",
                    "categoryOptions": [
                        "WveusYWs1nF"
                    ],
                    "displayName": "1-4",
                    "id": "hHpXNUy5GhO"
                },
                {
                    "name": "15-19",
                    "categoryOptions": [
                        "NZMub0005c4"
                    ],
                    "displayName": "15-19",
                    "id": "gZ9vdCtSX6M"
                },
                {
                    "name": "30-34",
                    "categoryOptions": [
                        "WabqYKy1qsf"
                    ],
                    "displayName": "30-34",
                    "id": "e6adLWYKHkU"
                },
                {
                    "name": "5-9",
                    "categoryOptions": [
                        "g2ZVxbVDm8A"
                    ],
                    "displayName": "5-9",
                    "id": "ki28bbaEjNy"
                }
            ],
            "isDefault": false
        },
        {
            "code": "CATC_AGE+SEX",
            "name": "Age + Sex",
            "created": "2024-05-20T09:20:24.904",
            "lastUpdated": "2024-05-28T11:37:49.625",
            "categories": [
                "cvRbJeBc6Gn",
                "CZnb1XojzHz"
            ],
            "dataDimensionType": "DISAGGREGATION",
            "skipTotal": false,
            "displayName": "Age + Sex",
            "favorite": false,
            "id": "PisY8nWmKml",
            "categoryOptionCombos": [
                {
                    "name": "45-49, Male",
                    "categoryOptions": [
                        "sXZffZJ9o1o",
                        "PiRkFwJgAFC"
                    ],
                    "displayName": "45-49, Male",
                    "id": "YXNFCZO9hzr"
                },
                {
                    "name": "50+, Female",
                    "categoryOptions": [
                        "V2AF7U8W1GE",
                        "kKKBDosLGYa"
                    ],
                    "displayName": "50+, Female",
                    "id": "NRiwxT49rUp"
                },
                {
                    "name": "20-24, Male",
                    "categoryOptions": [
                        "sXZffZJ9o1o",
                        "Z6B1ZwnCmKm"
                    ],
                    "displayName": "20-24, Male",
                    "id": "PV4rjXuDYEY"
                },
                {
                    "name": "45-49, Female",
                    "categoryOptions": [
                        "kKKBDosLGYa",
                        "PiRkFwJgAFC"
                    ],
                    "displayName": "45-49, Female",
                    "id": "sKPnKgHLNek"
                },
                {
                    "name": "30-34, Female",
                    "categoryOptions": [
                        "WabqYKy1qsf",
                        "kKKBDosLGYa"
                    ],
                    "displayName": "30-34, Female",
                    "id": "NwFN7ajlXNg"
                },
                {
                    "name": "1-4, Female",
                    "categoryOptions": [
                        "WveusYWs1nF",
                        "kKKBDosLGYa"
                    ],
                    "displayName": "1-4, Female",
                    "id": "VbNOoxCgwzI"
                },
                {
                    "name": "25-29, Female",
                    "categoryOptions": [
                        "hMnhMVCJdpZ",
                        "kKKBDosLGYa"
                    ],
                    "displayName": "25-29, Female",
                    "id": "A4AqCIviR2X"
                },
                {
                    "name": "25-29, Male",
                    "categoryOptions": [
                        "sXZffZJ9o1o",
                        "hMnhMVCJdpZ"
                    ],
                    "displayName": "25-29, Male",
                    "id": "t3YyXrVM91a"
                },
                {
                    "name": "10-14, Male",
                    "categoryOptions": [
                        "qsc5amt0fGY",
                        "sXZffZJ9o1o"
                    ],
                    "displayName": "10-14, Male",
                    "id": "PO1pN4rDUfZ"
                },
                {
                    "name": "15-19, Female",
                    "categoryOptions": [
                        "kKKBDosLGYa",
                        "NZMub0005c4"
                    ],
                    "displayName": "15-19, Female",
                    "id": "dnI0LngLVqZ"
                },
                {
                    "name": "20-24, Female",
                    "categoryOptions": [
                        "kKKBDosLGYa",
                        "Z6B1ZwnCmKm"
                    ],
                    "displayName": "20-24, Female",
                    "id": "yoHY6LLkODj"
                },
                {
                    "name": "<1, Male",
                    "categoryOptions": [
                        "sXZffZJ9o1o",
                        "bUVHE0c03KR"
                    ],
                    "displayName": "<1, Male",
                    "id": "U57qzdIy5G2"
                },
                {
                    "name": "50+, Male",
                    "categoryOptions": [
                        "sXZffZJ9o1o",
                        "V2AF7U8W1GE"
                    ],
                    "displayName": "50+, Male",
                    "id": "jjnge4GD8UJ"
                },
                {
                    "name": "10-14, Female",
                    "categoryOptions": [
                        "qsc5amt0fGY",
                        "kKKBDosLGYa"
                    ],
                    "displayName": "10-14, Female",
                    "id": "R7QNiHrYrrA"
                },
                {
                    "name": "35-39, Female",
                    "categoryOptions": [
                        "kKKBDosLGYa",
                        "jeloc5Am5aF"
                    ],
                    "displayName": "35-39, Female",
                    "id": "FJ109oAUpJ6"
                },
                {
                    "name": "35-39, Male",
                    "categoryOptions": [
                        "sXZffZJ9o1o",
                        "jeloc5Am5aF"
                    ],
                    "displayName": "35-39, Male",
                    "id": "P7u8rPgEmb9"
                },
                {
                    "name": "40-44, Female",
                    "categoryOptions": [
                        "rc1vF72eBKW",
                        "kKKBDosLGYa"
                    ],
                    "displayName": "40-44, Female",
                    "id": "cwmvHsXegjR"
                },
                {
                    "name": "40-44, Male",
                    "categoryOptions": [
                        "sXZffZJ9o1o",
                        "rc1vF72eBKW"
                    ],
                    "displayName": "40-44, Male",
                    "id": "AT2uZdNX5SG"
                },
                {
                    "name": "5-9, Female",
                    "categoryOptions": [
                        "kKKBDosLGYa",
                        "g2ZVxbVDm8A"
                    ],
                    "displayName": "5-9, Female",
                    "id": "qu514MoaIeZ"
                },
                {
                    "name": "<1, Female",
                    "categoryOptions": [
                        "bUVHE0c03KR",
                        "kKKBDosLGYa"
                    ],
                    "displayName": "<1, Female",
                    "id": "rZycZRBG0eL"
                },
                {
                    "name": "5-9, Male",
                    "categoryOptions": [
                        "sXZffZJ9o1o",
                        "g2ZVxbVDm8A"
                    ],
                    "displayName": "5-9, Male",
                    "id": "zxzgrmQuD8N"
                },
                {
                    "name": "15-19, Male",
                    "categoryOptions": [
                        "sXZffZJ9o1o",
                        "NZMub0005c4"
                    ],
                    "displayName": "15-19, Male",
                    "id": "Wogi24AcWeZ"
                },
                {
                    "name": "1-4, Male",
                    "categoryOptions": [
                        "WveusYWs1nF",
                        "sXZffZJ9o1o"
                    ],
                    "displayName": "1-4, Male",
                    "id": "sI0XKYRLvOk"
                },
                {
                    "name": "30-34, Male",
                    "categoryOptions": [
                        "WabqYKy1qsf",
                        "sXZffZJ9o1o"
                    ],
                    "displayName": "30-34, Male",
                    "id": "pNv3NYv4vu3"
                }
            ],
            "isDefault": false
        }
    ],

Great. Thanks @pmacmillan. I’m going to follow up with our backend developers to see if there’s any reason why the default category combo might not be included in the response.

2 Likes

Hi @pmacmillan : we fixed this issue in our current version of DHIS2 (v41), but evidently we forgot to apply the change in v40 and v39 of our software. We have update our ticket for this issue and will try to get it fixed in older versions. You can track our progress there if you are interested.

Since you are working on a test instance, can I suggest that you upgrade to v41 which was just released this week? The issue should be fixed there if you would like to use the newer data entry app. Alternately, the fix in v40 will mostly likely be released in a few weeks.

Thanks again for reporting the issue.

2 Likes

Yo! Thomas, thanks for the update, mate and I will definitely try that. Y’all are killing it. This also provides me with an opportunity to learn how to upgrade DHIS.

Thanks again!

1 Like