Differences

This shows you the differences between the selected revisions of the page.

2014-04-25 2014-05-04
English correction (Petr) Title Capitalization (Petr)
Line 1: Line 1:
-====== Debugging transfer task running in Windows Scheduler, SSIS or other automation service ======+====== Debugging Transfer Task Running in Windows Scheduler, SSIS or Other Automation Service ======
If your transfer automation task running under Windows Scheduler, SSIS or similar server does not work, it may not be immediately obvious what is wrong. Particularly because output of WinSCP process is hidden. If your transfer automation task running under Windows Scheduler, SSIS or similar server does not work, it may not be immediately obvious what is wrong. Particularly because output of WinSCP process is hidden.
-===== Testing the task independently =====+===== Testing the Task Independently =====
First step in debugging, is to make sure the task works when executed independently. Execute the exact command that you have configured in Windows Scheduler/SSIS in Windows Command prompt. First step in debugging, is to make sure the task works when executed independently. Execute the exact command that you have configured in Windows Scheduler/SSIS in Windows Command prompt.
Line 17: Line 17:
If the problem is not obvious from the output, enable logging to a file as described below. If the problem is not obvious from the output, enable logging to a file as described below.
-===== Inspecting log =====+===== Inspecting Log =====
Next step is to enable logging to file (you should have logging enabled anyway) and inspect the log. Use ''/log'' [[commandline|command-line parameter]]. Next step is to enable logging to file (you should have logging enabled anyway) and inspect the log. Use ''/log'' [[commandline|command-line parameter]].
Line 34: Line 34:
If you know that the task failed with [[scripting#checking_results|exit code 1]], see [[faq_exit_code|Why is WinSCP returning non zero exit code?]] to learn what to look for in the log. If you know that the task failed with [[scripting#checking_results|exit code 1]], see [[faq_exit_code|Why is WinSCP returning non zero exit code?]] to learn what to look for in the log.
-===== Further reading =====+===== Further Reading =====
  * [[faq_environment|Why does WinSCP not work in a new environment (operating system, machine, user account, network), when it works for me in a different environment already?]]   * [[faq_environment|Why does WinSCP not work in a new environment (operating system, machine, user account, network), when it works for me in a different environment already?]]
  * [[faq_script_result|How do I know that script completed successfully?]]   * [[faq_script_result|How do I know that script completed successfully?]]
  * [[faq_script_vs_gui|Why I cannot connect/transfer using script, when I can using GUI (or vice versa)?]]   * [[faq_script_vs_gui|Why I cannot connect/transfer using script, when I can using GUI (or vice versa)?]]
- 

Last modified: by Petr