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

[bulk data] Import Single CSV cannot import cardinality n tiles by legacy ID #10174

Open
jacobtylerwalls opened this issue Oct 20, 2023 · 1 comment

Comments

@jacobtylerwalls
Copy link
Member

jacobtylerwalls commented Oct 20, 2023

With a CSV like this that provides a legacy ID and multiple tiles for a node...

ResourceID,Concept List n
4,condition
4,credit line

... the single CSV Import in the Bulk Data Manager fails with:

2023-10-20 20:16:33,480 arches.app.etl_modules.save ERROR    duplicate key value violates unique constraint "resource_instances_legacyid_key"
DETAIL:  Key (legacyid)=(4) 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

Internal Server Error: /etl-manager

Ensure you use a fresh ResourceID each test iteration, because loading a second time with the same one would be expected to fail.

@jacobtylerwalls
Copy link
Member Author

Just following up from the planning meeting:

  • Yes, this affects the Bulk Data Manager (web tool)
  • Cardinality n imports do work with a UUID
  • This ticket is just noting they don't work with a legacy ID.

Here is a successfully imported resource with two tiles (using a UUID):
Screenshot 2023-10-27 at 6 08 22 PM

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

No branches or pull requests

1 participant