SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTPPUTFILE ERROR "Extended error code: 26"

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTPPUTFILE ERROR "Extended error code: 26"
Author Message
jdulitz



Joined: 19 Jun 2007
Posts: 4
Country: United States

Post FTPPUTFILE ERROR "Extended error code: 26" Reply with quote
I am trying to FTP a file and am getting this error message:

An error occurred while executing automation script: Line 7: Upload failed for "". Cannot open source file "c:\temp\test.txt" for reading: no such file or directory. Extended error code: 26.

Here is the line 7:
FTPPutFile( ftp_server, ftp_username, ftp_password, "C:\\temp\\test.txt", "/temp/test" )

Your help is appreciated.
Tue Jun 19, 2007 3:43 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Reply with quote
Are you sure you have that file? No spelling errors in the name?
Tue Jun 19, 2007 4:03 pm View user's profile Send private message
jdulitz



Joined: 19 Jun 2007
Posts: 4
Country: United States

Post Reply with quote
Thanks for the follow up. File is present and spelling is correct.

I figured it out. I had to use 2 forward slashes in the destination path:

This works: FTPPutFile( ftp_server, ftp_username, ftp_password, "C:\\temp\\test.txt", "//temp//test" )
This doesn't: FTPPutFile( ftp_server, ftp_username, ftp_password, "C:\\temp\\test.txt", "/temp/test" )


I fing this strange because I can use just 1 forward in the path when doing an FTPDir:

This works: FTPDir( ftp_server, ftp_username, ftp_password, "/temp/*", return )

Do you know why this is?

Thanks.
Tue Jun 19, 2007 4:28 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Reply with quote
I am not sure why you need double slashes in //temp//temp. Is /temp/temp is a directory name or file name? The last parameter is supposed to be file name.
Tue Jun 19, 2007 7:12 pm View user's profile Send private message
jdulitz



Joined: 19 Jun 2007
Posts: 4
Country: United States

Post Reply with quote
//temp//test

temp is the directory and test is the file name
Wed Jun 20, 2007 6:43 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.