Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

CSV import with new (multivalued) field failed #266

Open
karenmajewicz opened this issue Mar 17, 2023 · 0 comments
Open

CSV import with new (multivalued) field failed #266

karenmajewicz opened this issue Mar 17, 2023 · 0 comments
Assignees
Labels
attribute-model type:bug Something isn't working

Comments

@karenmajewicz
Copy link
Member

What I did:

  1. Added a new field to the Elements and Form elements for "Display Note."
  2. Manually added 2 Display Note values to this record: https://geomgdev.lib.umn.edu/documents/999-0011/edit
  3. Exported 5 records to CSV, including 999-0011 - the Display Note field exported correctly
  4. Added the exact same values for Display Note to the other 4 records in the CSV
  5. Reuploaded the CSV - The import form recognized the mapping of Display Note

Upon upload, I see this error:

importDisplay

Interestingly, when I click on the errors [Error - #<TypeError: wrong element type Hash at 0 (expected array)>](https://geomgdev.lib.umn.edu/imports/822/import_documents/934142), it displays the JSON document with the addition of gbl_displayNote_sm

Screenshot 2023-03-17 at 11 43 31 AM

However, the new values do not get committed to Solr and do note show up in the form.

@karenmajewicz karenmajewicz added the type:bug Something isn't working label Mar 17, 2023
@karenmajewicz karenmajewicz moved this to 🆕 New in Q1 2023 Mar 17, 2023
@ewlarson ewlarson self-assigned this Mar 17, 2023
@ewlarson ewlarson moved this from 🆕 New to 🔖 Ready in Q1 2023 Mar 17, 2023
@ewlarson ewlarson moved this from 🔖 Ready to 🏗 In progress in Q1 2023 Mar 19, 2023
ewlarson added a commit that referenced this issue Mar 19, 2023
Fixes #266 - Use nil for empty attributes
@ewlarson ewlarson moved this from 🏗 In progress to 👀 In review in Q1 2023 Mar 19, 2023
@ewlarson ewlarson moved this from 👀 In review to 🏗 In progress in Q1 2023 Mar 27, 2023
@ewlarson ewlarson moved this from 🏗 In progress to 👀 In review in Q1 2023 Mar 28, 2023
@ewlarson ewlarson moved this from 👀 In review to ✅ Done in Q1 2023 Mar 28, 2023
@karenmajewicz karenmajewicz moved this to 📋 Backlog in Q2 2023 Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
attribute-model type:bug Something isn't working
Projects
No open projects
Status: Done
Status: 📋 Backlog
Status: No status
Development

No branches or pull requests

2 participants