Fail job for unsupported profile (match MARC BIB to Instance and update MARC BIB) - MG bugfix

Description

Summary: A MARC-to-Instance or Instance-to-Instance match, followed by a MARC Update action causes the job to get stuck.

Include a way for the job to fail gracefully with an error message instead of getting stuck.

For now, we will just resolve this particular scenario, but in the near future, we will include a spike to identify these earlier in the job processing. In the further future, determine if there is a way to adjust the job profile architecture so that MARC Update actions can follow MARC-Instance or Instance-Instance matches, and the job will process successfully.

Steps to reproduce:

  1. Find an existing match profile or create a new match profile with the following:

    • Name:

    • Match Incoming MARC Bib 999 ff $i

    • Exactly matches

    • Existing Instance UUID

  2. Go to Settings/Data import/MARC field protections, and make sure there is a field protection for: 514 * * * *. If not, then add one

  3. Create a field mapping profile

    • Name:

    • Incoming record type: MARC Bib

    • FOLIO Record type: MARC Bib Updates

    • In the Details/Override MARC field protections section, mark the Override checkbox for the 514 field

  4. Create an action profile

    • Name:

    • Action: Update

    • FOLIO record type: MARC Bib record

    • Link the above field mapping profile

  5. Create a job profile

    • Name:

    • Data type: MARC

    • Add the match profile from above

    • For matches, add the Update MARC Bib action profile from above

  6. Go to Inventory and find a source = MARC Instance

  7. Mark the checkbox next to the particular instance in the second pane (search results)

  8. Export that instance

  9. Ignore the Delimited file; go to Data export and download the most recent quickExport with your user name

  10. Upload that MARC file and assign the job profile created above, and run the job

Expected results: Unless or until we change the job profile architecture or handling:

  • The job should finish with Status: Completed with errors

  • When a user clicks on the file name in the log, and clicks on the title of the record, they should see the error message: Unsupported type of job profile

Actual results: The job gets stuck or completes with errors, and there is no error message in the log to help the user understand what happened

NOTE

  • This same error message will be used for other problem job profile structures, but for now, only test with the above structure. We will add other tests when we identify additional scenarios.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

6

Checklist

hide

TestRail: Results

Activity

Show:

Ann-Marie BreauxAugust 28, 2022 at 1:30 PM

Thanks, I looked at it today, and all is good! Closing this issue.

Good work, !

Maksym RutkovskyiAugust 26, 2022 at 3:16 PM

I tested on Morning Glory BugFest and the bug does not reproduce, everything works well

Oleksii PetrenkoAugust 26, 2022 at 11:34 AM

Deployed to MG bf. Please proceed with verification.

Ann-Marie BreauxAugust 23, 2022 at 5:50 AM
Edited

Hi and Just tested on Snapshot, and all looks good. Thank you for sorting it out! Moving it to Awaiting release

Maksym RutkovskyiAugust 22, 2022 at 1:31 PM

Hi !

Work as expected on FOLIO

Google Chrome Version 101.0.4951.67 (Official Build) (64-bit)

During testing, the bug did not reproduce. Now when using an unsupported job profile, an error about this is displayed for the record. 

See the attached:

 

Done

Details

Assignee

Reporter

Priority

Story Points

Development Team

Folijet Support

Fix versions

Release

Morning Glory (R2 2022) Bug Fix

RCA Group

Incomplete/missing requirements

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created August 7, 2022 at 10:08 PM
Updated August 30, 2022 at 10:47 AM
Resolved August 23, 2022 at 5:50 AM
TestRail: Cases
TestRail: Runs