FTPPutFile is not sending a file

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
TomS
Newbie
Posts: 8
Joined: Tue Apr 28, 2015 3:10 pm

FTPPutFile is not sending a file

Post by TomS » Tue Apr 28, 2015 3:34 pm

Hello,

Here is my command: (I have changed the name of the ftp server. It can be supplied if needed)
FTPPutFile>myftp.com,alliance,a77,21,C:\Extract\7617.txt,,7617SALES.csv,A

I get no error in Macro Sched, and no file is on the FTP site.

I have tried FTP_PASSIVE=0 and =1 with no change.

I have attached the Log from the FTP server.

Thank you for your help,
Tom

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: FTPPutFile is not sending a file

Post by Marcus Tettmar » Wed Apr 29, 2015 2:00 pm

There will be an error or a result code in FTP_RESULT. Please look in the watch list or output FTP_RESULT in a message box and tell us the value.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

TomS
Newbie
Posts: 8
Joined: Tue Apr 28, 2015 3:10 pm

Re: FTPPutFile is not sending a file

Post by TomS » Fri May 01, 2015 2:32 pm

Hi,

FTP_RESULT = 501-Syntax error in parameters or arguments.

Thanks
Tom

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: FTPPutFile is not sending a file

Post by Marcus Tettmar » Tue May 05, 2015 12:19 pm

So, it doesn't like something about the parameters. I notice you've left the host directory empty. I wonder if that is the issue. If it's the root, then try sending "\":

FTPPutFile>myftp.com,alliance,a77,21,C:\Extract\7617.txt,\,7617SALES.csv,A
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

TomS
Newbie
Posts: 8
Joined: Tue Apr 28, 2015 3:10 pm

Re: FTPPutFile is not sending a file

Post by TomS » Tue May 05, 2015 12:57 pm

Marcus,

The missing directory value was the problem.

It is working well now.

Thank you for your help,
Tom

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts