Production

Check Load File

Checks an incoming production's data load file (DAT or CSV) and image load file (OPT or LFP) against each other and against the files actually in the production folder.

PRO Command line: check-load-file Version 1.0
A Pro toolIn the free edition it works on up to 25 documents per run, so you can try it on real work. Compare Free and Pro.

Point the tool at a production folder and it reads the data load file and the image load file, then checks every record: missing natives, images and text; records with the wrong number of fields; missing, duplicate, overlapping or out-of-order Bates numbers; page counts that disagree between the two load files and the image files themselves; and files in the folder that neither load file refers to.

Each problem is one row of the report, marked Error or Warning. A clean production gives an empty report and the note "No problems found." Nothing in the production is changed.

Use it when

How to run it

  1. Choose the production folder (the folder holding the load files, images, natives and text) as Input. Leave sub-folders included.
  2. Choose an Output folder outside the production.
  3. Leave Data file and Image file empty to have the tool find them, or choose them if the production holds more than one of either.
  4. Leave ID column, End column and Path columns empty unless the production uses unusual column names.
  5. Keep Count pages in image files and Report unreferenced files on for a full check.
  6. Click Run, read the notes in the result panel, then click Open report.

Settings

Every setting has the same help beside it in the app. On the command line, pass each as --name value; ltk help check-load-file lists them.

Settings

SettingWhat it doesType and default
Data file
--data-file
The production's data load file (.dat, .csv or .txt). Empty: the only .dat in the production folder or its sub-folders (or else the only .csv).
When empty, the tool looks through the production folder and its sub-folders for a single .dat file, or failing that a single .csv. If it finds more than one it stops and lists them, so you can choose the right one. Images-only productions can be checked with no data file at all.
file
empty
Image file
--image-file
The image load file (.opt or .lfp). Empty: the only .opt or .lfp in the production folder or its sub-folders.
When empty, the single .opt or .lfp in the folder is used. In an LFP, only image records are checked; text, native and field records are counted in a note and skipped.
file
empty
Data file format
--format
Auto recognises a Concordance DAT (þ and ASCII 20), CSV, tab, pipe or semicolon. Choose Dat, Csv or Tab to force one. choice: Auto, Dat, Csv, Tab
Auto
ID column
--id-column
Column with each document's first Bates number or ID. Empty: BegBates, BegDoc, ProdBegBates, Control Number and similar, or else the first column.
The tool recognises the usual names (BegBates, BegDoc, ProdBegBates, Control Number, DocID and similar) and otherwise uses the first column. The notes say which column it used; if that is wrong, name the column here.
text
empty
End column
--end-column
Column with each document's last Bates number. Empty: EndBates, EndDoc, ProdEndBates and similar, if there is one.
Needed for the Bates range, overlap, gap and page count checks. If the data file has no end column, those checks are skipped.
text
empty
Path columns
--path-columns
Columns with file paths to check (e.g. NativePath, TextPath). Empty: columns named …Path or …Link, and any column whose values are paths to files in the production.
When empty, any column named …Path or …Link is checked, plus any other column whose values lead to files in the production. The notes list the path columns used.
list
empty
Count pages in image files
--count-pages
Open every PDF and TIFF the image load file refers to and check its page count against the load files.
Opens every PDF and TIFF the image file refers to and compares its real page count with the image file. This is the slowest part of the check on a large production; turn it off for a quick first pass.
yes/no
true
Report unreferenced files
--orphans
List files in the production folder that neither load file refers to.
Lists every file that neither load file refers to, such as stray PDFs or a second set of images. The load files themselves are not listed.
yes/no
true

Common settings

SettingWhat it doesType and default
Input required
--input
Folder (or single file) to read. It is opened read-only and never modified. folder
empty
Output required
--output
Folder for reports. Must not be inside the input folder. Each run gets its own sub-folder. folder
empty
Recurse
--recurse
Include sub-folders. yes/no
true
Extensions
--extensions
Only process these extensions (e.g. .pdf, .docx). Empty means the tool's default set. list
empty
Parallelism
--parallelism
Files processed at once. Use 1-2 for spinning disks or network shares. number
4

What you get

Each run creates its own folder inside the output folder, with the report check-load-file.csv, errors.csv and manifest.json (see Run folders and manifests).

Report columns

Check the result

Tips
  • A Path warning means the path in the load file does not lead to a file as written, but a file with the same name (and folder) was found elsewhere in the production. A platform importing the production may not find it.
  • Paths are tried from the production folder, the load file's folder and the folders above each, because many productions start their paths with the volume folder. LFP folders relative to their volume are handled too.
  • Bates gap is a warning, not an error: gaps can be legitimate (withheld documents), but confirm them with the producing party.
Watch out for
  • A path that points outside the production folder is reported as an error and the file is not looked for. Choose the folder that holds the whole production as Input.
  • If sub-folders are not included (recurse off), files in IMAGES, NATIVES and TEXT sub-folders are not seen and will be reported as missing.

From the command line

The command line is part of LitTechKit Pro. See Command line.

ltk run check-load-file --input "D:\Matter\Incoming\PROD001" --output "D:\Matter\Checks"

Related tools