Uploaded image for project: 'data-import-processing-core'
  1. data-import-processing-core
  2. MODDICORE-210

When an instance update cannot be saved the relationship to SRS should not be committed

    XMLWordPrintable

    Details

    • Template:
      Standard Bug Write-Up Format
    • Development Team:
      Folijet Support
    • Release:
      Morning Glory R2 2022

      Description

      Overview:

      When a FOLIO instance is being overlaid with a MARC update, if the instance changes cannot be saved because of an issue with the MARC, the SRS record is still created and attached to the instance record, but is invisible from the UI. Later, if another MARC record is overlaid, the update will be rejected because FOLIO will see the 001 on the MARC record being changed and think you are trying to change the instance HRID.

      Steps to Reproduce:

      1. Log into some FOLIO and create a source=FOLIO instance
      2. Create a data import profile that mimics the logic of single record import (first match on 999$i in marc then for non matches, match on instance uuid, then do instance update)
      3. Overlay that record with MARC that has an error (in this case a blank 050$a). If using the attached MARC record, edit it before importing, so that it has the newly-created Instance's UUID in 999 ff $i. Then import the file, using the new profile created in step 2
      4. The record will still say source FOLIO and the data import log will report "completed with errors".
      5. Export the source FOLIO record using data export, and you will see that what is exported is the MARC record you had tried to overlay, and that it will still have its original 001 and not the hrid as the 001.
      6. Go back to the instance and try to overlay it with single record import, you will see it fail. The error in the log is similar to:
        io.vertx.core.impl.NoStackTraceThrowable: The hrid field cannot be changed: new=AAL0869583-0001, old=15011905

      Expected Results:

      If the change to the instance is rejected, the relationship to the imported SRS record should not be saved. OR if the relationship is saved, it should be properly reflected in the instance, along with a correct 001.

      Actual Results:
      Additional Information:
      URL:
      Interested parties:

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                jenncolt Jenn Colt
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    TestRail: Runs

                      TestRail: Cases