LafayetteCollegeLibraries / spot

🗄 institutional repository + digital collections
https://ldr.lafayette.edu
5 stars 2 forks source link

ActiveRecord::RecordNotUnique on bulkrax import #1022

Open jwellnit opened 1 year ago

jwellnit commented 1 year ago

Persistent error on bulkrax branches involving default values for namespace. Error seemingly happens at random and can affect any number of items in a bulk import. Error text below:

Error: ActiveRecord::RecordNotUnique - PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_minter_states_on_namespace" DETAIL: Key (namespace)=(default) already exists. : INSERT INTO "minter_states" ("template", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"

Items not affected with this issue, including in batches where some objects were, have a correctly generated noid

jwellnit commented 1 year ago

Potential issue, the import process moves on before the process of noid generation is complete, possibly an issue with the bulkrax csv parser