MARCEDIT-L Archives

July 2016

MARCEDIT-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Terry Reese <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Fri, 8 Jul 2016 15:58:42 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (41 lines)
Hi James, 

The problem you are running into is that Validate only does the rules file validation -- it doesn't apply the Invalid Record checking.  That's what you are looking for -- and it's not part of the command-line tooling (mostly because no one has ever asked).  I've made myself a note -- this should be pretty easy to add to the code (it's just a call to one of the internal apis) -- so I'll see if I can accommodate this for the next update.

--tr

-----Original Message-----
From: MarcEdit support in technical and instructional matters [mailto:[log in to unmask]] On Behalf Of James Staub
Sent: Friday, July 8, 2016 3:39 PM
To: [log in to unmask]
Subject: [MARCEDIT-L] How can I quickly get a list and/or extract malformed records from the command line?

Helpful MARCEdit folks,

The general help I'm seeking: How can I quickly get a list and/or extract malformed records from the command line?

I'm having problems with MARC records supplied by Hoopla. Every monthly batch has a handful of malformed records which can be identified by running MARCValidator and scrolling to the bottom of the output log to see the records generating errors like

"Error: Field Length doesn't match the recorded lengths"

When I attempt the same operation on the same file from the Windows command line, e.g., 

C:\Users\jstaub>%MARCEDIT%\cmarcedit -validate -rules AppData\Roaming\marcedit\configs\marcrules.txt -s Documents\HOOPLA\20160606\USA_ALL_eBook.mrc -d Documents\HOOPLA\20160606\USA_ALL_eBook-VALIDATED

[with or without the -pd flag]

I get the same set of errors I did in the GUI - except without the "Field Length doesn't match the recorded lengths" errors.

cmarcedit -validate should log malformed records. I imagine it does, and that I'm doing something wrong...

James Staub
Nashville Public Library

________________________________________________________________________

This message comes to you via MARCEDIT-L, a Listserv(R) list for technical and instructional support in MarcEdit.  If you wish to communicate directly with the list owners, write to [log in to unmask] To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]

________________________________________________________________________

This message comes to you via MARCEDIT-L, a Listserv(R) list for technical and instructional support in MarcEdit.  If you wish to communicate directly with the list owners, write to [log in to unmask] To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]

ATOM RSS1 RSS2