How to Create a LEDES 1998B Invoice (and Check It Before You Upload)

Top takeaways

  • A LEDES 1998B invoice is the pipe-delimited text format most carriers require for electronic invoice submission
  • A valid LEDES file contains a header row followed by line-item rows with exactly 29 fields per row
  • Pre-submission validation catches format errors, missing codes and block billing before the portal rejects the file
  • Checking your invoice against carrier guidelines before upload reduces rejection cycles and payment delays
  • Common errors include wrong field counts, invalid UTBMS codes and narratives that combine multiple activities

Introduction

Why the LEDES 1998B Invoice Matters for Electronic Billing

Most insurance carriers and corporate clients mandate the LEDES 1998B invoice format for outside counsel invoices submitted through e-billing portals. The format is a plain-text, pipe-delimited structure published by the LEDES Oversight Committee. Each line item—whether a time entry or an expense—occupies one row with 29 fields in a fixed sequence. When the file structure is wrong or a required field is missing, the portal rejects the upload outright, and the invoice goes unpaid until you correct it and resubmit.

Creating a LEDES 1998B invoice means exporting your time and expense records into this exact structure, populating every mandatory field, applying the correct UTBMS task and activity codes, and writing narratives that meet the carrier's billing guidelines. Once the file is built, checking it before upload catches the format mistakes, code violations and narrative problems that trigger rejections. This article walks through the steps to create a valid LEDES 1998B invoice and the checks that confirm it will clear the portal's validation on the first attempt. For a broader view of best practices across the full billing cycle, see How to Create a LEDES Invoice 1998B: Best Practices.

What Does a LEDES 1998B Invoice Look Like?

A LEDES 1998B invoice is a text document with a .txt or .ledes extension. The first row is the header, listing all 29 field names separated by pipe characters. Every row after that is one line item: a fee entry or an expense entry. Each field is separated by a pipe, and the order never changes. Field 1 is always the invoice number; field 2 is the client identifier; field 29 is the line-item adjustment amount. If a field has no value, you leave it empty, but the pipes that mark its position remain.

The format is strict. Extra fields, missing pipes, line breaks inside a narrative, or characters the portal cannot parse will cause a validation failure. Carriers rely on this rigid structure because it allows automated ingestion, code-level bill review and batch reporting across thousands of invoices. When the structure is correct, the portal reads the file, loads the line items into the review queue, and applies the carrier's outside counsel guidelines to each entry. When the structure is broken, the file bounces before any human reviewer sees it.

Problem Statement

A single misformatted field in a LEDES 1998B invoice is enough to trigger a portal rejection, and the error message rarely tells you which line item broke the rule. Most rejections trace to null values in required fields, date formats that do not match YYYYMMDD, or invoice totals that do not reconcile to the sum of line-item amounts within the tolerance the receiving system expects.

What Are the Common Format Errors That Cause Rejection?

The LEDES 1998B specification marks fifteen fields as required, and a null value in any of them is an error. INVOICE_DATE, INVOICE_NUMBER, CLIENT_ID, LAW_FIRM_MATTER_ID, INVOICE_TOTAL, BILLING_START_DATE, BILLING_END_DATE, LINE_ITEM_NUMBER and LINE_ITEM_NUMBER_OF_UNITS must all carry non-null values. A blank INVOICE_DATE or a zero in LINE_ITEM_NUMBER_OF_UNITS (except for invoice-level adjustments) will fail validation before the file reaches a human reviewer.

Date fields present a second common failure point. INVOICE_DATE, BILLING_START_DATE, BILLING_END_DATE and LINE_ITEM_DATE must be formatted as eight-character strings in YYYYMMDD order. A date entered as MM/DD/YYYY or DD-MMM-YYYY is not LEDES-compliant and will be read as a malformed string.

Compliance Gaps Beyond Format

Format compliance is necessary but not sufficient. A file that parses cleanly can still be reduced or rejected if the narrative detail, task codes, or billing increments violate the carrier's outside counsel guidelines. A line item with a valid LEDES structure but a narrative reading "research and draft motion, 4.2" is block billing under most panel guidelines, and the reduction happens after the file clears the portal's format gate.

Multiple invoices in a single LEDES file are permitted by the specification, but some e-billing portals reject multi-invoice files or process only the first INVOICE_NUMBER and discard the rest. The specification allows multiple LAW_FIRM_MATTER_IDs in one invoice if the receiving system accepts it; in practice, many do not, and the firm learns this only after submission.

