This GP Task is being invoked by the "submitJob" url in the ArcGIS REST API, and parameters are passed in via a query string. It's output is a sql file that writes to the output path provided as input. Whenever that path is on the C:// drive of the server it succeeds but whenever I point it to another drive it fails with the error:
IOError: [Errno 2] No such file or directory:
I have the connections set up in File Explorer/ArcCatalog and the script succeeds when run as a Script Tool from ArcCatalog, but it seems when being run as a GP task and invoked with a url it no longer recognizes the drive connections. I've tried with both a UNC and [LETTER]: for the drive.
I'm using ArcServer 10.1.