Reference·TRN Segment·TRN02
X12 275 Reference

TRN02 in X12 275: A Field Guide to Reference Identification

Jul 28, 2026 · 4 min read
← TRN01 TRN03 →

TRN02 is the actual trace number — the string a payer's system will search for when it tries to attach this document to an open request. Every other element in TRN exists to give this one value context.

Quick answer

TRN02 is the second element of the TRN segment — the reference identification value itself. In a 275 attachment transaction, it's typically populated with the original claim number the attachment supports or the identifier a payer assigned to a specific documentation request.

The elements that actually matter in practice

TRN01
Trace Type Code — sets the context for how TRN02 should be interpreted
TRN02
Reference Identification — the claim number or request ID the attachment is tied to

Example

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

A synthetic TRN02 value of CLM4471029, reused from the claim this attachment supports rather than generated independently. Synthetic data only.

Where this trips people up

Synthetic test generators built without a shared reference between the claim and attachment datasets often invent a fresh, random value for TRN02 on each 275 record instead of pulling the actual claim number. The transaction still passes basic structural checks, but any test that verifies whether the attachment can be located by its claim number fails, because there was never a real link to begin with — the same gap that causes unmatched attachments in production.

X12 275 TRN Segment Guide: Fields, Format, and Testing Gotchas
How to Write EDI Test Cases That Actually Catch Go-Live Failures
How to Validate X12 EDI Files Before Payer Submission
Generate trace numbers that actually resolve
Synthibase ties each synthetic 275's TRN02 value directly to the claim it belongs to, so reconciliation logic gets tested against attachments that trace back to something real instead of arbitrary strings.
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.