Rename category option

Hello,

I renamed a category option but noticed the corresponding category option combination still has the old name. I ran the “Update category option combinations” maintenance operation several times.

Thanks

···

Sent from Outlook

Hi Adam,

It seems like a bug of DHIS2. We experienced the same your issue and we solved it by update with Import/Export module (xml/json).

Below is 1 example on xml format you can try:

<categoryOptionCombos>

    <categoryOptionCombo xmlns="[http://dhis2.org/schema/dxf/2.0](http://dhis2.org/schema/dxf/2.0)" lastUpdated="2017-08-08T23:23:31.719" created="2017-08-08T23:23:31.718" name="test rename 4" id="ELBMKFATkwo">

        <categoryCombo id="l34v6Y5acBX" />

        <categoryOptions>

            <categoryOption id="Ddz8CQqa6Ni" />

        </categoryOptions>

    </categoryOptionCombo>

</categoryOptionCombos>

For long-term, I think we should create a ticket on Jira site of DHIS2 https://jira.dhis2.org/secure/Dashboard.jspa

Regards,

···

On Tue, Aug 8, 2017 at 9:18 PM, Adam Preston adam704a@hotmail.com wrote:

Hello,

I renamed a category option but noticed the corresponding category option combination still has the old name. I ran the “Update category option combinations” maintenance operation several times.

Thanks

Sent from Outlook


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Em Le Hong
DHIS2 Implementation| **HISP Vietnam **

em.hispvietnam@gmail.com | Skype: em.hispvietnam@gmail.com

Hi Em and Adam,
I am having the same issue in version 2.30. I had to change the spelling of a Category Option that was already in use in an aggregate form. I updated category option combos in the Data Administration app, and there was no change to the category option combos in the maintenance application. The date last updated did not change.

I tried the suggestion above using Import module in XML, and the category option combo “date updated” changed to today, but the spelling of the combo did not change.

It successfully updated when I realized that I hadn’t removed this flag from the XML: <ignoreApproval>false</ignoreApproval>

So now that I’ve admitted to the entire DHIS2 Community that I’m an amateur, I hope that this is helpful for someone, or that this bug gets updated in some future version. Thanks everyone.

Mike

1 Like

Hi everyone, FYI here is the JIRA issue: [DHIS2-2022] - Jira

1 Like