← Back to team overview

dhis2-devs team mailing list archive

Re: Meta-data export with dependencies Fails


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.uk@xxxxxxxxxxxxxxxxxxx> on behalf of Calle Hedberg <calle.hedberg@xxxxxxxxx>
Reply-To: "calle.hedberg@xxxxxxxxx" <calle.hedberg@xxxxxxxxx>
Date: Tuesday, 13 February 2018 at 09:47
To: DHIS2 Developers <dhis2-devs@xxxxxxxxxxxxxxxxxxx>
Subject: [Dhis2-devs] Meta-data export with dependencies Fails


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?



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.hedberg@xxxxxxxxx<mailto:calle.hedberg@xxxxxxxxx>

Skype: calle_hedberg


Follow ups