How to fix a broken DAT load file

A DAT file that won’t import is almost always one of three problems: the delimiters are wrong, the encoding is wrong, or the columns don’t line up. Here’s how to find which one you have and fix it.

1. The delimiters

A Concordance-style DAT file doesn’t use commas. It uses three specific control characters:

Role Character ASCII
Field separator (invisible) 20
Text qualifier þ 254
New line inside a field (invisible) 174

The text qualifier wraps every value so that a comma or a line break inside a value doesn’t split it. If your importer is set to comma-delimited, it will either error out or load the entire row into a single field. Fix: set the importer to the Concordance delimiters above, or re-export the file so its delimiters match what the next tool expects.

In Begdocs, the þ qualifier shows as a pilcrow (¶) and the record end as ↵, so you can see the structure instead of guessing at invisible bytes.

2. The encoding

The same bytes mean different things in ANSI versus UTF-8. Two common symptoms:

  • Accented names turn to mojibake (é instead of é). The file is UTF-8 but is being read as ANSI, or the reverse.
  • The first column name is unrecognized. A UTF-8 byte order mark is stuck to the front of the header. Your field map can’t find BegBates because it’s really BegBates.

Fix: detect the real encoding before parsing, rather than assuming. Re-save as UTF-8 without a byte order mark (or as ANSI if that’s what the downstream tool wants).

3. The column counts

Open the file and count the delimited fields in the header row, then in a handful of data rows. If a data row has more or fewer fields than the header, a value somewhere contains a raw delimiter or line break that wasn’t wrapped in qualifiers. One bad cell shifts every field after it.

Fix: find the row where the count changes, re-wrap the offending value in text qualifiers, or replace the stray newline. Then re-export so every row is consistent.

Do it the quick way

Diagnosing invisible control characters by hand is slow and error-prone. Begdocs detects the delimiters and encoding for you, shows the fields in a grid with the qualifiers made visible, flags rows whose column count doesn’t match, and writes a clean DAT (plus OPT and LFP) back out - all on your own PC.

FAQ

Why does my whole DAT file load into one column?
The importing tool is using the wrong field delimiter. Concordance DAT uses ASCII 20, not a comma or tab. Point the importer at the right delimiter, or re-export the file with a delimiter the tool expects.
What is a byte order mark and why does it break my load file?
A byte order mark is a few hidden bytes some editors add when they save as UTF-8. It attaches to the first field name, so a column like 'BegBates' becomes an unrecognized name and the mapping fails. Save without the byte order mark.

Do this in Begdocs

A Windows desktop app for litigation support. Free 7-day trial, no card.

Download the free trial