← Back to team overview

dhis2-devs team mailing list archive

[Bug 1434035] [NEW] CSV Meta-data import of Option sets does not work

 

Public bug reported:

Hello,

When importing a CSV file with Option sets like:

name,uid,code,option
"Color",,,"Blue"
"Color",,,"Green"
"Gender",,,"Female"
"Gender",,,"Male"

These conflicts will appear:

Conflicts
Type	Element	Description
OptionSet	Color	Unknown reference to IdentifiableObject{id=0, uid='Y3ZLJ1qs7aU', code='Blue', name='Blue', created=Thu Mar 19 11:14:20 UTC 2015, lastUpdated=Thu Mar 19 11:14:20 UTC 2015} (Option) on object IdentifiableObject{id=21953, uid='iBRaaFpZW1f', code='null', name='Color', created=Thu Mar 19 11:14:25 UTC 2015, lastUpdated=Thu Mar 19 11:14:25 UTC 2015} (OptionSet).
OptionSet	Gender	Unknown reference to IdentifiableObject{id=0, uid='yzctuYgK4Mp', code='Male', name='Male', created=Thu Mar 19 11:14:20 UTC 2015, lastUpdated=Thu Mar 19 11:14:20 UTC 2015} (Option) on object IdentifiableObject{id=156, uid='uJaC5TowVao', code='null', name='Gender', created=2014-07-25 12:05:37.572, lastUpdated=2015-03-19 11:02:40.371} (OptionSet).
OptionSet	Gender	Unknown reference to IdentifiableObject{id=0, uid='GotMiKkZtVH', code='Female', name='Female', created=Thu Mar 19 11:14:20 UTC 2015, lastUpdated=Thu Mar 19 11:14:20 UTC 2015} (Option) on object IdentifiableObject{id=156, uid='KRPuCisU9KP', code='null', name='Gender', created=2014-07-25 12:05:37.572, lastUpdated=Thu Mar 19 11:14:25 UTC 2015} (OptionSet).
OptionSet	Color	Unknown reference to IdentifiableObject{id=0, uid='JoX1Iq55rYC', code='Green', name='Green', created=Thu Mar 19 11:14:20 UTC 2015, lastUpdated=Thu Mar 19 11:14:20 UTC 2015} (Option) on object IdentifiableObject{id=21953, uid='wXgXkQL1pL1', code='null', name='Color', created=Thu Mar 19 11:14:25 UTC 2015, lastUpdated=Thu Mar 19 11:14:25 UTC 2015} (OptionSet).

If "Dry run" is yes, nothing will happen, if it is no, just the option
set will be created but not the option.

I am using the version 2.18. 
Safari 7.1.3. 
OS X 10.9.5.

Would be nice if you could confirm if this is really a bug.

All the best,
Tiago

** Affects: dhis2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1434035

Title:
  CSV Meta-data import of Option sets does not work

Status in DHIS 2:
  New

Bug description:
  Hello,

  When importing a CSV file with Option sets like:

  name,uid,code,option
  "Color",,,"Blue"
  "Color",,,"Green"
  "Gender",,,"Female"
  "Gender",,,"Male"

  These conflicts will appear:

  Conflicts
  Type	Element	Description
  OptionSet	Color	Unknown reference to IdentifiableObject{id=0, uid='Y3ZLJ1qs7aU', code='Blue', name='Blue', created=Thu Mar 19 11:14:20 UTC 2015, lastUpdated=Thu Mar 19 11:14:20 UTC 2015} (Option) on object IdentifiableObject{id=21953, uid='iBRaaFpZW1f', code='null', name='Color', created=Thu Mar 19 11:14:25 UTC 2015, lastUpdated=Thu Mar 19 11:14:25 UTC 2015} (OptionSet).
  OptionSet	Gender	Unknown reference to IdentifiableObject{id=0, uid='yzctuYgK4Mp', code='Male', name='Male', created=Thu Mar 19 11:14:20 UTC 2015, lastUpdated=Thu Mar 19 11:14:20 UTC 2015} (Option) on object IdentifiableObject{id=156, uid='uJaC5TowVao', code='null', name='Gender', created=2014-07-25 12:05:37.572, lastUpdated=2015-03-19 11:02:40.371} (OptionSet).
  OptionSet	Gender	Unknown reference to IdentifiableObject{id=0, uid='GotMiKkZtVH', code='Female', name='Female', created=Thu Mar 19 11:14:20 UTC 2015, lastUpdated=Thu Mar 19 11:14:20 UTC 2015} (Option) on object IdentifiableObject{id=156, uid='KRPuCisU9KP', code='null', name='Gender', created=2014-07-25 12:05:37.572, lastUpdated=Thu Mar 19 11:14:25 UTC 2015} (OptionSet).
  OptionSet	Color	Unknown reference to IdentifiableObject{id=0, uid='JoX1Iq55rYC', code='Green', name='Green', created=Thu Mar 19 11:14:20 UTC 2015, lastUpdated=Thu Mar 19 11:14:20 UTC 2015} (Option) on object IdentifiableObject{id=21953, uid='wXgXkQL1pL1', code='null', name='Color', created=Thu Mar 19 11:14:25 UTC 2015, lastUpdated=Thu Mar 19 11:14:25 UTC 2015} (OptionSet).

  If "Dry run" is yes, nothing will happen, if it is no, just the option
  set will be created but not the option.

  I am using the version 2.18. 
  Safari 7.1.3. 
  OS X 10.9.5.

  Would be nice if you could confirm if this is really a bug.

  All the best,
  Tiago

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1434035/+subscriptions


Follow ups

References