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.
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
- A production has arrived from the other side or a vendor and you want to know it is complete before loading it into your review platform.
- A platform import has failed or dropped documents and you need to find the broken record or missing file.
- You have built your own production and want to check it before it goes out, for example after Create Load File.
How to run it
- Choose the production folder (the folder holding the load files, images, natives and text) as Input. Leave sub-folders included.
- Choose an Output folder outside the production.
- 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.
- Leave ID column, End column and Path columns empty unless the production uses unusual column names.
- Keep Count pages in image files and Report unreferenced files on for a full check.
- 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
| Setting | What it does | Type 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, TabAuto |
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/notrue |
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/notrue |
Common settings
| Setting | What it does | Type 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/notrue |
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. | number4 |
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).
check-load-file.csv: One row per problem. Severity is Error or Warning; Check names the test (for example Missing file, Duplicate ID, Bates overlap, Bates gap, Page count, Image pages, Not referenced); LoadFile and Line point to the record; DocId, Field and Value show what was read; Detail explains the problem.
Report columns
SeverityCheckLoadFileLineDocIdFieldValueDetail
Check the result
- Read the notes first: they show which data file, image file, ID column and path columns were used, the format and encoding the data file was read as, and the totals of errors and warnings.
- Sort the report by Severity and deal with the errors before the warnings.
- A Field count error usually means a stray delimiter, quote or line break in that record; every field after it is in the wrong column.
- If the notes mention the data file's encoding, look at accented and other non-English characters in the report.
- 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.
- 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 (
recurseoff), 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
- Create Load File: Creates a Concordance DAT and Opticon OPT load file for a production folder, grouping natives, images and text by Bates number.
- Convert Load File: Converts load files: DAT, CSV, tab and Excel data files into each other, and OPT into LFP or back. Can also keep, order and rename fields, rewrite paths, set the volume and change the encoding.
- Bates QC: Checks a Bates-numbered production for gaps, overlaps, duplicates and padding problems, and that every PDF page shows the right Bates number.