Static location match does not work when location name or code includes a hyphen (-)
Description
CSP Request Details
CSP Rejection Details
Potential Workaround
defines
Checklist
hideTestRail: Results
Activity

Christie Thomas October 12, 2022 at 4:26 PM
I think so. It was working and then i wasn't. I can reopen if it we run into problems again in the future.

Ruslan Lavrov October 12, 2022 at 4:10 PM
Hello @Christie Thomas, thank you for your response. So we can close this Jira, right?

Christie Thomas October 12, 2022 at 2:32 PM
I, too, was able to get this to work in bugfest for Lotus and in our local Lotus environment today. It is also working today in the folio-snapshot environment. Thank you.

Ruslan Lavrov October 11, 2022 at 1:00 PMEdited
Hello @Christie Thomas, I was trying to reproduce this issue on the snapshot, MG bugfest and Lotus bugfest environments but did not manage. Could you please take a look and say what could be missing in my steps for reproducing so that we could proceed with this issue?
To reproduce this issue on the Lotus bugfest env I used "update holdings rec" job profile https://bugfest-lotus.int.aws.folio.org/settings/data-import/job-profiles/view/b6b35159-cf74-4f83-891b-88f3724c0ab8.
During reproducing I tried the following values for the static match (preliminary updating holdings record with appropriate permanent location):
DUL-PERKN-PKE - match by code
DUL-PERK-LOTUS-TEST - match by code
test-location - match by name
test-location-code - match by code
test-location (test-location-code) - match by name(code)

Kateryna Senchenko October 7, 2022 at 9:10 AM
Hi @Mariia Aloshyna, thanks, it does look like a BE issue. Moving it to MODSOURMAN for now, but the issue can end up in MODDICORE or MODINV
Details
Details
Assignee

Reporter

Overview: When creating a static match ** to the permanent location in the holdings record and the location includes a hyphen, the import will not successfully match the holdings record.
Steps to Reproduce:
Log into folio-snapshot as diku-admin.
Create a new location that includes a hyphen in the name or code.
Create a new holdings record on an instance that does not already have a holdings record and assign the new location as the permanent location. Or, change the location on an already existing holdings record to the new location.
Create a match profile on the 001 of the incoming marc record to the instance hrid.
Create a match profile with a static match to the holdings record. The text of the match is the location name and/or code that includes the hyphen. (Name, Code, or Name(Code).) The text exactly matches the holdings permanent location.
Create a field mapping profile and action profile to update the instance.
Create a field mapping profile and action profile to update the holdings.
Create a job profile that includes the 001 instance match profile, the holdings permanent location match profile, the update instance action, and the update holdings action.
Create an import marc record that includes the instance hrid of the instance record associated with the holdings that has the new location assigned.
Use data import to import the marc record created using the import job profile created.
The instance and holdings will not be updated and the holdings log will display discarded.
If you remove the hyphen from the location name or code and retry the import, the import will succeed.
Expected Results: The instance and holdings record match and are updated.
Actual Results: The instance and holdings record are not updated and the log displays that the holdings record was discarded.
Additional Information: This behavior is also happening in the local Lotus environment at Chicago. ** This will impact all FOLIO users with hyphens in their location names or location codes.
URL:
Interested parties: University of Chicago