← Back to team overview

dhis2-devs team mailing list archive

Re: [Dhis2-users] Metadata Import of option sets not working

 

Could you share your full payload? it shouldn't be too big.

Did you also test against 2.22? was it working there?

On Wed, Feb 10, 2016 at 12:33 PM, Archana Chillala <
archanac@xxxxxxxxxxxxxxxx> wrote:

> Hi Morten,
>
> We are exporting both Option sets and options as well. Basically, making
> an API call - to export and import metadata (GET and POST call
> respectively) (http://...../api/metadata) .
>
> Thank you.
>
>
> Archana Chillala
> Application Developer
> Email archanac@xxxxxxxxxxxxxxxx
> Telephone +91 9100960533 <+91+9100960533>
> [image: ThoughtWorks]
> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator>
>
> On Wed, Feb 10, 2016 at 10:58 AM, Morten Olav Hansen <morten@xxxxxxxxx>
> wrote:
>
>> Hi
>>
>> Are you exporting both optionSets -and- options? if not, all that is
>> inside the optionSets are the references to options, not the actual options.
>>
>> On Wed, Feb 10, 2016 at 12:23 PM, Archana Chillala <
>> archanac@xxxxxxxxxxxxxxxx> wrote:
>>
>>> Hi,
>>>
>>> We have two instances of DHIS. Metadata is exported from one instance
>>> and imported into the other in the form of JSON file. But, while importing
>>> metadata, option set is imported but not the options within it.  We are
>>> currently using DHIS version 2.21 revision number 21021.
>>>
>>> We have import conflicts mentioned as follows:
>>>
>>> "type": "OptionSet",
>>>      "importConflicts": [
>>>        {
>>>          "object": "Test options",
>>>          "value": "Unknown reference to IdentifiableObject{id=0,
>>> uid='null', code='1', name='option 1', created=null, lastUpdated=null}
>>> (Option) on object IdentifiableObject{id=73, uid='fvm4lIOVDnY',
>>> code='null', name='Test options', created=Tue Feb 09 12:14:03 IST 2016,
>>> lastUpdated=Tue Feb 09 12:14:27 IST 2016} (OptionSet)."
>>>        },
>>>        {
>>>          "object": "Test options",
>>>          "value": "Unknown reference to IdentifiableObject{id=0,
>>> uid='null', code='2', name='option 2', created=null, lastUpdated=null}
>>> (Option) on object IdentifiableObject{id=73, uid='fvm4lIOVDnY',
>>> code='null', name='Test options', created=Tue Feb 09 12:14:03 IST 2016,
>>> lastUpdated=Tue Feb 09 12:14:27 IST 2016} (OptionSet)."
>>>        }
>>>      ]
>>>
>>>
>>> Is this a bug? A similar issue was reported as a bug on launchpad for
>>> 2.18 version.
>>> Here's the link - https://bugs.launchpad.net/dhis2/+bug/1434035
>>>
>>> Any suggestions or help would be appreciated.
>>>
>>>
>>>
>>>
>>> Thanks & Regards,
>>>
>>> Archana Chillala
>>> Application Developer
>>> Email archanac@xxxxxxxxxxxxxxxx
>>> Telephone +91 9100960533 <+91+9100960533>
>>> [image: ThoughtWorks]
>>> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Morten
>>
>
>


-- 
Morten

Follow ups

References