Is there an EDI x12 segment that has no character limit? We often use the MSG segment for open text fields but this is capped at 256 characters, so we’re looking for an alternative that can handle 500+ characters.
Is there an EDI Segment that can contain more than 256 characters?
473 Views Asked by C.Moore At
2
The short answer
The
MTXText segment allows you to send messages of up to 4096 characters long, which is the longest available in X12. You can’t just swap out anMSGsegment for anMTXsegment, though. You can only useMTXif it’s included in the transaction set, and that depends on which X12 'release' (version) you're using.For the
005010release (one of the more popular ones), here are the transaction sets thatMTXappears in:105Business Entity Filings113Election Campaign and Lobbyist Reporting150Tax Rate Notification155Business Credit Report179Environmental Compliance Reporting194Grant or Assistance Application251Pricing Support274Healthcare Provider Information284Commercial Vehicle Safety Reports500Medical Event Reporting620Excavation Communication625Well Information650Maintenance Service Order805Contract Pricing Proposal806Project Schedule Reporting814General Request, Response or Confirmation832Price/Sales Catalog836Procurement Notices840Request for Quotation843Response to Request for Quotation850Purchase Order855Purchase Order Acknowledgment860Purchase Order Change Request - Buyer Initiated865Purchase Order Change Acknowledgment/Request - Seller InitiatedSome additional clarification
MSGsegment).MSG01, it points to data element[933][1].933– the one you're currently using – actually has a character limit of 264 characters (more than 256 characters, but not by much). Note: the link above is to the005010X12 release, but I checked backed to003010and up to008030and it seems to be 264 characters all the way through.Now, back to your original question: is there a data element that allows for a larger character payload?
The answer is that there are 8 data elements that accept a payload larger than 264 characters.
Two of them are binary data types, which we can likely eliminate off the bat:
The rest are strings, which is promising:
And, last but not least:
Looks like a winner!
Note that element 1551 appears in only one segment: MTX, which was introduced in the
003060X12 release. And in the initial003060release, it was only included in one X12 Transaction Set:194 Grant or Assistance Application(which makes sense – a longer field was needed for grant applications).It seems that as new releases were developed, the
MTXsegment made its way into more and more transaction sets – likely for exactly the reason you're asking. In003070, it was included in 5 transaction sets; in004010, 15; in005010, 24, and so on.The
MTXsegment uses element1551in bothMTX02andMTX03, so you can get double the length by using both of them. Note that there's a 'relational condition':If MTX-03 is present, then MTX-02 is required(in other words, you can't useMTX03if you don't useMTX02first).And depending on the transaction set, the
MTXsegment may be able to be repeated as well.Long story short: if the
MTXsegment is in the transaction set / release you're using, you're likely in luck.Hope this helps.