Differences

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

faq_scheduler 2021-10-07 faq_scheduler 2025-01-16 (current)
Line 1: Line 1:
====== 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? ====== ====== 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? ======
-your script probably depends on your configuration of WinSCP or your local Windows account permissions or environment.+Your script probably depends on your configuration of WinSCP or your local Windows account permissions or environment.
===== [[config]] Configuration ===== ===== [[config]] Configuration =====
Line 40: Line 40:
If your script refers to //user// environment variables, they won't be resolved, if your script run user the service's account. If your script refers to //user// environment variables, they won't be resolved, if your script run user the service's account.
 +
 +===== Working directory =====
 +
 +Your command-line or script might rely on a specific working directory. Make sure you specify it in service's task settings (in Task Scheduler it's //Start in// option). Or use absolute paths in your command-line and script.
===== [[drives]] Mapped Network Drives ===== ===== [[drives]] Mapped Network Drives =====

Last modified: by martin