Hello All,

We were trying to create "Program", "Program Stage" and "Program Stage
Section" using "/metadata" api.

We are facing issues creating "Program Stage Section".
*Status : 409 Conflict*

When we tried debugging the issue, we got some ClassCastExceptions for
"List to Set" and "Set to List" in "extractProgramStageDataElements" and
"saveProgramStageDataElements" methods in
"DefaultIdentifiableObjectImporter" class under "dhis-services-dxf2".

We tried fixing it, and we got some more exceptions (Constraint Violation
Exception)

*Input to the api "/metadata"*:

{
    "programStageSections": [
        {
            "name": "SomeName",
            "programStageDataElements": [
                {
                    "allowDateInFuture": false,
                    "allowProvidedElsewhere": false,
                    "compulsory": false,
                    "dataElement": {
                        "id": "DataElementId",
                        "name": "DataElementName"
                    },
                    "displayInReports": false
                }
            ],
            "sortOrder": 1
        }
    ]
}

Can you please have a look onto this and fix it if needed.



-- 
Thanks,
Mansi Singhal
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to