Bug 39215 - EDIFACT quote files should skip orders that cannot be processed rather than failing to complete
Summary: EDIFACT quote files should skip orders that cannot be processed rather than f...
Status: ASSIGNED
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Martin Renvoize (ashimema)
QA Contact: Testopia
URL:
Keywords:
Depends on: 38689
Blocks:
  Show dependency treegraph
 
Reported: 2025-02-28 11:21 UTC by Martin Renvoize (ashimema)
Modified: 2025-02-28 11:44 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Renvoize (ashimema) 2025-02-28 11:21:44 UTC
When loading an EDIFACT quote file, if the process finds problematic data (usually a mismatched LLO - Branchcode or other enumerated coded field) the load process gets stuck and displays as 'Processing' in the EDFACT messages page. This usually means that the remainder of the quotes in the file have to be manually corrected and is it's currently difficult to debug by library staff.

It would be preferable if the process could skip, and report any problem data but complete all other quotes.
Comment 1 Martin Renvoize (ashimema) 2025-02-28 11:44:40 UTC
A first step should be to wrap 'Koha::Item->new($item_hash)->store;' in try/catch blocks and report foreign key failures before moving to the next item creation.