Data Import updates SRS Record (but not Inventory record)

Description

Overview: The following issue is observed in an Iris Hotfix-3 environment (Universidad de Concepcion), but it can also be reproduced in folio-snapshot. Import a MARC file, matching on 001, to update the SRS MARC Bib and related instance. The Instance field mapping profile has no edits in it. It's only trying to update the details controlled by the updated MARC record (fixing some diacritics) - no additional mappings. SRS MARC Bib is updated, but the instance is not. Import shows Completed with errors.

Current workaround Use a different action profile (Update MARC Bib) with a field mapping profile of MARC Bib/Update, with no edits. THAT finally worked

Steps to Reproduce:

  1. Log into FOLIO-snapshot-load as diku_admin

  2. Import the attached MARC file MusicayNeurocienciaBad.mrc to create SRS MARC and Instance, using the Default - Create Instance and SRS MARC Bib job profile

  3. Create a job profile with

    • Match profile: MARC 001 to MARC 001

    • Action profile: Update instance

    • Field mapping profile: for Instance, with no edits in it

  4. Go to Inventory and find the HRID of the Instance that was just created

  5. Edit the attached MusicayNeurocienciaGood.mrc file to have that HRID in the 001 field

  6. Then Import the MusicayNeurocienciaGood.mrc file using the profile created in step 3

  7. Check the instance and the SRS MARC to see if they both were updated

Expected Results:

  • Instance and SRS MARC should both be updated

  • If the instance is not updated, the UI log should show "Error" with some sort of error message on the Instance tab

Actual Results:

  • The SRS MARC Bib is updated, but not the Instance.

  • UI job shows Completed with errors, but no error noted in the log

Notes from A-M

  • I also tried using an Instance field mapping profile with an updated instance status (Cataloged), but that completed with errors also

  • And I tried a different action profile (Update MARC Bib) with a field mapping profile of MARC Bib/Update, with no edits. THAT finally worked

  • See attached video showing it reproducing in folio-snapshot-load

Of note – we observe stack trace in log for mod-inventory

Also attached output from
GET https://<okapi>/change-manager/jobExecutions/da4f2d65-0d6a-4741-8ae6-4b35e0d46c77 - containing job execution details

Attaching logs from mod-source-record-storage, mod-source-record-manager, mod-inventory (details) at the time of the import

CSP Request Details

Approved by Cap Planning in the release_bug_triage channel 9 Sept 2021

CSP Rejection Details

None

Potential Workaround

None

Attachments

10

Checklist

hide

TestRail: Results

Activity

Show:

Ann-Marie Breaux September 13, 2021 at 4:32 PM

Retested on Juniper bugfest and all looks fine. This Juniper hotfix will resolve the problem you saw with the Concepcoon records, where the SRS MARC was being updated, but the corresponding Instance was not being updated

Oleksii Petrenko September 13, 2021 at 8:31 AM

Deployed to juniper bugfest. 

Please verify

Ann-Marie Breaux September 10, 2021 at 3:55 AM
Edited

Hi Tested all 3 scenarios on folio-snapshot-load and all looks good! The only thing that we'll need to fix in the future is that scenario 3 (using an Update MARC Bib action profile) triggers Updated to show in the Instance column of the Import log, but it's not a hotlink to the instance. We'll deal with that in in implicit/explicit updates. Moving this to Awaiting release. Thank you for the good work!

Ann-Marie Breaux September 8, 2021 at 1:08 PM

Grooming: MODINV needs an update; other apps do not need update; has confirmed that other modules do not need releasing; to ask for approval for this hotfix

Ann-Marie Breaux September 7, 2021 at 2:10 PM

Per may need to be a Juniper hotfix, along with the HRID script update

Done

Details

Assignee

Reporter

Priority

Story Points

Development Team

Fix versions

Release

RCA Group

CSP Approved

Affected Institution

Universidad de Concepción

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created August 24, 2021 at 2:27 PM
Updated January 26, 2022 at 8:58 AM
Resolved September 10, 2021 at 4:04 AM
TestRail: Cases
TestRail: Runs