How to allow leading zeros in HL01 segment of EDI-X12 documents

How to allow leading zeros in HL01 segment of EDI-X12 documents

book

Article ID: KB0086867

calendar_today

Updated On:

Products Versions
TIBCO BusinessConnect EDI Protocol Powered by Instream -
Not Applicable -

Description

Resolution:
Some EDI-X12 document used by trading partners have leading zeros in the HL segments, which BC EDI nor SpecBuilder can not normally process.  To enable the processing of these documents, modify these files:

In SpecBuilder:

C:\Program Files\Edifecs\SpecBuilder\Config\XEngine\config\action\actions-x12.xml

in EDI 5.2/5.2.1/5.3

$BC_HOME/protocols/edi/tpcl/config/action/actions-x12.xml

as follows:

1.  Open the file, and look for this snippet of XML at the top of the file:

    &ltNode Key="Transaction">
        &ltProperty Name="HL.nStartValue"&gt1</Property>
        &ltProperty Name="HL.nIncrementValue"&gt1</Property>
    </Node>

2.  Change it to look like this:

    &ltNode Key="Transaction">
        &ltProperty Name="HL.nStartValue"&gt1n</Property>          <!-- change "1" to "1n" -->
        &ltProperty Name="HL.nIncrementValue"&gt1</Property>
    </Node>

3.  Save and restart BC or SpecBuilder.

Issue/Introduction

How to allow leading zeros in HL01 segment of EDI-X12 documents