IBM Support

"Code: 103 Illegal Repetition Separator", "Code: 109 Invalid Repeating Element Separator" or "java.lang.ArrayIndexOut "

Troubleshooting


Problem

When the caret (^) symbol appears as the element separator, sub-element separator, or segment terminator in inbound X12 data for versions 004020 and above, SI throws the error "Code: 103 Illegal Repetition Separator" or "Code: 109 Invalid Repeating Element Separator"

Symptom

Background Information:
In X12 versions 4010 and earlier, ISA11 contains the Interchange Control Standards Identifier (usually the letter 'U'.) X12 versions 004010 and earlier predate the introduction of the Repetition Separator (also called the Repeating Element Separator.).

ISA*00*          *00*          *ZZ*GlobalChips    *ZZ*Acme           *080630*0350*U*00401*110000001*0*P*\~



In X12 versions 4020 and later, ISA11 contains the Repetition Separator, which defines a delimiter and not a data element. This element specifies the delimiter used to separate repeated occurrences of a simple data element or a composite data structure. The value must be distinct; the same value should not be used as the element separator, component element separator, or segment terminator.
In this example, the ISA11 holds ^ as the Repetition Separator:

ISA*00*          *00*          *ZZ*ACME           *ZZ*GlobalChips    *081217*0634*^*00404*100000001*0*P*\~

Errors which might occur:

"Code: 103 Illegal Repetition Separator"
This error occurs because SI ignored the the repeating element separator defined in the data and passed a default value of a caret ( ^) to the translator .If the caret was already in use as one of the other delimiters, SI would error.

"Code: 109 Invalid Repeating Element Separator"
This occurs when ISA11 contains a 'U' and a caret appears as any other delimiter
Similar to the "Code 103" except the 109 error is generated when also using the "U" in ISA11.

"java.lang.ArrayIndexOutOfBoundsException"

This occurs when the sub element delimiter is a ^ and the segments are newline terminated.

Error Message

"Code: 103 Illegal Repetition Separator"

"Code: 109 Invalid Repeating Element Separator"

"java.lang.ArrayIndexOutOfBoundsException"

[{"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Mapping and Translation","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"5.2;5.1","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

NFX10286

Document Information

Modified date:
04 February 2020

UID

swg21557957