# About Inbound Processing Of Edi With Tn

**URL:** <https://techcommunity.softwareag.com/t/about-inbound-processing-of-edi-with-tn/109286>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [May 30, 2007, 10:07am UTC](https://techcommunity.softwareag.com/t/about-inbound-processing-of-edi-with-tn/109286 "2007-05-30T10:07:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anil.h.kumar](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@Anil.h.kumar](https://techcommunity.softwareag.com/u/Anil.h.kumar)\
**Post date:** [May 30, 2007, 10:07am UTC](https://techcommunity.softwareag.com/t/about-inbound-processing-of-edi-with-tn/109286/1 "2007-05-30T10:07:08Z")

</div>

Hi Techi’s,

Can anyone please help me out, i am new to webMethods and i am trying to Perform the Inbound processing of EDI 850(PO), and the problem what i am facing is when i try to send the EDIDoc850 from the EDI HOme page i.e thru Submit Test EDI Data option i am getting this error

$contentTypeapplication/x-www-form-urlencoded  
hasErrorpathNameerrorCodeerrorMessageInvalid data - [Unexpected segment: 00]InvalidDataInvalid data - [Unexpected segment: 00]

so please tell me what migth be the problem… and is there any other way to send the EDI doc to TN.

I am using EDI 4010 version and 850 transaction and X12 is the standard, and this is sample data

ISA_00_ _00_ _01_123456789 _01_987654321 _030627_1304_U_00401_1_0_P_\>  
GS_PO_123456789_987654321_20030627_1304_1_X_004010  
ST_850_01403001  
BEG_00_SA_548177\*\*20030627  
REF_AN_547794  
PER_BD_JOHNJONES_TE_5552225555  
FOB_PB  
DTM_002_20030705  
DTM_118_20030704  
PKG_**01  
TD5**HOUR CR/T  
N9_AH_548177  
MSG_THIS PURCHASE ORDER IS SUBJECT TO THE SAME TERMS AND  
MSG_CONDITIONS AS SAFEWAY PURCHASE ORDER FORM 1030  
MSG_PICKUP NO. E450562  
N1_ST_SAFEWAY INC_9_0091372092527  
N2_Tracy Produce  
N3_16900 West Schulte Road  
N4_Tracy_CA_95376  
N1_BT_SAFEWAY INC_9_0091372091700  
N2_NATIONAL SERVICES CENTER  
N3_P.O. BOX 29093  
N4_PHOENIX_AZ_85038  
N1_VN_BEST SUPPLIER INC._9_1234567890000  
N3_P.O. BOX 11111  
N4_LOS ALAMITOS_CA_90001  
PO1 **10_CA_12.5** UA_042040304101_IN_20403041_VN_22222  
CTP_RS_FCP_12.5  
PID_F_08_ITEM DESCRIPTION 1/10LB  
SACAB280_ **20.00** _2.00__02  
CTT1\*\*120LB  
SE_30_01403001  
GE_1_1  
IEA_1\*1

Thnaks in advance

-aNiL

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [May 30, 2007, 7:50pm UTC](https://techcommunity.softwareag.com/t/about-inbound-processing-of-edi-with-tn/109286/2 "2007-05-30T19:50:05Z")

</div>

Anil,

“so please tell me what migth be the problem… and is there any other way to send the EDI doc to TN.”

Thru flow you can use thses steps for sending EDI doc to TN  
Use map step set edidata variable(insert edicontent in this var called edidata)  
Invoke pub.tn.doc.xml:routeXML(map edidata variable to node input)–this will route directly to TN.

Also before submitting to TN make sure the segment/record delimiters in the edidata are correct you can check via any hex tool like ultraedit or EDIFECSSpecbuilder tool or use envelopeProcess or convertToValues WmEDI wM services for validation and fix the validation/compliance issues if any before routing it to TN to make it work.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Anil.h.kumar](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@Anil.h.kumar](https://techcommunity.softwareag.com/u/Anil.h.kumar)\
**Post date:** [May 31, 2007, 6:29pm UTC](https://techcommunity.softwareag.com/t/about-inbound-processing-of-edi-with-tn/109286/3 "2007-05-31T18:29:38Z")

</div>

Hi RMG,

Thnx a lot for the valid inputs, i tried with routexml method it’s working fine and i can able to send doc to TN and DOC is recognizing in TN . But i have one concern, In TN there are three doctypes are coming(X12 envelope,X12 Group, X12 4010 850) when i click the Transaction analysis is this is a error or is this doctypes are suppose to come when ever the EDI doc reaches Tn.

Thanks once again

-aNiL

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [May 31, 2007, 7:27pm UTC](https://techcommunity.softwareag.com/t/about-inbound-processing-of-edi-with-tn/109286/4 "2007-05-31T19:27:52Z")

</div>

“coming (X12 envelope,X12 Group, X12 4010 850)”

This is the standard behaviour X12 will be shown for each X12Envelopee(ISA segment),X12 Group (GS segment),X12 4010 850 (ST segment) and depends on your usage you create your processingrule action(execute a service) with respect to Documenttype selection (Enveloper or Group or Transaction) level.

What error are you getting??Are you able to open these documents in the Transaction Analysis section when you click any of these?

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [May 31, 2007, 9:36pm UTC](https://techcommunity.softwareag.com/t/about-inbound-processing-of-edi-with-tn/109286/5 "2007-05-31T21:36:13Z")

</div>

This shouldn’t be a surprise to you if you have read the documentation…

---

<div class="post-metadata">

**Author:** ![Anil.h.kumar](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@Anil.h.kumar](https://techcommunity.softwareag.com/u/Anil.h.kumar)\
**Post date:** [June 1, 2007, 9:06am UTC](https://techcommunity.softwareag.com/t/about-inbound-processing-of-edi-with-tn/109286/6 "2007-06-01T09:06:08Z")

</div>

Hi RMG,

Thnx once again for your continous Help, I am not getting any error when i click on any of these documenttypes(X12 envelope,X12 Group, X12 4010 850) in the Transaction Analysis and in the content part i am getting the full data of a document. i am now trying to convert the EDI to Cannonical.

```
                Thnx a lot

```

-aNiL

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/about-inbound-processing-of-edi-with-tn/109286/7 "2021-04-02T15:05:37Z")

</div>


