# Submit EDI File to Trading Network

**URL:** <https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [October 15, 2010, 6:43pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191 "2010-10-15T18:43:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [October 15, 2010, 6:43pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/1 "2010-10-15T18:43:51Z")

</div>

Hello,  
I have a scenario, where I have to pick up an EDI file via filepolling and submit it to TN, where I can invoke a service to transform EDI to XML.  
Please help me in this scenario, having difficulties.

---

<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:** [October 15, 2010, 7:49pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/2 "2010-10-15T19:49:51Z")

</div>

In the filepolling port configuration you can mention the Processing Service filed wm.tn.doc.xml:routeXML and also set the Content Type:application/EDIstream when ever the file available it will submit to TN and setup a TN processing rule (sender/receiver/document type) with action that invokes your custom service (that does all EDI parsing/mapping to XML structure etc…down stream processing)

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [October 15, 2010, 8:01pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/3 "2010-10-15T20:01:31Z")

</div>

Hello,  
Thank you sir…I did not think of that…  
I would ask more if necessary…🙂

---

<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:** [October 15, 2010, 11:08pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/4 "2010-10-15T23:08:22Z")

</div>

Try it and let the forum know.

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [October 18, 2010, 5:33pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/5 "2010-10-18T17:33:24Z")

</div>

It is working…  
but recommeded is to use a custom service, which includes routeflatfile in it…when working on live…

---

<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:** [October 18, 2010, 6:14pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/6 "2010-10-18T18:14:37Z")

</div>

Yes that is the ideal way…And custom service should be using routeXML (for any XML/EDI routing to TN) not routeFlatFile it is only used for flat files routing…

HTH  
RMG

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [October 18, 2010, 6:19pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/7 "2010-10-18T18:19:20Z")

</div>

Yes.  
Could you help in one more thing.  
I have converted EDI to XML, and want to write that XML doc to a file…  
Cannot find a service, and not comfortable with java service.  
Please if you could help.

Suvigya

---

<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:** [October 18, 2010, 7:09pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/8 "2010-10-18T19:09:14Z")

</div>

Do you have PSUtilities package installed? If not download it from Advantage site…

There is one “writeToFile” svc available which you can use that.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [October 20, 2010, 8:17pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/9 "2010-10-20T20:17:23Z")

</div>

Hello Sir,  
I want to ask about the different EDI qualifiers, which are there in ISA envelope.  
And can I accept Order 850 through file polling to simple services? as it is giving me error of “Found no valid records”.  
  
Thanks and Regards  
Suvigya

---

<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:** [October 20, 2010, 8:33pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/10 "2010-10-20T20:33:41Z")

</div>

Here are the few qualifiers used in the X12 and EDIFACT world respectively:

## 01 X12=Duns, EDIFACT=Duns 02 X12=SCAC 03 X12=FMC, 04 X12=IATA, EDIFACT=IATA 05 EDIFACT= INSEE 07 X12=GLN, 08 X12=UCC Comm ID, EDIFACT= UCC Id 09 X12=X 121 CCITT, EDIFACT = Duns with 4 digit suffix 10 X12=DoD Activity Address 11 X12=DEA 12 X12=Phone, EDIFACT=Telephone Number 13 X12=UCS 14 X12=Duns Plus Suffix, EDIFACT=EAN 15 X12=PAS of Canada Code 16 X12=Duns Number with 4-char suffix 17 X12= ABA routing number 18 X12=AAR Std Distribution Code, EDIFACT=AIAG 19 X12=EDICA Comm Id 20 X12=HIN 21 X12=IPEDS 22 X12=FICE, EDIFACT=INSEE 23 X12= NCES 24 X12=ATP 25 X12=ACT, Inc. 4-digit Code postsecondary institutions 26 X12=Statistics of Canada list of postsecondary institutions 27 X12=HCFA carrier 28 X12=HCFA Fiscal Intermediary 29 X12=HCFA Medicare provider 30 X12=US Federal Tax Id, EDIFACT=ISO 6523 id 31 X12=IAIABC Jurisdiction id plus 4, EDIFACT=DIN 32 X12=US Federal Employer Id (FEIN) 33 X12=NAIC code, EDIFACT=BIA

Are you getting the error while parsing in convertToValues step? Did you set the correct EDIFFSchema and mapped the edidata (ST level string)?

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [October 20, 2010, 8:36pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/11 "2010-10-20T20:36:34Z")

</div>

Hello,  
Yes, I am getting error while parsing through convertToValues  
and I have mapped edidata, and given right schema, that is …850

---

<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:** [October 20, 2010, 10:36pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/12 "2010-10-20T22:36:06Z")

</div>

Check the edidata you are passing and make sure it is in correct format (includinig delimiters etc…)

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [October 20, 2010, 11:25pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/13 "2010-10-20T23:25:39Z")

</div>

Sir,  
There was a fault in edidata…I corrected it.  
Now service is working, but when debugging it with save and restore pipeline, then errors come up as Delimiters not Set…  
please help me, attatched is the input file.

---

<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:** [October 21, 2010, 3:04am UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/14 "2010-10-21T03:04:27Z")

</div>

In that case you can modify the pipeline delimiters part and parse it…

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [October 21, 2010, 3:52pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/15 "2010-10-21T15:52:17Z")

</div>

Sir, I did this thing also, but still saying “Found no valid records”.  
I had hard-coded the delimiters from the input file.  
I have attatched the input file here, please help me with the delimiters, if I might be wrong.  
Thank you.  
[850.txt](https://techcommunity.softwareag.com/uploads/short-url/kpqTPKElEkYW3uSXmVIIi2DJCLv.txt) (3.04 KB)

---

<div class="post-metadata">

**Author:** ![rgiduthuri.38140](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rgiduthuri.38140](https://techcommunity.softwareag.com/u/rgiduthuri.38140)\
**Post date:** [October 21, 2010, 5:00pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/16 "2010-10-21T17:00:35Z")

</div>

> [@Suvigya;75796](#):
>
> Sir,  
> There was a fault in edidata…I corrected it.  
> Now service is working, but when debugging it with save and restore pipeline, then errors come up as Delimiters not Set…  
> please help me, attatched is the input file.

Hi Suvigya,

Check original EDI file Delimiters with restore pipeline data Delimiters…if you find any difference then update me…

---

<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:** [October 21, 2010, 9:05pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/17 "2010-10-21T21:05:57Z")

</div>

Probably the issue could be with this wierd record/segment delimiter (È) that you are getting it…For testing try replace with ~ or some thing and route it again…See how it goes and let us know…

Try using Hex editor (like ultraedit) and look it in ascii.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![devexpert](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@devexpert](https://techcommunity.softwareag.com/u/devexpert)\
**Post date:** [October 22, 2010, 3:07am UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/18 "2010-10-22T03:07:47Z")

</div>

As above suggested by RMG repalce your segement delimiter by ~ or line break and in converttovalues specify the same delimiter in segment delimiter.

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [October 22, 2010, 3:51pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/19 "2010-10-22T15:51:09Z")

</div>

Hi,  
Thank you RMG and devexpert…  
I would try doing with that and then confirm with this update.

Regards  
Suvigya

---

<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:** [October 22, 2010, 10:03pm UTC](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191/20 "2010-10-22T22:03:46Z")

</div>

good keep us posted…

[Next page](https://techcommunity.softwareag.com/t/submit-edi-file-to-trading-network/110191.md?page=2)
