Maybe the scheduled job is running under another user, why don't you try to dump some info about the execution to a temp file before starting the actual work and make sure the paths actually exists, for example: import getpass
import os.path
file = open("jobinfo.txt", "w")
file.write(" Current username:\n")
file.write(getpass.getuser())
file.write("\n Is directory existing (1=true):\n")
file.write(os.path.exists('\\gisvrt\GIS'))
file.close()
Kindly note that you may need to check this code manually before running. You may also use the dump file technique to check if a variable is null or not and what other variables values are.
... View more