Been uisng it in a new site for about 3 months now
When I send a file, I just flag a .dbf record with the name to say its gone.
Probelm is, the receiving guys are saying they are not getting some, about maybe 1 or 2 a week out of about 50/60. IIn some cases, the file they say is missing is in the middle of a batc, where all others are received.
The guys receiving files gave an FTP server (Unix) and can produce an FTP log of iles received
Is there anything like this that can be switched on in Windows, so at leats I can see if the file has gone out or not., or any other suggestions ??
I send the files individually as in code below:
FOR x=1 to lnResult
lcFile = ALLTRIM(la2Files[x,1])
lcSendFile = "/XXXEDI/ToXXX/" + lcFile
FtpSend(lcServer,0,lcUser,lcPass,lcFile,lcSendFile) && 0 if No Port ???
lcArchive = "SentArchive/" + lcFile
COPY FILE &lcFile TO &lcArchive
DELETE FILE &lcFile
ENDFOR
The first thing you need to do is check and capture errors from all the FTP calls in your code... Without that you just have reckless code :-)
+++ Rick ---
Using WestWind to FTP files
Been uisng it in a new site for about 3 months now
When I send a file, I just flag a .dbf record with the name to say its gone.
Probelm is, the receiving guys are saying they are not getting some, about maybe 1 or 2 a week out of about 50/60. IIn some cases, the file they say is missing is in the middle of a batc, where all others are received.
The guys receiving files gave an FTP server (Unix) and can produce an FTP log of iles received
Is there anything like this that can be switched on in Windows, so at leats I can see if the file has gone out or not., or any other suggestions ??
I send the files individually as in code below:
FOR x=1 to lnResult
lcFile = ALLTRIM(la2Files[x,1])
lcSendFile = "/XXXEDI/ToXXX/" + lcFile
FtpSend(lcServer,0,lcUser,lcPass,lcFile,lcSendFile) && 0 if No Port ???
lcArchive = "SentArchive/" + lcFile
COPY FILE &lcFile TO &lcArchive
DELETE FILE &lcFile
ENDFOR
Not sure what you mean by 'The first thing you need to do is check and capture errors from all the FTP calls in your code'
Our application already has On Error checking and writes any errors to a log file with details of the errors.
There have been no errors recorded in the cases where the files are not beong FTP'd
Regards,
Ger
Ger,
The first thing you need to do is check and capture errors from all the FTP calls in your code... Without that you just have reckless code :-)
+++ Rick ---
Using WestWind to FTP files
Been uisng it in a new site for about 3 months now
When I send a file, I just flag a .dbf record with the name to say its gone.
Probelm is, the receiving guys are saying they are not getting some, about maybe 1 or 2 a week out of about 50/60. IIn some cases, the file they say is missing is in the middle of a batc, where all others are received.
The guys receiving files gave an FTP server (Unix) and can produce an FTP log of iles received
Is there anything like this that can be switched on in Windows, so at leats I can see if the file has gone out or not., or any other suggestions ??
I send the files individually as in code below:
FOR x=1 to lnResult
lcFile = ALLTRIM(la2Files[x,1])
lcSendFile = "/XXXEDI/ToXXX/" + lcFile
FtpSend(lcServer,0,lcUser,lcPass,lcFile,lcSendFile) && 0 if No Port ???
lcArchive = "SentArchive/" + lcFile
COPY FILE &lcFile TO &lcArchive
DELETE FILE &lcFile
ENDFOR
Please take a look at the documentation for the FTP functions. The functions do not 'blow up' - they return error codes and you need to check for those after each of the FTP method accesses, and at the very least after every send or receive.
+++ Rick ---
Hi Rick. Thanks for coming back to me
Not sure what you mean by 'The first thing you need to do is check and capture errors from all the FTP calls in your code'
Our application already has On Error checking and writes any errors to a log file with details of the errors.
There have been no errors recorded in the cases where the files are not beong FTP'd
Regards,
Ger
Ger,
The first thing you need to do is check and capture errors from all the FTP calls in your code... Without that you just have reckless code :-)
+++ Rick ---
Using WestWind to FTP files
Been uisng it in a new site for about 3 months now
When I send a file, I just flag a .dbf record with the name to say its gone.
Probelm is, the receiving guys are saying they are not getting some, about maybe 1 or 2 a week out of about 50/60. IIn some cases, the file they say is missing is in the middle of a batc, where all others are received.
The guys receiving files gave an FTP server (Unix) and can produce an FTP log of iles received
Is there anything like this that can be switched on in Windows, so at leats I can see if the file has gone out or not., or any other suggestions ??
I send the files individually as in code below:
FOR x=1 to lnResult
lcFile = ALLTRIM(la2Files[x,1])
lcSendFile = "/XXXEDI/ToXXX/" + lcFile
FtpSend(lcServer,0,lcUser,lcPass,lcFile,lcSendFile) && 0 if No Port ???
lcArchive = "SentArchive/" + lcFile
COPY FILE &lcFile TO &lcArchive
DELETE FILE &lcFile
ENDFOR
West Wind Technologies
Making waves on the Web
from Maui