https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44256 --- Comment #1 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Evidence from a production system running 25.11 with an active EDI vendor account, which I've been inspecting (aggregate figures only). ORDRSP cancellations, May 2025 to Nov 2026: * 830 line-level cancels (action 2). 792 match an existing order and every one of those is status cancelled with datecancellationprinted set, so fund Ordered is released correctly (see my correction on bug 42788). * 38 reference ordernumbers that do not exist in aqorders (older, low numbers; latest Jan 2026). process_ordrsp logs these and moves on. * 70 orders were cancelled by more than one ORDRSP. Harmless, cancel() is idempotent. Item deletion failures are the visible problem here. Items on ORDRSP-cancelled lines are deleted from July 2026 onwards (bug 42789 live), with a handful of exceptions. Since July, 10 items on cancelled lines survive. 9 of them are the only item on a biblio that has a hold, so Koha::Item::safe_delete refuses them as last_item_for_hold. process_ordrsp discards the message that ->cancel() adds for this, so nothing is logged and nothing is shown to the librarian. The items stay Not for loan (On order) and keep attracting holds. (The tenth has no hold and I don't know why it survived; it was cancelled on the first day items started being deleted, so it may predate the upgrade.) That is exactly the reporting this bug asks for: the ->cancel() messages (error_delitem with its reason) should be recorded against the ORDRSP message and logged, and the message status set to error, so staff can see which items need handling by hand. I'd also like to cover the fallback for such items in bug 44187 (set a configurable item status when the item cannot be deleted). -- You are receiving this mail because: You are watching all bug changes.