Issue with Script execution and upload of a file to FTP site

Issue with Script execution and upload of a file to FTP site

We are running a script below to upload a CSV file from a root directory to an FTP site, the root has a new child folder created each day ( folder name is date stamp ) and the CSV name is date stamp in the child folder. When we run the below script i can see the variable populated with the latest CSV file, but the upload to FTP side of the script does not upload the file and we dont get an error, it just doesn't upload. I can manually upload using Winscp so it isnt F/W, permissions etc, can you help please?? our script is below, Thanks in Advance.

Re: Issue with Script execution and upload of a file to FTP site

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, set Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Session Syntax

Sorry with my limited scripting knowledge im struggling to output a session log file. I have checked the syntax of the command but cant see how to get it to produce a Log output when im adding in my script.

Can you help with adding the command / syntax to enable a log to be outputted?

Re: Issue with Script execution and upload of a file to FTP site

WinSCP gets path F:\Symphony\iExchange\Repository\NLPG Hub\4205_20170124_01.csv (what I do not see how it corresponds to your code, which uses F:\upload\filestoupload\). And WinSCP fails to find that file. Is the path correct?