Reference·X12 275·TRN
X12 275 Reference

X12 275 TRN Segment Guide: Fields, Format, and Testing Gotchas

Jul 28, 2026 · 5 min read

An attachment with no trace number is just a file floating next to a claim system, not connected to it. TRN is the segment that closes that gap, and it's the one place in a 275 where a single wrong character can make an otherwise perfect attachment unusable.

Quick answer

TRN (Trace Number) is the segment in an X12 275 that links the attachment back to the specific claim or documentation request it supports. It states what kind of trace this is, carries the actual reference value — typically the claim number or the payer's request identifier — and identifies the company that originated that reference, so the receiving system can reconcile the attachment against the right record instead of treating it as unrelated correspondence.

The elements that actually matter in practice

TRN01 →
Trace Type Code — states what kind of trace value TRN02 holds — see the dedicated page below
TRN02 →
Reference Identification — the actual trace number, usually the claim number or the payer's attachment request ID — see the dedicated page below
TRN03 →
Originating Company Identifier — identifies which company assigned the trace number, so the same reference isn't misread across two senders — see the dedicated page below

Example

Synthetic example Generated by Synthibase
TRN*2*CLM4471029*9887001122

A synthetic TRN tracing this attachment back to claim number CLM4471029, originated by company identifier 9887001122. Synthetic data only.

Where this trips people up

It's common for synthetic 275 generators to invent a fresh, unrelated reference number for TRN02 instead of reusing the actual claim number or request ID the attachment is supposed to answer. The segment is syntactically valid either way, so the file passes structural validation, but a payer system trying to match the attachment to an open request finds nothing — the attachment sits unmatched until someone manually reconciles it, defeating the entire purpose of sending it electronically.

How to Write EDI Test Cases That Actually Catch Go-Live Failures
How to Validate X12 EDI Files Before Payer Submission
Generate 275 attachments that actually trace back
Synthibase links every synthetic 275 attachment's TRN segment to a real, generated claim number, so your reconciliation logic gets tested against attachments that actually match — not orphaned files with random reference numbers.
Start free trial →
This page is written independently by Synthibase for testing and informational purposes. It is not an official publication of HL7 International or X12/Washington Publishing Company, and is not a substitute for reviewing the official standard or your trading partner's companion guide. See our Terms of Service for full legal terms.