The Validation Gap

Most time-and-billing systems export a LEDES file on demand, but few validate the output against the full specification before the file leaves the firm. The export routine may populate required fields with default values that are technically non-null but semantically wrong—CLIENT_ID set to "UNKNOWN" or LINE_ITEM_DATE copied from INVOICE_DATE when the work was performed weeks earlier. These entries pass a null check but fail a substance review, and the carrier's bill reviewer flags them as unsupported or inaccurate.

How Do You Create a LEDES 1998B Invoice?

An infographic illustrating the process of creating a LEDES 1998B invoice
An infographic illustrating the process of creating a LEDES 1998B invoice
Step-by-step workflow showing LEDES 1998B invoice field population and validation checks
Step-by-step workflow showing LEDES 1998B invoice field population and validation checks

Creating a LEDES 1998B invoice requires following a fixed format that e-billing portals can parse and validate. The format is a pipe-delimited text file where each line represents one fee or expense entry, and each field appears in a prescribed order. Missing a field, reversing two columns, or using a comma instead of a pipe causes the portal to reject the file before any human reviewer sees it.

Understand the LEDES 1998B Invoice File Structure

A LEDES 1998B invoice is a plain-text file, typically with a .txt or .ledes extension. The first line is a header row that names each field. Every subsequent line is a billing line item. Fields are separated by the pipe character |, and each line ends with a carriage return and line feed. The specification defines the exact order and meaning of each field, and portals expect that order without variation.

The header row must list all field names in sequence. Common required fields include INVOICE_DATE, INVOICE_NUMBER, CLIENT_ID, LAW_FIRM_MATTER_ID, LINE_ITEM_NUMBER, EXP/FEE/INV_ADJ_TYPE, LINE_ITEM_DATE, LINE_ITEM_NUMBER_OF_UNITS, LINE_ITEM_ADJUSTMENT_AMOUNT, LINE_ITEM_TOTAL, TIMEKEEPER_ID, LINE_ITEM_TASK_CODE, LINE_ITEM_ACTIVITY_CODE, and LINE_ITEM_DESCRIPTION. Not every portal requires every optional field, but the ones it does require must appear in the positions the specification assigns them.

Prepare Your Billing Data in Tabular Form

Before you generate the pipe-delimited file, organize your billing data in a spreadsheet or database table with one row per line item. Each column corresponds to a LEDES field. Verify that every timekeeper entry includes a date, a task code, an activity code, a unit count, a rate, and a narrative description. Expense entries require an expense code instead of task and activity codes, and they carry a total amount rather than units times rate.

Check that your timekeepers have been assigned unique TIMEKEEPER_ID values that match the IDs you submitted when the matter opened. Confirm that your CLIENT_ID and LAW_FIRM_MATTER_ID match the values the carrier assigned in the engagement letter or the portal matter setup. A mismatch in these identifiers causes the portal to route the invoice to the wrong matter or reject it outright.

For a detailed comparison of LEDES formats and which carriers prefer which version, see LEDES 1998B vs. 1998BI vs. LEDES XML: Which Format Do Carriers Want?.

Step 1

Assign UTBMS codes to every line item

Every fee entry must carry a UTBMS task code and activity code. Task codes describe the phase of the case—discovery, motion practice, trial. Activity codes describe the specific action—legal research, drafting, telephone conference. The codes are alphanumeric: L120 for discovery, A101 for legal research. Portals validate these codes against the published UTBMS code sets. An invalid code triggers an immediate rejection.

Step 2

Set the billing increment and round units correctly

Most carrier guidelines specify tenth-of-an-hour increments. A tenth of an hour is six minutes. If your time entry took 0.15 hours, the portal will accept it. If you enter 0.17 hours and the guideline requires tenths, the portal may reject the line or the reviewer may reduce it to 0.1. Check the outside counsel guidelines for the increment rule, and round every LINE_ITEM_NUMBER_OF_UNITS value to that increment before you export the file.

Step 3

Write narrative descriptions that meet guideline standards

The LINE_ITEM_DESCRIPTION field holds the narrative that explains what the timekeeper did. Guidelines commonly prohibit block billing—combining multiple tasks in one entry—and require enough detail that a reviewer can determine whether the work was necessary and reasonable. A description reading "research and draft motion, 4.2" is block billing. Two separate entries, one reading "legal research regarding statute of limitations defense, 2.1" and another reading "draft motion for summary judgment, 2.1," comply with the prohibition.

