How to get the BusinessConnect EDI protocol to ignore leading zeros and trailing blanks in X12 or EDIFACT documents?

How to get the BusinessConnect EDI protocol to ignore leading zeros and trailing blanks in X12 or EDIFACT documents?

book

Article ID: KB0093694

calendar_today

Updated On:

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

Description

Description:
When processing an X12 or EDIFACT transaction, a leading zero error occurs when the numeric value has leading zeros. For example, this GS06 segment has leading zeroes:

GS*IM*PYLE*ECOLAB0101*20140820*1005*00583*X*004010~

Is there a global setting to ignore this error?  Is there a similar setting for trailing blanks?

Issue/Introduction

How to get the BusinessConnect EDI protocol to ignore leading zeros and trailing blanks in X12 or EDIFACT documents?

Resolution

This can be corrected by modifying the default .apf file setting for the instream engine. This can be done as follows:

1). Go to the file $TIBCO_HOME/instream/<version number>/bin/$fsdeflt.apf.  Back it up, and then open it.

2).  Under [Analyzer Options], go to the entry:

CheckLeadingZeros=1

and change it to:

CheckLeadingZeros=0

For trailing blanks, change:

CheckTrailingBlanks=1

to 

CheckTrailingBlanks=0

to eliminate trailing blank checks.

3). Save the file and restart the engine.

Additional Information

BusinessConnect EDI Protocol X12 User's Guide, BusinessConnect EDI Protocol EDIFACT User's Guide.