6 votes

00068 Script Script contains broken project data source: CURRENT

You cannot use "CURRENT" in a Geoprocessing Service. The GP Service has no idea what "CURRENT" is as the service isn't an open session of ArcMap. CURRENT is reserved for working with a script inside ...
KHibma's user avatar
  • 16.8k
5 votes

Web Services that Converts Lat Lon to Zip Code

There are a few options: Latitude / Longitude to ZIP + 4, allows you to input the lat, long and receive a Zip code in return. You could also use this to input the values and run the search yourself ...
whyzar's user avatar
  • 12.1k
4 votes
Accepted

ArcGIS Geoprocessing Service Output Location

Use the arcpy.env.scratchGDB instead - this will create those C:\arcgisserver\directories\arcgisjobs\scriptgp_gpserver\j002461f550fc4658a08da‌​c98c7bd6672 gdb for each job. Use the SetParameter, not ...
Alex Tereshenkov's user avatar
4 votes
Accepted

Is it possible to make an installer for a published tool, to install the tool to someone else's ArcGIS server?

That is exactly what I have done many times. You can author a tool, run it in ArcMap to get a result, you publish this result on an ArcGIS Server instance. Now you have a geoprocessing service (GP) ...
Alex Tereshenkov's user avatar
4 votes
Accepted

Geoprocessing Failed Error?

A good tool to have in your arsenal is the Developer console. In your browser, open it by pushing CTRL+SHIFT+I (I will be describing this in Chrome, Firefox is very similar). Switch to the Network ...
PhilippNagel's user avatar
  • 1,712
4 votes
Accepted

Delaying running of geoprocessing script in ArcGIS Server

Use the Windows Task Scheduler to run the script every night at a set time. The script can check to see if it needs to do anything, and just exit if there's nothing to be done. I know that this is ...
Son of a Beach's user avatar
3 votes
Accepted

Relative Path issue within Model Builder

I solved the issue. A file extension ex: .shp must be applied after %SCRATCHWORKSPACE%\FILENAME. My first output was created and stored in memory because it didn't have the proper file extension ...
John's user avatar
  • 315
3 votes
Accepted

Why is the Upload checkbox for GP Services missing when publishing to ArcGIS Server on Amazon EC2?