Step 4

Export the data to a pipe-delimited text file

Once your spreadsheet is complete, export it as a pipe-delimited text file. Most spreadsheet applications offer a "Save As" or "Export" option that lets you choose a delimiter. Select the pipe character | as the delimiter, and save the file with a .txt extension. Open the file in a plain-text editor to confirm that fields are separated by pipes, that no commas or tabs appear as delimiters, and that the header row matches the field order the specification requires.

Step 5

Validate required fields and data types

Before you upload, verify that every required field contains a value. INVOICE_DATE and LINE_ITEM_DATE must be in the date format the portal expects, commonly YYYYMMDD. LINE_ITEM_TOTAL must be numeric, with no currency symbols or commas. EXP/FEE/INV_ADJ_TYPE must contain F for fee entries, E for expenses, or another code the specification defines. A blank required field or a text string in a numeric field causes the portal to reject the file at the validation stage.

Check the File Against a Validation Tool

Many e-billing portals offer a pre-submission validation tool that reads your LEDES 1998B invoice file and reports format errors before you submit the invoice. Run your file through the validator. The tool will flag missing fields, invalid codes, incorrect data types, and delimiter problems. Fix each error the validator identifies, then run the file through again until it passes without warnings.

If the portal does not offer a validator, open the file in a text editor and manually verify the field count on several lines. Count the pipe characters; the number of pipes plus one equals the number of fields. If the header row has 30 fields, every data row must have 30 fields. A row with 29 or 31 fields will cause the parser to fail.

Name the File According to Portal Requirements

Some portals require a specific file-naming convention: ClientID_MatterID_InvoiceNumber.txt or InvoiceNumber_YYYYMMDD.ledes. Check the portal's submission instructions or the carrier's outside counsel guidelines for the naming rule. An incorrectly named file may upload successfully but fail to attach to the correct matter, leaving the invoice in limbo until someone notices and renames it manually.

What Are the Best Practices for Ensuring Accuracy?

A checklist graphic showing best practices for verifying a LEDES 1998B invoice
A checklist graphic showing best practices for verifying a LEDES 1998B invoice

A single null value in a required field is enough to trigger a validation error when you upload the file. The LEDES 1998B specification treats empty strings in required fields as errors, not warnings. Before you submit a LEDES 1998B invoice, verify that every required field contains a value and that the values match the data types the specification defines.

Check Required Fields for Null Values

The specification marks certain fields as required. INVOICE_DATE, INVOICE_NUMBER, CLIENT_ID, LAW_FIRM_MATTER_ID, INVOICE_TOTAL, BILLING_START_DATE, BILLING_END_DATE, LINE_ITEM_NUMBER and LINE_ITEM_NUMBER_OF_UNITS all fall into this category. A null value — represented as an empty string "" — in any of these fields produces an error. Open the file in a text editor or spreadsheet application and scan each required column for blank cells. If you find one, fill it with the correct value before you export the final pipe-delimited text file.

Verify Arithmetic on INVOICE_TOTAL and LINE_ITEM_TOTAL

INVOICE_TOTAL must equal the sum of all LINE_ITEM_TOTAL values for that invoice. The specification acknowledges that rounding errors can occur when a billing system calculates individual line totals, so receiving applications typically allow a small variance — often one percent — before flagging a mismatch. Calculate the sum of your line-item totals manually or with a spreadsheet formula, compare it to the INVOICE_TOTAL you recorded in field 5, and confirm that any difference falls within the acceptable range. If the discrepancy exceeds one percent, correct the arithmetic before you submit the file. The sending and receiving parties should agree in advance on the acceptable rounding threshold; if no agreement exists, aim for exact equality or a variance well below one percent.

If the INVOICE_TOTAL is not within a reasonable variance of the sum of the LINE_ITEM_TOTALs, there is clearly an error that must be resolved by the sending law firm before payment.
LEDES 1998B Field Specification, field 5 INVOICE_TOTAL

Confirm Date Formats and Consistency

Every date field in the LEDES 1998B invoice format uses the YYYYMMDD pattern. INVOICE_DATE, BILLING_START_DATE, BILLING_END_DATE and LINE_ITEM_DATE must all follow this eight-character structure with no hyphens, slashes or spaces. A date entered as "2025-01-15" or "01/15/2025" will fail validation. Additionally, verify that BILLING_END_DATE falls on or after BILLING_START_DATE, and that each LINE_ITEM_DATE falls within the billing period defined by those two fields. Portals that perform semantic validation will reject invoices where line-item dates sit outside the stated billing range.

Review UTBMS Codes and Narrative Detail

Most carriers require that fee line items carry valid UTBMS task and activity codes, and that the narrative description provides enough detail to pass bill review. Run a separate check on your UTBMS codes: confirm that each task code exists in the published task-code set, that the activity code is valid for that task, and that you have not combined multiple discrete activities into a single line item. Block billing — listing several different tasks in one narrative under a single code — is prohibited by many panel guidelines and will trigger a reduction even if the file itself validates successfully. For guidance on selecting the correct code for each entry, see UTBMS Task Codes: How to Pick the Right One for Each Entry.

Use a Validation Tool Before Upload

Many e-billing platforms provide a pre-upload validator that checks file structure, data types, required fields and basic arithmetic. Run your LEDES 1998B invoice through that tool before you submit the invoice formally. If the platform does not offer a validator, open the pipe-delimited text file in a plain-text editor and visually inspect the first few lines: confirm that each line contains the correct number of pipe characters, that no stray line breaks appear within a field, and that numeric fields contain only digits and decimal points. A malformed file will be rejected immediately, wasting the time you spent preparing it.

Conclusion

A LEDES 1998B invoice is not a suggestion — it is a structured data file with mandatory fields, defined data types, and validation rules enforced at the portal gate. The difference between an invoice that uploads and one that rejects is rarely the substance of the work; it is the presence of a null value in a required field, a misformatted date, or a LINE_ITEM_TOTAL that does not match the arithmetic. The LEDES 1998B Field Specification treats these as errors, and e-billing systems treat errors as grounds for rejection.

Creating the file correctly the first time saves the round-trip. Checking it before submission — field by field, line by line — catches the null INVOICE_DATE, the missing CLIENT_ID, the INVOICE_TOTAL that drifts outside the one-percent variance the specification allows. These are not edge cases. They are the ordinary mechanics of a format designed to move billing data between systems that do not forgive ambiguity.

The format is stable. The rules are published. The rejection codes are predictable. What separates a clean submission from a rejected one is the discipline to verify that every required field carries a valid, non-null value and that every currency calculation reconciles within the tolerance the standard permits. For step-by-step guidance on validating your file before submission, see How to Create a LEDES Invoice 1998B and Check Accuracy.

The invoice you check is the invoice that clears.

Learn how to create a LEDES 1998B invoice, validate required fields, and check it before uploading to avoid portal rejections and payment delays.

Table of Contents

  1. Introduction — To introduce the importance of creating a LEDES 1998B invoice and the steps involved in the process.
  2. Problem Statement — To outline common challenges faced when creating a LEDES 1998B invoice, such as format issues and compliance with billing guidelines.
  3. How Do You Create a LEDES 1998B Invoice? — To provide a detailed, step-by-step guide on how to create a LEDES 1998B invoice correctly, ensuring compliance with outside counsel guidelines.
  4. What Are the Best Practices for Ensuring Accuracy? — To share best practices and tips for verifying the accuracy of a LEDES 1998B invoice before submission, including common pitfalls to avoid.
  5. Conclusion — To summarize the importance of properly creating and checking a LEDES 1998B invoice for successful billing.
  6. Table of Contents

FAQ

Q: What is a LEDES 1998B invoice?A: A LEDES 1998B invoice is a pipe-delimited text file that contains billing line items in a standardized 29-field format required by most insurance carriers and corporate clients for electronic invoice submission.

Q: Why do portals reject LEDES 1998B invoices?A: Portals reject LEDES 1998B invoices when required fields contain null values, dates are not in YYYYMMDD format, or the INVOICE_TOTAL does not reconcile with the sum of LINE_ITEM_TOTAL values within the acceptable variance.

Q: How do I validate a LEDES 1998B invoice before uploading?A: Use the e-billing portal's pre-submission validation tool to check file structure, required fields, data types, and arithmetic. If no validator is available, manually inspect the file in a text editor to verify field counts and delimiter consistency.

Q: What are the most common errors in a LEDES 1998B invoice?A: Common errors include blank required fields, incorrect date formats, invalid UTBMS codes, block billing in narratives, and invoice totals that do not match the sum of line-item totals.