Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3363

CSV import error says "row", means "column"

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6, 4.5, 5.5, 6.0
    • Fix Version/s: 6.0
    • Component/s: None
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Not Required

      Description

      Error messages during CSV import mention which "row" the error is in, but print the column number:

      https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-api/src/main/java/org/dspace/app/bulkedit/MetadataImportInvalidHeadingException.java#L92-L101

      Example scenario:

      /dspace/bin/dspace metadata-import -e dspaceadmin@example.com -f import.csv
      Bad metadata declaration in row 147:

      The problem was that I accidentally deleted the the metadata field name in the first row, column 127. The message made it unnecessarily confusing by referring to "row 147" instead of column 147.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              helix84 Ivan Masár
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: