Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

single import csv breaks on dupe legacyid if some but not all ids given #11377

Open
whatisgalen opened this issue Aug 21, 2024 · 0 comments
Open
Labels

Comments

@whatisgalen
Copy link
Member

If you import data via Import Single CSV module and provide a uuid value for some, but not all of a column selected as "use as id", you can get an error complaining about duplicate legacyid values:

2024-08-20 19:37:23,449 arches.app.etl_modules.save ERROR    duplicate key value violates unique constraint "resource_instances_legacyid_key"
DETAIL:  Key (legacyid)=() already exists.
CONTEXT:  SQL statement "INSERT INTO resource_instances(resourceinstanceid, graphid, legacyid, createdtime)
                                 VALUES (instance_id, graph_id, legacy_id, now())"
 PL/pgSQL function __arches_staging_to_tile(uuid) line 39 at SQL statement

On the frontend, the load operation will fail but the error/alert banner says "Please contact your system administrator" without any specific errors mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants