So I've created a geoprocessing Python script tool that I've published as a GP service. This script takes lat/lon coordinates, extracts data from a raster from these coordinates, outputs a .csv and creates an Excel chart from a .vbs script. I can run the Python script on our server from the "C:\arcgisserver\directories\arcgissystem\arcgisinput" path and it works. I'm trying to test the GP service (Execute Task (GET)) from a browser on our REST services page. It says it's successful, but it doesn't actually output the chart. It does create the .csv, but it doesn't run the .vbs script. Here is the result message:
{
"results": [],
"messages": [
{
"type": "esriJobMessageTypeInformative",
"description": "Executing (ChartTest): ChartTest 45 -122 Portland"
},
{
"type": "esriJobMessageTypeInformative",
"description": "Start Time: Wed Jan 25 13:51:23 2017"
},
{
"type": "esriJobMessageTypeInformative",
"description": "Executing (ChartTest): ChartTest 45 -122 Portland"
},
{
"type": "esriJobMessageTypeInformative",
"description": "Start Time: Wed Jan 25 13:51:23 2017"
},
{
"type": "esriJobMessageTypeInformative",
"description": "Running script ChartTest..."
},
{
"type": "esriJobMessageTypeInformative",
"description": "Completed script ChartTest..."
},
{
"type": "esriJobMessageTypeInformative",
"description": "Succeeded at Wed Jan 25 13:51:23 2017 (Elapsed Time: 0.70 seconds)"
},
{
"type": "esriJobMessageTypeInformative",
"description": "Succeeded at Wed Jan 25 13:51:23 2017 (Elapsed Time: 0.71 seconds)"
}
]
}
I had a lot of trouble publishing this GP service because the Python script creates a .vbs, and these types of scripts can't be copied to the server. I got around this by changing the ".vbs" reference to ".txt" and publishing. I changed it back to ".vbs" on the server. I'm not sure if the server is blocking the .vbs or what. There are no errors in the server logs.