question

Royce-6529 avatar image
0 Votes"
Royce-6529 asked Royce-6529 commented

EDI document is failing with error, how to resolve?

Hi, I am getting below error when sending EDI document. how to resolve the second error without manual work?


Error: 5 (Field level error)
SegmentID: NTE
Position in TS: 42
Data Element ID: NTE01
Position in Segment: 1
Data Value: SHP
7: Invalid code value

Error: 6 (Field level error)
SegmentID: NTE
Position in TS: 42
Data Element ID: NTE02
Position in Segment: 2
Data Value:
6: Leading or trailing space found

Thanks in advance.

biztalk-server
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

KamleshKumar avatar image
1 Vote"
KamleshKumar answered Royce-6529 commented

Hi There,

Thank you for asking this question on the Microsoft Q&A Platform.

First error seems a data issue, you are passing value 'SHP' for NTE01, but i think it's expecting something else. Check the expected value.

For second error, seems you are getting leading or trailing space or zeroes in NTE02 which is causing this validation error. You can resolve it by adding the configuration in agreement.

Open Agreement => Go to Validation => Check the 'Allow leading and trailing zeroes and spaces' if it's unchecked.

201540-image.png

Hopefully it'll resolve your issue. Take an action based on your environment.

Regards,
Kamlesh Kumar
BizTalk Techie

If this answer solved your problem, please click the Verify Answer button (found below the answer) to help other users who have the same question.



image.png (16.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@KamleshKumar Thank you very much for your support its working now.

0 Votes 0 ·