I'm unaware if the Server deployed to Amazon would have different available settings. I'd expect these options should be available. Try the following at your own risk (as it involves modifying files ...
KHibma's user avatar
  • 16.8k
3 votes

Migrating script from tool to geoprocessing service?

Output features from a geoprocessing service can be read and used across Desktop (ArcMap) and Web clients (JavaScript API) equally. Of course the web clients require a bit of coding if you're building ...
KHibma's user avatar
  • 16.8k
3 votes
Accepted

Publish geoprocessing service on AWS ArcGIS Server

A lot of sub-questions, so to tackle answering this, I have referenced a number of articles for further reference to get you started. Will I be able to publish an ArcPy geoprocessing service into ...
jakc's user avatar
  • 9,858
3 votes
Accepted

Why does geoprocessing service tool Table to Excel always put output in scratch folder and not folder specified?

Shortest answer: Because thats how GP Services work, they handle the output, writing to a known location, that being the scratchFolder (or scratch.gdb) in the arcgisserver directories. More explained:...
KHibma's user avatar
  • 16.8k
3 votes
Accepted

In_memory workspace in geoprocessing services

In_memory layers are not written to the disk; that is the whole point with the in_memory geodatabase workspace. The in_memory workspace is not published to the server. Registering in_memory on the ...
Alex Tereshenkov's user avatar
3 votes

ArcGIS 10.3.x - Publishing GP tools as GP services using Python 32- or 64-bit dependencies

What we have typically done at my organization, is on a shared location that is accessible by all of our servers is set up a folder with third party python modules and temporarily append that path to ...
crmackey's user avatar
  • 8,484
3 votes
Accepted

ArcGIS Server - Can python GP services returns json data to client through REST?

You can get the result of a GP Service in JSON by simply asking for the response format to be returned as JSON. You just need f=json in the request. For example (emphasis added, but removes it from ...
KHibma's user avatar
  • 16.8k
3 votes

Running a geoprocessing service on selected data in ArcGIS web appbuilder

If anyone still needs help with this, the newest version of Web App Builder now comes with a Select Widget where you can pass selected features info to other widgets like a Geoprocessing widget. More ...
Ifeoma Collins's user avatar
3 votes
Accepted

Getting Reconcile Versions geoprocessing tool published as ArcGIS Server service to work with new version?

Yes, you can publish this tool so it can reconcile versions that are created dynamically. You need to add a couple other tools to the model though. Most of the tool parameters can/should be model ...
Kenneth Dinsmore's user avatar
3 votes

Geoprocessing Failed Error?

When you publish a geoprocess on ArcGIS server, you can specify notifications level (see photo). This will give you more info than just error.
Rafael's user avatar
  • 73
3 votes
Accepted

Successfully Published Geoprocessing Service Has No Task

As commented by @KHibma: Double check the last note in that FAQ part you reference: If you're publishing a geoprocessing service, the ArcGIS Desktop and ArcGIS Server versions must match. In ...
PolyGeo's user avatar
  • 65.2k
3 votes
Accepted

Key differences (pros and cons) between geoprocessing package and geoprocessing service

A geoprocessing package is a bundle of files that you can send to somebody else so that they can run the geoprocessing on their own computer. A geoprocessing service is an internet (web) based ...
Son of a Beach's user avatar
3 votes

Why does arcpy.Delete_management not work when published in web tool or Geoprocessing Service

It's very difficult to provide an exact answer without knowing a lot more details, but I'll comment on both the Delete tool and using it inside a GP Service. The Delete tool returns true when it does ...
KHibma's user avatar
  • 16.8k
2 votes
Accepted

What would cause a geoprocessing service to say "Cannot Open 'FeatureClass' Failed to Execute"?

does arcpy.da.insertcursor fail to open if there's another insertcursor open simultaneously? (I hope not...) Yes it will fail, as this guarantees database integrity. From the ESRI guide on Cursors ...
Mintx's user avatar
  • 5,396
2 votes

ArcGIS Server - Can python GP services returns json data to client through REST?

I think that this is possible as long as the gp service that you have dumps it as a json and then you can make the call to that output from your JS. See this thread for more info. RESTful ...
Geoffrey West's user avatar
2 votes
Accepted

Retrieving user information in ArcGIS Server token protected geoprocessing service using ArcPy?

It is not mentioned anywhere in any esri doc, but there is a way to have the user info from a token. You have to use arcgis/rest/self service like this: https://<servername>:6443/arcgis/rest/...
Below the Radar's user avatar
2 votes
Accepted

ArcGIS 10.3.x - Publishing GP tools as GP services using Python 32- or 64-bit dependencies

I think the key concern, as raised by most people here, is whether or not your 3rd party libraries are x64-compatible. (Some libraries are simply pure python code that is architecture independent ...
michael's user avatar
  • 46
2 votes
Accepted

Inputting JSON file as variable in ModelBuilder using ArcGIS?

Yes, it's possible. Filtering MB parameters File Filter In short: Create variable of type File Right click > Model as Parameter Open Model properties > Parameters tab Under Filter column, specify ...
Paul's user avatar
  • 11.6k
2 votes

How to set up geoprocessing service to fill out PDF form from within Web AppBuilder

This is a partial answer; I'll add more after you provide further details. There is a chance the service doesn't like how you've created your pdf output. You're not using any arcpy functions, but ...
KHibma's user avatar
  • 16.8k
2 votes
Accepted

ArcGIS Server Geoprocessing Service failing on repeat call

This same thing occurs for me in ArcMap 10.4.1 Python 2.7.10 32bit and ArcGIS Server 10.5.1. Python 2.7.13 32bit. It occurs for Networkx 2.1 but does not occur for Networkx 1.7 The issue can be ...
Lowry's user avatar
  • 38
2 votes

Access MXD from geoprocessing service

Despite the fact you have a working solution, I'll add my 2 cents: 1) I wouldn't manually put anything in the JOBS directory. Yes, Server has access to this folder, but it places items there and ...
KHibma's user avatar
  • 16.8k
2 votes
Accepted

Allowing for Variable Inputs when Publishing Geoprocessing Tools to ArcGIS Server?

Any sort of list, whether the list is static and you've created it yourself with a, b, c or a list that is dynamically created when the tool runs, like version A, version B, version C will become SET ...
KHibma's user avatar
  • 16.8k
2 votes

Geoprocessing Service Failed: Could not service request

Set the ArcGIS Server logging level to Debug then run your service. In server manager click on the Logs tab, then settings upper right corner) and then pick Debug from the log level dropdown. After ...
Dowlers's user avatar
  • 2,334

Only top scored, non community-wiki answers of a minimum length are eligible