NullException when attempting to create item without SRS and Instance

Description

Overview: When you want to create an item connected to an existing holdings, you match to that holdings hrid and have an action to create item. If you try to create it Item will be errored with NullException in JSON log

Steps to Reproduce:

  1. In Inventory, find or create an instance that has a holdings, but no item record

  2. Go to Settings/Data Export

  3. Create a new mapping

    1. SRS and Holdings

    2. Map Holdings HRID to 901$a

    3. Map Holdings Id to 902$a

  4. Create a new data export job linked to that mapping

  5. Go to Settings/Data Import

  6. Create a new field mapping for an item

    1. Item mat type: Electronic resource

    2. Loan type: Can circulate

    3. Status: Available

  7. Create a new action "Create item" linked to that item field mapping

  8. Create a new match for 901$a to Holdings hrid

  9. Create a new job with that match and on matches, Creates item record

  10. Go to Inventory

  11. Find or create a Source = MARC Instance with 1 holdings record and no item records

  12. Copy that Instance HRID and search for it in Inventory, so that you have only 1 search result

  13. Go to Actions/Save instance UUIDs

  14. Go to Data Export

  15. Upload the UUIDs text file that was just downloaded

  16. Apply the export job profile created in step 4 and export the file

  17. Download the newly-created MARC file

  18. Go to Data Import

  19. Upload that exported mrc file and select test job to create item

Expected Results: Item is created. No SRS and Instance records created 

Actual Results:

Item is not created. {*}{{*}}NullException error appears in JSON log.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2

Checklist

hide

TestRail: Results

Activity

Show:

Ann-Marie Breaux November 13, 2023 at 1:46 PM

Hi all looks good on Poppy BF - I've updated the TestRail results

Svetlana Amirova November 9, 2023 at 8:10 AM

Hello  

Ticket fixed and retested on https://bugfest-poppy.int.aws.folio.org/

JenkinsNotifications November 7, 2023 at 6:05 PM

Deployed to the Poppy bf env. Moved status to In bugfix review from status Awaiting deployment. Please proceed with the verification.

Ann-Marie Breaux November 6, 2023 at 8:27 AM

Hi I should have read your comment before creating the video! Thanks for sorting out the actions, . I'll look forward to the updated log soon. Moving this to Awaiting release

Svetlana Amirova November 3, 2023 at 10:37 AM

Hello  

Ticket was checked on Snapshot. Moving ticket to In review. 

Notice that the Log will be fixed in scope of  

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Folijet

Fix versions

Release

Poppy (R2 2023) Bug Fix

RCA Group

Implementation coding issue

Affected releases

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created October 26, 2023 at 10:30 AM
Updated November 13, 2023 at 1:46 PM
Resolved November 6, 2023 at 8:27 AM
TestRail: Cases
TestRail: Runs