# FTP'ing an EDI file.

**URL:** <https://techcommunity.softwareag.com/t/ftping-an-edi-file/110100>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [April 12, 2010, 12:13pm UTC](https://techcommunity.softwareag.com/t/ftping-an-edi-file/110100 "2010-04-12T12:13:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veerachitturi](https://avatars.discourse-cdn.com/v4/letter/v/ecae2f/32.png) [@Veerachitturi](https://techcommunity.softwareag.com/u/Veerachitturi)\
**Post date:** [April 12, 2010, 12:13pm UTC](https://techcommunity.softwareag.com/t/ftping-an-edi-file/110100/1 "2010-04-12T12:13:24Z")

</div>

Hi there,

I got a problem FTP’ing a file. i am not sure how to use FTP. Actually i am sending an edi document to trading networks using FTP. In the service in i am not sure dirpath, localfile and remotefile.

I initialized the filed values as:

dirpath: cd \ns\wm\tn\receive.  
localfile - x12\_810 ( this is the name of the field that holds my edi data in the pipeline )  
remotefile - x12\_810.

Hope the way i have initialized localfile and remotefile are correct.

I got the following error after executing the service:

" The service failed with the following meesage: 550 ‘cd \ns\wm\tn\receive’: No such file or directory. "

could someone please tell me what went wrong with dirpath and whether i have intialized localfile and remotefile correctly.

Thanks in advance,  
Veera.

---

<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:** [April 12, 2010, 7:53pm UTC](https://techcommunity.softwareag.com/t/ftping-an-edi-file/110100/2 "2010-04-12T19:53:13Z")

</div>

Are you trying to send the file to another IS instance?

If so, drop the “cd” part of the dirpath string. Just specify the path to the service. Use localfile only if the data is in a file on the local IS disk. If it is just a string variable in the pipeline, use the content input instead.

If you’re not sending the document to another IS/TN instance and you’re just trying to submit the document to TN, just call the receive service.

---

<div class="post-metadata">

**Author:** ![Veerachitturi](https://avatars.discourse-cdn.com/v4/letter/v/ecae2f/32.png) [@Veerachitturi](https://techcommunity.softwareag.com/u/Veerachitturi)\
**Post date:** [April 13, 2010, 12:10am UTC](https://techcommunity.softwareag.com/t/ftping-an-edi-file/110100/3 "2010-04-13T00:10:49Z")

</div>

Hi Rob,

Thank you so much for the detailed information.

but, i am still getting an error. could you please have a look at the following HTML view of the service and could you please let me know what’s going wrong with the inputs. the following case was just sending the document to my TN instance and i have the input data in the variable “edidata”.

the error was:

" com.wm.lang.flow.FlowException: The service failed with the following meesage: 550 ‘wm.tn:receive’: No such file or directory."

```
       [FONT=&quot][IMG]file:///C:/DOCUME%7E1/RAMARA%7E1/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif[/IMG][/font][FONT=&quot][/font]
     [B][FONT=&quot]Server:[/font][/b][FONT=&quot]

```

localhost:5555 [/font]  
 ![]()   
Package:  
W3G\_Training   
 ![]()   
Folder:  
W3G\_Training.EDI   
  
  ![]()sendEDI\_810\_FTP

Flow Overview  
1 ![]()main: SEQUENCE  
1.1 ![]()try: SEQUENCE  
1.11 ![]()MAP  
1.12 ![]()INVOKE ftp  
1.2 ![]()catch: SEQUENCE  
1.21 ![]()INVOKE getLastError  
1.22 ![]()INVOKE debugLog[FONT=&quot]  
1.23 ![]()EXIT ‘$flow’

[/FONT]

Flow Detail

1 ![]()main: SEQUENCE   
  
exit on success  
 1.1 ![]()try: SEQUENCE   
  
exit on failure  
[FONT=&quot] 1.11 ![]()MAP

[/font]  
Source  
 ![]()  
Destination  
   
   
 ![]()edidata ![]()"ISA_00 __00_ _01_045426558002 _01_027537596 _040317_1135_U_00401\* 8_0_P\*: GS_IN_045426558002_027537596_20040317_1135_2_X_004010 ST_810_171135295 BIG_20040315_032633_20040219_1-641294_DI NTEAPU032633\_04\_19 CUR_SE_USD REF_BM_847636 REF_CO_1-641294 REF_CN_47636 N1_OB **92_000 N3_4402 20TH ST E N4_TACOMA_WA_98424_US ITD_01_3_02.00_20040319** 20040329 **280.03_NET 30 DAYS DTM01120040228 FOBPP IT1_001_12.00_PK\*91.3994400000** VP PID_F__ PII 1/2X47 X100 391.6PERMACOTE II IT100220.00_PK_81.5517700000\*\*VP PID_F_PII 1 X35 X100 291.6PERMACOTE II IT10035.00PK_54.7593900000 **VP PID_F __RC 1 X47 X 50 195.8LINACOUSTIC RC IT100430.00_PK\*137.4857700000** VP PID_F__ PII 1 X59 X100 491.6PERMACOTE II IT100510.00_PK_137.4857700000\*\*VP PID_F_RC 1 X59 X100 491.6LINACOUSTIC RC IT10065.00PK_64.4625500000 **VP PID_F __RC 1-1/2X35 X 50 145.8LINACOUSTIC RC IT100710.00_PK\*141.5291800000** VP PID_F__ PII 2 X59 X 50 245.8PERMACOTE II IT10095.00_PK_82.7263900000\*\*VP PID_F_RC 1 X35-1/2X100 295.8LINACOUSTIC RC IT10101.00EA_75.0000000000 **VP PID_F __MECH TAILGATE CHARGE IT10111.00_EA\*0.0000000000** VP PID_F__ MECH. 1/3 STOP-OFF CHARGE IT101425.00_PK_112.7396800000\*\*VP PID_F_PII 2 X47 X 50 195.8PERMACOTE II IT10156.00PK_88.4260000000 **VP PID_F_\*_PII 1-1/2X48 X50 200.0PERMACOTE II TDS1407634_1400134 CAD** \*\*\*U S XPRESS ENTERPRISES SAC_C __**75.00**__ **02 SACC** __0.00__ 02 ISS130.0EA6479.750LB CTT12_130.0 SE_44_171135295 GE_1_2 IEA_1_ 8 "   
[FONT=&quot] 1.12 ![]()INVOKE pub.client:ftp

[/font]  
  
Pipeline In  
 ![]()  
Service In  
 ![]()edidata   
 ![]()  
 ![]()content   
   
   
 ![]()command ![]()“put”   
   
   
 ![]()password ![]()“\*\*\*\*”   
   
   
 ![]()username ![]()“Administrator”   
   
   
 ![]()serverport ![]()“8888”   
   
   
 ![]()serverhost ![]()“192.168.1.105”   
   
   
 ![]()dirpath ![]()“wm.tn:receive”   
   
   
 ![]()remotefile ![]()" x12\_810;application:EDIstream"   
 1.2 ![]()catch: SEQUENCE   
  
exit on done  
[FONT=&quot] 1.21 ![]()INVOKE pub.flow:getLastError  
1.22 ![]()INVOKE pub.flow:debugLog

[/font]  
  
Pipeline In  
 ![]()  
Service In  
   
   
 ![]()message ![]()“The service failed with the following meesage: %lastError/localizedError%”   
[FONT=&quot] 1.23 ![]()EXIT ‘$flow’

[/font]

Generated by webMethods Developer: April 12, 2010 11:18:57 AM PDT

---

<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:** [April 13, 2010, 12:50am UTC](https://techcommunity.softwareag.com/t/ftping-an-edi-file/110100/4 "2010-04-13T00:50:38Z")

</div>

Use /ns/wm/tn/receive as the dir path. Don’t put “cd” in front of that and don’t use the IS service name syntax.

---

<div class="post-metadata">

**Author:** ![Veerachitturi](https://avatars.discourse-cdn.com/v4/letter/v/ecae2f/32.png) [@Veerachitturi](https://techcommunity.softwareag.com/u/Veerachitturi)\
**Post date:** [April 13, 2010, 1:22am UTC](https://techcommunity.softwareag.com/t/ftping-an-edi-file/110100/5 "2010-04-13T01:22:44Z")

</div>

Hi Rob,

Thank you so much. I achieved it :)…sorry i have messed up the previous post.

Thank you,  
Veera.

---

<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:06pm UTC](https://techcommunity.softwareag.com/t/ftping-an-edi-file/110100/6 "2021-04-02T15:06:01Z")

</div>


