Sysax Product Forums / Sysax FTP Automation / General Discussion / Upload Error - Evaluation Version
Posted:  08 Dec 2009 11:11   Last Edited By: raemacleman
Hi,

I'm using the evaluation version to upload a file to a secure FTP server using SFTP. The script runs, connects and produces the following log output. I've checked the location of the file in question, changed the location of the file and made sure that no other process is using the file.

It also 'crashed' a couple of times with other file names and locations producing a Microsoft Error Report quoting...

szAppName : sysaxschedscp.exe     szAppVer : 0.0.0.0     
szModName : sysaxschedscp.exe     szModVer : 0.0.0.0     offset : 000032e7

Microsoft Windows Server 2003 for Small Business Server

Can anyone help, please?
---------------------------------------------------
Executing script C:\Documents and Settings\All Users\Application Data\Codeorigin\SysaxAutomation\scripts\CDS_Upload_Registrations.fscr
Script Engine: Line 10: Executing setvar. Parameter(s):  ~server_address  "******.co.uk"
Script Engine: Line 11: Executing setvar. Parameter(s):  ~server_port  22
Script Engine: Line 12: Executing setvar. Parameter(s):  ~login_name  "******ftp"
Script Engine: Line 13: Executing setvar. Parameter(s):  ~login_password  "******"
Script Engine: Line 14: Executing setvar. Parameter(s):  ~remote_path  "/"
Script Engine: Line 15: Executing setvar. Parameter(s):  ~local_path  "C:\"
Script Engine: Line 16: Executing setvar. Parameter(s):  ~local_filename  "Registrations_08_12_2009.txt"
Script Engine: Line 17: Executing setvar. Parameter(s):  ~remote_filename  "Registrations_08_12_2009.txt"
Script Engine: Line 18: Executing setvar. Parameter(s):  ~file_rename_extension  ".503"
Script Engine: Line 27: Executing setduperules. Parameter(s):  bysize  rename  skip  rename  ~file_rename_extension
Script Engine: Line 35: Executing ftpconnectssh. Parameter(s):  ~server_address  ~server_port  ~login_name  (not displayed)
sshlib: GlobalScape
ssh-userauth
****** Secure FTP Server
Remote directory is /
Remote directory is /
Remote path: /
Local  path: C:\Program Files\SysaxAutomation\
Script Engine: Line 38: Executing ftpsetpath. Parameter(s):  local  ~local_path
Local  path: C:
Script Engine: Line 39: Executing ftpsetpath. Parameter(s):  remote  ~remote_path
Remote path: /
Script Engine: Line 46: Executing ftpupload. Parameter(s):  file  ~local_filename  ~remote_filename
Upload error - File handle could not be opened [2:File not found]
Script Engine: Script command error: Incremented internal error count to 1
command: ftpupload; argument: file, Registrations_08_12_2009.txt, Registrations_08_12_2009.txt; status: fail;
Script Engine: Script did not complete correctly.
Script completed with an exit code of 1
Posted:  11 Dec 2009 11:15
It looks like most of the issues may be related to the path. You need to have double backslash characters in quotes.



------------------------------------------------------------
FTP Scripting for windows
 

Copyright © 2021 Codeorigin, LLC - All Rights Reserved.
XML RSS 2.0 XML Atom 1.0