The "id": "sdfg6yhji8" reference a deleted categoryCombo. So I go to the database and manually deleted it. When I fetch the data with api again, it’s now appearing like:
I think for this one you need to check the database directly. I searched for the error “Can not add a Model without id to a ModelCollection” and that’s the conclusion…
Before I posted, I also search for existing solution but couldn’t get one. Also I have inspected the database and query the categoryCombo and categoryOptionCombo even with the condition where COC is null nothing was return. I updated the record with the Maintenance App still it is sending the null value.
So far, I have leave it for now but I can edit the categoryCombo. I only hope at some point the system will purge it.
This is the issue here: [DHIS2-15351] - Jira which will be included in the next official release of each branch. We have tested and verified on the development branch of 2.39.3
Thank you for the notice. It did get fixed for version 2.39 but it wasn’t reported for version 40 but I don’t know if it was already working in version 40 and this bug reappeared?
As you can see the comment by @vietin the Jira issue, the issue is fixed in version 40.1.0 which is the latest stable version for version 40; so it should be available as soon as you update.