Hi Calle,

Which version of DHIS2 are you using?  In November I found a similar bug in 
2.28 (DHIS2-2493<https://jira.dhis2.org/browse/DHIS2-2493>), where the import 
chokes on an unknown catCombo, but the cause is slightly different – it 
attempts to persist the data element with a NULL catCombo instead of 
substituting ‘default’ (and catCombo is a NOT NULL column).

Importing unknown catCombos (eg foreign ‘default’ catCombos) worked well in 
2.25, 2.26 and 2.27 when we tested them back in November, so it would be great 
to get this feature working properly again in 2.28.

Cheers, Sam.


From: Dhis2-devs 
<dhis2-devs-bounces+samuel.johnson=qebo.co...@lists.launchpad.net> on behalf of 
Calle Hedberg <calle.hedb...@gmail.com>
Reply-To: "calle.hedb...@gmail.com" <calle.hedb...@gmail.com>
Date: Tuesday, 13 February 2018 at 09:47
To: DHIS2 Developers <dhis2-devs@lists.launchpad.net>
Subject: [Dhis2-devs] Meta-data export with dependencies Fails

Hi

I'm trying to export a single data set from one instance to another - it is a 
relatively simple data set with about 20 data elements, all using the same 
categorycombo.

Import fails with the following message:

org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique 
constraint "uk_qp9201a4m6jl53sei0huh4l6s"
  Detail: Key (shortname)=(default) already exists.

So it looks like the import cannot handle that the "default" catcombo obviously 
vary from the source to the destination instance.

Is this a bug, or expected behaviour?

Regards
Calle

*******************************************

Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedb...@gmail.com<mailto:calle.hedb...@gmail.com>

Skype: calle_hedberg

*******************************************

_______________________________________________
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

Reply via email to