Hi everyone... I am trying to create a geoprocessing service on an ArcGIS for Server 10.3 machine... Here is what I have done:
1. Downloaded the Solutions Geoprocessing Toolbox from Github: GitHub - Esri/solutions-geoprocessing-toolbox: Models, scripts, and tools for use in ArcGIS Desktop ...
2. I unizpped the contents of the download...
3. In ArcMap 10.4, I accessed the ERG Tools toolbox inside of the "capability/toolboxes" folder of the contents (it is a Python toolbox), and ran the "ERG By Chemical" script tool...
The ArcMap data frame has no contents except for an ArcGIS Online basemap... The tool requires several parameters:
The results from the tool's execution are below:
So far, so good...
4. In ArcMap, I signed into my ArcGIS Online account with Administrator privileges... I also added a Database Server connection to another machine with ArcGIS for Server 10.3...
5. From the Geoprocessing Results window, I right-clicked on the successful result to create a new GP service...
I chose to "publish a service", gave the new service a name, pointed it to the ArcGIS for Server machine... This is the Service Editor at this point:
6. From here, I tried several options:
7. The Preview appeared correct, and for Analyze, no warnings appeared...
8. Clicked "Publish"... After a minute, I get the "Successfully Published Service" message... I was not prompted for anything during the publication...
9. However, when I go to the REST URL for the new service, the service itself is created, but no tasks are published:
For all combinations of different settings as listed in #6, I get the same result... No task...
Is there a reason why I was unable to create a GP task for this GP service? Thinking that no input data is required beyond a user-defined point, this should theoretically be simple to publish, right? Is there something in the Python toolbox and/or script tool that needs to be modified? Or this there something else that I am missing?
Any insight would be greatly appreciated... Thanks in advance... Mark
Solved! Go to Solution.
Mark, I am having the same issue. I have narrowed down to what looks like an ArcGIS client issue. I am running 10.41 client and trying to publish any number of test GP services to two different 10.3 Server machines and after the success status result, there are no tasks listed in the GP Service. However if I move the publishing over to the server machine itself, the GP Service publishes and the tasks are available.
Sam
Mark, I am having the same issue. I have narrowed down to what looks like an ArcGIS client issue. I am running 10.41 client and trying to publish any number of test GP services to two different 10.3 Server machines and after the success status result, there are no tasks listed in the GP Service. However if I move the publishing over to the server machine itself, the GP Service publishes and the tasks are available.
Sam
Hi Sam…
Thanks for the feedback… I should have followed-up to this discussion… After posting the question, I did exactly the same thing you did – published the service on the server machine itself, and it worked...
Thanks again! Mark
Mark Ho | Technical Solutions Specialist
Esri Canada | 900-12 Concorde Pl | Toronto ON M3C 3R8
T 647-943-1822 | M 416-580-3643 | esri.ca<http://esri.ca/>
Is this script/toolbox still available to download? I have an old ERG toolbox and am having the same issues with a successful publishing but then can't use the service. My geoprocessing tool has a task but the error it gives is that the tool is invalid.
Hello Mark and Sam,
I am having the same issue. Using 10.4 to create a GP service, but published on a 10.3 server. As noted, there is no "task" in the service definition. I then created the service definition file and used that to create the service directly on the 10.3 server. But unlike your experiences, again, my GP service has no 'task' identified.
Based on your experience, are there other issues I should be looking at?
many thanks in advance.
Brian Maier
LAT60 Geospatial
Brian, creating the service definition on 10.4 and publishing it on 10.3 also did not work for me. I had to create and publish the SD directly on the 10.3 box.
Thank you Sam. Sorry, I misunderstood what you had recommended! I will give that a try!
This is a bug then? Has anyone reported it as such?
I'm having the same problem but also don't have 10.3 installed on a machine anywhere....so I can't publish geoprocessing services until this is fixed.
No good! I have the same problem.
We appear to be having the same issue, regarding publishing from one software version of arcmap to a different version of arcserver. The catch in our situation is that we cannot successfully run the script tool from arcmap on arcgis server. The scripts runs perfectly on my local machine. But on server it acts as though it is running, and says it succeeded, but often in 0 seconds and no output is generated. I put a print and arcpy.addwarning statement as the very first actions to take on running the tool but these are not run. No errors are generated. As a bypass, I tried staging an sd file locally and publishing from server but that is not getting around the software versions issue. I can get the .py file to run in Idle shell on server but it fails because I've not given it parameters (without a gui to prompt for them). Other tools in arcmap, like buffer, do run successfully (just being thorough). If I hard code parameter values it works but the values I need will not be the same every time so that's useless.
I cannot get to the point of seeing if publishing from arcmap on the server is the solution because the script won't run in arcmap on server. Anyone seen this or have ideas?