Article - CS348032

Project Import fails with "error 1,018 Data store unknown error" in ThingWorx

Modified: 03-Feb-2022   


Applies To

  • ThingWorx Platform 9.5 F000 to SP2
  • ThingWorx Platform 9.1 F000 to SP6
  • ThingWorx Platform 8.5 to 9.0 SP11

Description

  • Using script to automate source control import with Resources/SourceControlFunctions/Services/ImportSourceControlledEntities fails on Project import when a previous import attempt failed on different object.
  • Initial import of project works, however the import process fails on some other entities
  • Correcting missing entities and rerunning the import script fails on the project (which worked previously) with
[1,018] Data store unknown error: [Error occurred while accessing the model provider.] org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "model_index_entities_ukey"
  Detail: Key (entity_name, entity_type)=(XXXX, 20501) already exists.
This is a printer-friendly version of Article 348032 and may be out of date. For the latest version click CS348032