pulibrary / lib_jobs

Enterprise Services batch processing tasks. Rails 7 Ruby 3.1.0
4 stars 0 forks source link

"processing error" lines should also be skipped for the datasync_processing report #672

Open mzelesky opened 6 months ago

mzelesky commented 6 months ago

https://github.com/pulibrary/lib_jobs/blob/4687deeefebd4956900defac2df3c0061f352696/app/models/oclc/data_sync_processing_file.rb#L28

If a record had a "processing error", no 914 field should be generated.

Potential remedy: To prevent "processing error" lines resulting in an OCLC number of "0", this line should become

next if ['unresolved', 'processing error'].include?(hash[:action])

mzelesky commented 6 months ago

Sample line that needs to be skipped: PUL_1012676_1709093491139::bib::5422010|99125445417406421|3585811||processing error