ChalmersLibrary / chami

CHAlmers library MIddleware for FOLIO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FOLIO rejects incoming record if there is a matching instance with a differing HRID value

branchedelac opened this issue · comments

After matching an incoming record to an existing record in Inventory, FOLIO rejects the incoming record:

Found 1 = updateYes, found instance dfdd8362-c888-4f83-b4da-316d17030783 already present in FOLIO, Updating...
REASON4: StatusCodeError: 400 - "The hrid field cannot be changed: new=https://libris.kb.se/1c05jrm4ztcvw94s, old=in02396567"(node:10028) UnhandledPromiseRejectionWarning: StatusCodeError: 400 - "The hrid field cannot be changed: new=https://libris.kb.se/1c05jrm4ztcvw94s, old=in02396567"at new StatusCodeError 

For more information about why this started happening with Edelweiss/2019 Q4 version of FOLIO, see https://issues.folio.org/browse/CHAL-132.

We got around this for now by adding corresponding Libris IDs to existing records' HRID field. (Ie so that now the HRID that Chami PUTs matches the HRID already in FOLIO.)
Closing this.