EDI validation error

I am getting following error message 

Error: 1 (Field level error)
SegmentID: CTT
Position in TS: 123536
Data Element ID: CTT01
Position in Segment: 1
Data Value: 061766
6: Invalid character in data element

when I check data my CTT looks like  CTT~061766

I tried to set allow leading and trailing space and zero under validation in trading partner configuration. It is perfectly works in my local machine.

When I do same setting on my test environment , it doesn't work and give above error. 

Please suggest me what could be wrong there.

February 3rd, 2015 7:43pm

HI dnyanbhar,

You need provide more information about your project before we give precise troubleshooting.

Free Windows Admin Tool Kit Click here and download it now
February 5th, 2015 2:20am

Can you show some more lines from your X12 sample?

Usually an X12 line appears like this CTT*061766~ and not CTT~061766

Also could you try manually to remove the leading zero and verify whether this is what is causing the error?

Morten la Cour

February 5th, 2015 2:58am

Can you share the document type and full segment?
Free Windows Admin Tool Kit Click here and download it now
February 5th, 2015 6:26am

sure

document type is EDI x12 846

and some sample segments looks like this. It works when I remove 0 and make change like CTT~61766

LIN~1~VP~99997Y~MG~46C7426-AXA
QTY~33~0
LIN~1~VP~99998Y~MG~46C7427-AXA
QTY~33~0
LIN~1~VP~99999Y~MG~46C7428-AXA
QTY~33~0
CTT~061766
SE~123537~67593
GE~1~155
IEA~1~300000155

February 5th, 2015 4:41pm

1. Did you restart host instance in Test Env after making the change?

2. There is a similar setting in EDI receive pipeline disassembler settings also, try to put allow leading zeroes there also and see if that helps.

It has happened to me in past.

Free Windows Admin Tool Kit Click here and download it now
February 5th, 2015 8:37pm

I restart host as well as restart server too.

I can not see any such property in pipeline. Can you say which what is property name,

I can see AllowTrailingDelimiters, nothing else related to leading or trailing

February 6th, 2015 11:41am

There are no such property anywhere else than on the Agreement!

Can you do one more test

- Submit the document that is working (without the leading zero)

- Have a PassThru SendPort subscribe to it, and set this Port in a Stopped state.

- Examine the Context of the suspended message, and verify that the Agreement where "Allow leading and trailing zeros" are in fact recognized as the Agreement used for this message.

Morten la Cour

Free Windows Admin Tool Kit Click here and download it now
February 7th, 2015 2:04am

There are no such property anywhere else than on the Agreement!

Can you do one more test

- Submit the document that is working (without the leading zero)

- Have a PassThru SendPort subscribe to it, and set this Port in a Stopped state.

- Examine the Context of the suspended message, and verify that the Agreement where "Allow leading and trailing zeros" are in fact recognized as the Agreement used for this message.

Morten la Cour

February 7th, 2015 10:00am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics