Note that the documentation covers new features and changes in beta releases 4.2 through 4.2.4 already.

My script works fine when executed manually, but fails or hangs when run by Windows Scheduler, SSIS or other automation service. What am I doing wrong?

You probably depend on your configuration of WinSCP. Note that when using registry as configuration storage, the settings are accessible only for your Windows account. When the script is run from Windows Scheduler, SSIS, DTS or other automation service, it is typically run under different (service) account that cannot access your configuration.

Possible consequences are:

  • The script “hangs” because the host key (SFTP or SCP) or certificate (FTPS) is not known by the service’s account and WinSCP asks for its verification.
  • The connection fails, because your script depends on stored session, which is not known by the service’s account.
  • Environment variables referenced in script are not resolved, because they are not set by the service’s account.

Solutions:

When dealing with SSIS see also guide to SFTP task in SSIS.

 
  faq_scheduler.txt · Last modified: 2 Apr 2009 by prikryl
 

Search

This page

Donate

Donate via PayPal

Associations

Site design by Black Gate