Production

Relativity Export Formatter

Turns a Relativity export (documents plus a CSV or DAT index) into a hand-over set: a hyperlinked Excel index and a single Documents folder holding a verified copy of every document.

PRO Command line: relativity-formatter 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.

A Relativity export usually arrives as an index file and documents scattered through numbered sub-folders, which is awkward for a client or counsel to use. This tool reads the index, copies every document it refers to into one flat Documents folder, and writes Index.xlsx with every column of the index kept as text. In the workbook, the path column points to the new copy and the link column (usually Control Number or Bates Begin) is a hyperlink that opens it.

Each copy is verified against the original by MD5, and keeps the original's dates. Rows whose document cannot be found are kept in the workbook with their original path and no link. The export itself is not changed.

Use it when

How to run it

  1. Choose the export folder (the folder holding the index and the exported documents) as Input.
  2. Choose an Output folder outside it.
  3. Leave Index file empty if the export folder's top level holds just one .csv or .dat; otherwise choose the index.
  4. Leave Index format, Path column and Link column at their defaults for a first run.
  5. Click Run and read the notes, which name the path and link columns used.
  6. Click Open report and look for any row not marked Copied.
  7. Hand over the run's files folder, which holds Index.xlsx and Documents side by side.

Settings

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

Settings

SettingWhat it doesType and default
Index file
--index-file
The export's index (.csv or .dat). Empty: the single .csv or .dat in the export folder's top level is used.
When empty, the tool uses the single .csv or .dat at the top level of the export folder. If there are none or several, it stops and asks you to choose.
file
empty
Index format
--format
Auto (default) recognises a Concordance DAT (þ quotes, \x14 delimiter) and otherwise reads a comma-separated CSV. Choose Csv or Dat to force one.
Auto reads the index as a Concordance DAT if it uses the ASCII 20 delimiter, and otherwise as a comma-separated CSV. Choose Csv or Dat only if Auto gets it wrong.
choice: Auto, Csv, Dat
Auto
Path column
--path-column
Column holding each document's path in the export (e.g. FILE_PATH or Native File). Empty: the column whose values point to files in the export folder is found automatically.
When empty, the tool finds the column whose values point to files in the export, preferring usual names such as FILE_PATH or Native File. The notes say which column it chose and how many rows lead to files. Name the column here to use another, for example a PDF or image path column.
text
empty
Link column
--link-column
Column that becomes the hyperlink to the document. Empty: the first column (usually Control Number or Bates Begin).
When empty, the first column becomes the link, which in most exports is Control Number or Bates Begin.
text
empty

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 relativity-formatter.csv, errors.csv and manifest.json (see Run folders and manifests).

Report columns

Check the result

Tips
  • When several index rows refer to the same file, it is copied once; the later rows say "Same document as index row …".
  • Paths in the index are read relative to the export folder and to the index's own folder, so both common export layouts work.
  • Very long values (such as extracted text in a column) are cut to Excel's cell limit in Index.xlsx; a note gives the count. The original index is unchanged.
Watch out for
  • Keep Index.xlsx and the Documents folder together: the links are relative and stop working if they are separated.
  • Documents referred to by a path outside the export folder are never copied. Their rows stay in the workbook without a link.
  • An index with more rows or columns than an Excel sheet can hold stops the run before anything is copied. Split the export into smaller sets.

From the command line

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

ltk run relativity-formatter --input "D:\Matter\Exports\Export_20261120" --output "D:\Matter\Handover" --link-column "Control Number"

Related tools