Open jsibley opened 5 years ago
@jsibley
Iniz fails when trying to insert the same concepts
Which config. is driving Iniz to insert the same concepts again?
These 3 XML files in the RMD payload all have definitions for CIEL concepts 1065
and 1066
which have the same name:locale
as the ones pre-loaded by the initial database load:
Reference_Application_Concepts-24.xml Reference_Application_Diagnoses-11.xml Reference_Application_Order_Entry_and_Allergies_Concepts-18.xml
@mks-d
@jsibley isn't this a question of using 'preferred theirs' vs 'preferred ours' when Iniz is loading the MDS packages?
@mks-d These aren't getting loaded from MDS packages, they're from CSV. Does that setting effect CSV loading also? If so, I will try that and see if it fixes things.
For some reason, the initial database import (from
classpath://openmrs-platform.sql
) when a server is created using the SDK includes 2 concepts with 10 concept_names each (specifically the 'Yes' and 'No' answer concepts, though not the CIEL versions - different UUIDs).Iniz fails when trying to insert the same concepts since the
name:locale
combo is already in use. This causes a cascade failure due to those concepts not being available when later concepts that depend on them are defined.It is beyond the scope of this script to be able to handle clearing out any existing concepts in the database. That is a step that will need to be done externally. Without those concepts in the database, Iniz is able to completely import all of the CSV content generated by this script.