|
POST
|
I should add what the script tool parameters looks like: I've set the input feature to be a feature set and defined the schema as a newly created point feature class. When run in ArcMap, it gives me the ability to digitize a feature or browse to an existing feature: Something that may help is including the original feature(s) in the service, so the input features are populated at Rest: This does't mean it will only run with those features, but instead there's a default value. You can run the tool directly from the REST endpoint without needing to update any parameters:
... View more
05-05-2017
09:50 AM
|
0
|
0
|
898
|
|
POST
|
Thanks for the breakdown, Robert. In regards to #1, the best way to debug isn't always by taking it back to the Desktop environment. Have you enabled INFO or at least WARNING/SEVERE messages on the GP task? Is it a Python error, or GP runtime error? Have you tried this in an OOTB application with an OOTB widget like the WAB and GP widget? For #2, I don't work much with JS, but a geoprocessing feature set would inherit the spatial extent information that was used to define the template for the feature set. For the last point, a feature class and a feature set on the web are both JSON based on geometry objects. This allows GP tasks to work against feature services. The fields are also going to be defined by the template you set for the feature set. If the template resides in an FGDB or SDE database, then the fields will honor the requirements of that workspace, (all caps OBJECTID, etc). Is there a sample script you've worked with that works in DT but fails to run when it's a service? Using the very simple example script below, I see no problems using feature sets or arcpy.da.SearchCursor: import arcpy, arcpy.da
inFeatures = arcpy.GetParameter(0)
arcpy.AddMessage("In feature fields:")
fields = arcpy.ListFields(inFeatures)
for field in fields:
arcpy.AddMessage(" " + field.name,)
arcpy.AddMessage("In feature records:")
with arcpy.da.SearchCursor(inFeatures,["*"]) as cursor:
for row in cursor:
arcpy.AddMessage(" " + str(row))
arcpy.Buffer_analysis(inFeatures,"in_memory/outBuffer","50 Meters")
arcpy.AddMessage("Out feature fields:")
fields = arcpy.ListFields("in_memory/outBuffer")
for field in fields:
arcpy.AddMessage(" " + field.name,)
arcpy.AddMessage("Out feature records:")
with arcpy.da.SearchCursor("in_memory/outBuffer",["*"]) as cursor:
for row in cursor:
arcpy.AddMessage(" " + str(row))
arcpy.SetParameter(1,"in_memory/outBuffer") When run in DT: When run in the WAB using the out of the box GP widget: Input feature set: {"geometryType":"esriGeometryPoint","features":[{"geometry":{"x":-10913414.138825795,"y":5223384.6259502,"spatialReference":{"wkid":102100}}},{"geometry":{"x":-11077295.127469169,"y":4753755.524166201,"spatialReference":{"wkid":102100}}},{"geometry":{"x":-10536732.463436546,"y":4922528.482619826,"spatialReference":{"wkid":102100}}},{"geometry":{"x":-10426663.142705921,"y":5267412.35424245,"spatialReference":{"wkid":102100}}},{"geometry":{"x":-10935428.00297192,"y":5551146.603236948,"spatialReference":{"wkid":102100}}}],"sr":{"wkid":102100}} Output results: {"jobId":"jee4650a66f2c4836a7bff7b2370b5bb7","jobStatus":"esriJobSucceeded","results":{"Output":{"paramUrl":"results/Output"}},"inputs":{"Input_Feature":{"paramUrl":"inputs/Input_Feature"}},"messages":[{"type":"esriJobMessageTypeInformative","description":"Executing (Feature Set Buffer): FeatureSetBuffer \"Feature Set\""},{"type":"esriJobMessageTypeInformative","description":"Start Time: Thu May 04 17:03:43 2017"},{"type":"esriJobMessageTypeInformative","description":"Executing (FeatureSetBuffer): FeatureSetBuffer \"Feature Set\""},{"type":"esriJobMessageTypeInformative","description":"Start Time: Thu May 04 17:03:43 2017"},{"type":"esriJobMessageTypeInformative","description":"Running script FeatureSetBuffer..."},{"type":"esriJobMessageTypeInformative","description":"In feature fields:"},{"type":"esriJobMessageTypeInformative","description":" OBJECTID"},{"type":"esriJobMessageTypeInformative","description":" SHAPE"},{"type":"esriJobMessageTypeInformative","description":"In feature records:"},{"type":"esriJobMessageTypeInformative","description":" (1, (-10913414.138825797, 5223384.62595021))"},{"type":"esriJobMessageTypeInformative","description":" (2, (-11077295.127469167, 4753755.5241662115))"},{"type":"esriJobMessageTypeInformative","description":" (3, (-10536732.463436548, 4922528.482619822))"},{"type":"esriJobMessageTypeInformative","description":" (4, (-10426663.142705921, 5267412.3542424515))"},{"type":"esriJobMessageTypeInformative","description":" (5, (-10935428.002971917, 5551146.603236951))"},{"type":"esriJobMessageTypeInformative","description":"Out feature fields:"},{"type":"esriJobMessageTypeInformative","description":" OBJECTID"},{"type":"esriJobMessageTypeInformative","description":" SHAPE"},{"type":"esriJobMessageTypeInformative","description":" BUFF_DIST"},{"type":"esriJobMessageTypeInformative","description":" ORIG_FID"},{"type":"esriJobMessageTypeInformative","description":"Out feature records:"},{"type":"esriJobMessageTypeInformative","description":" (1, (-10913414.1388, 5223384.626000001), 50.0, 1)"},{"type":"esriJobMessageTypeInformative","description":" (2, (-11077295.1275, 4753755.5242), 50.0, 2)"},{"type":"esriJobMessageTypeInformative","description":" (3, (-10536732.4634, 4922528.4826000035), 50.0, 3)"},{"type":"esriJobMessageTypeInformative","description":" (4, (-10426663.1427, 5267412.354199997), 50.0, 4)"},{"type":"esriJobMessageTypeInformative","description":" (5, (-10935428.003, 5551146.603200003), 50.0, 5)"},{"type":"esriJobMessageTypeInformative","description":"Completed script FeatureSetBuffer..."},{"type":"esriJobMessageTypeInformative","description":"Succeeded at Thu May 04 17:03:45 2017 (Elapsed Time: 1.87 seconds)"},{"type":"esriJobMessageTypeInformative","description":"Succeeded at Thu May 04 17:03:45 2017 (Elapsed Time: 1.89 seconds)"}]} Of course this is a very simple example and you're likely doing something more complex but the underlying idea is that if it works in Desktop, in nearly all cases it will work exactly the same as a service.
... View more
05-04-2017
05:08 PM
|
0
|
0
|
898
|
|
POST
|
You'll have to describe what doesn't work means. By default, I don't think SSL is enabled at 10.0, so I think you should focus on http. If you navigate to http://localhost/arcgis/manager or http://<machine_name>/arcgis/manager what do you get? Are you unable to connect at all, (unlikely as you can get to REST)? Is it an authentication issue? If so, are you logged in with a user that's part of the agsadmin group? Finally, 10.0 is deprecated and has been for some time. If you're getting started with ArcGIS Server you should be working with a more current version.
... View more
05-04-2017
04:06 PM
|
1
|
2
|
4643
|
|
POST
|
Can you check config-store\services and directories\arcgissystem\arcgisinput for the service?
... View more
05-03-2017
10:41 AM
|
0
|
3
|
3473
|
|
POST
|
I can't imagine how to decrypt an encrypted password for a service account would ever be documented. If the password changes, you should create a new configuration file or use Chef where you can control the deployment of your site.
... View more
05-03-2017
10:31 AM
|
0
|
1
|
1980
|
|
POST
|
At 10.0, you reach Server Manager through ports 80 and 443. Starting at 10.1, you'll reach Manager through 6080 and 6443.
... View more
05-03-2017
10:25 AM
|
1
|
0
|
4643
|
|
POST
|
This is a limitation at 10.5, unfortunately. At 10.5.1, all of the regions listed on that page work with Cloud Formation.
... View more
05-03-2017
10:08 AM
|
0
|
0
|
4360
|
|
POST
|
I'd say the convenient thing about feature sets in Desktop and their associated GPFeatureRecordSetLayer equivalents is that you typically don't need to provide JSON as input on the desktop side, yet the GP task should perform exactly the same in either environment. Typically, I've seen these tasks revolve around digitizing features in the application, which work fine using Feature Sets in Deskop and the equivalent GPFeatureRecordSetLayer on the Server. Can you describe, (no pun intended), a workflow or specific tools that don't work well when going from the desktop environment to the Server environment? Are you mostly interested in the Describe tool?
... View more
05-02-2017
08:26 PM
|
0
|
0
|
3445
|
|
POST
|
What is the GP service supposed to do? Digitize a point and do some processing? A feature set in Desktop is the same as a GPFeatureRecordSetLayer on the web, so once you define the template, you should be able either digitize a point in ArcMap or use an existing feature class as input. Once it's published, a web application will give you the option to draw a point in the application as the input point(s) to the GP task. The WAB also would allow you to provide a service URL as input. A quick tour of authoring and sharing geoprocessing services—Documentation | ArcGIS Enterprise A quick tour of using Feature Set and Record Set—Help | ArcGIS for Desktop
... View more
05-02-2017
07:04 PM
|
0
|
0
|
3445
|
|
POST
|
Can you try with a region that supports Version 2, (for example eu-west-1), as outlined here: AWS Regions and Endpoints - Amazon Web Services
... View more
05-02-2017
12:59 PM
|
0
|
2
|
4360
|
|
POST
|
What region are you deploying this in? You're trying at 10.5?
... View more
05-02-2017
12:32 PM
|
0
|
0
|
4360
|
|
POST
|
As long as the system requirements and prerequisites for Portal HA are met, I can't see there being a problem.
... View more
05-01-2017
11:00 AM
|
0
|
0
|
1118
|
|
POST
|
I'm glad that you were able to sort out the problem, but I suggest you start planning the migration to a newer version of the software as 10.1 will no longer be supported after January 1st, 2018. http://downloads.esri.com/support/product%20life%20cycle/server_gis/ArcGISServer_PLC.pdf
... View more
04-28-2017
03:26 PM
|
0
|
0
|
1182
|
|
POST
|
Inspecting the network traffic will be the best way to determine what the problem is. Either install Fiddler or use the browsers developer tools to determine what request is failing by looking at the response codes and body of the response.
... View more
04-28-2017
03:23 PM
|
0
|
0
|
778
|
|
POST
|
"Packaging succeed but publishing failed" typically means that the Server will have recorded some type of error. From the looks of your initial post, the logs seem to be pretty busy so what I would try is to clean the logs if possible, set the logs to Debug, try again, and then set the logs back to Warning or whatever they were at. Then, you at least have the logs prepared if you're going to contact Support, as they will likely ask for them.
... View more
04-28-2017
03:20 PM
|
2
|
1
|
1791
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-28-2026 06:05 AM | |
| 1 | 08-26-2016 10:10 AM | |
| 2 | 02-22-2024 07:22 AM | |
| 1 | 06-07-2024 07:11 AM | |
| 4 | 12-12-2024 08:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-08-2026
07:43 AM
|