POST
|
Hmm..I couldn’t think of any other generic reason for it to fail. Rather dumb question to ask but, I’m assuming the output has the same field as defined in the UniqueValueRenderer.
... View more
11-25-2014
02:38 PM
|
0
|
0
|
527
|
POST
|
Well, if that’s the case, is the output written to disk eg. scratchGDB ? Temporary feature layers cannot be drawn with result map services.
... View more
11-25-2014
02:32 PM
|
0
|
2
|
527
|
POST
|
11-25-2014
02:29 PM
|
0
|
0
|
527
|
POST
|
Yes. The symbology has to be defined through the Web API (eg. JavaScript API) when consumed in web applications. The other alternative for using the same symbology as in geoprocessing result is to use Result Map Service. But, creating a result map service adds a bit of overhead and used only for complex symbology and labels. For a simple symbology such as unique value renderer, it's better to set the symbology through the Web API.
... View more
11-25-2014
02:24 PM
|
2
|
5
|
942
|
POST
|
Are you running the published geoprocessing task in ArcGIS Desktop or consuming it in web applications? If it is in web applications, the symbology has to be defined by the client. If it is Desktop, yes it should draw the output with unique values symbology.
... View more
11-25-2014
11:46 AM
|
0
|
7
|
942
|
POST
|
Hmm..What is the output of your geoprocessing tool and what type of symbology is it?
... View more
11-25-2014
11:34 AM
|
2
|
9
|
942
|
POST
|
Martin, When you configured the geoprocessing tool in SLViewer, you would have noticed two options for featureset input parameter. Did you choose "Interactively" or "By selecting a layer from the map"? You can also enable Geoprocessing messages in your service and use debugging tools like fiddler to find the cause of failure.
... View more
04-20-2012
08:03 AM
|
0
|
0
|
189
|
POST
|
Knightdo, To understand what's happening try this simple exercise.. Publish a mxd document as map service and use it in SLViewer. Now, open the mxd document in ArcMap and pan, zoom the layer. Will the zoom/pan change reflect in SLViewer? No. That's exactly what's happening here as well. The gpservice is updating the layer extent in the map document. But, it will not affect the map service. The SLviewer communicates to MapService and GPService and brings together their functionality at the web browser. In other words, GPService is unaware of map service and vice versa. You have started out in the right direction, but we need to tweak our logic a bit to accomplish what you are trying to do here. 1. The GPService need to communicate the selected features to SLViewer. 2. The SLViewer should update the map service extent accordingly. To accomplish Step 1: Update your python code to create a output parameter. #uncomment Select_Analysis arcpy.AddMessage (where_clause) arcpy.Select_analysis(in_features, out_features, where_clause) arcpy.SetParameterAsText(1,out_features) To accomplish Step 2: The SLViewer will draw the output features as a layer. Use the Zoom To Layer tool in SLViewer to zoom to gp output feature layer. Hope that helps!
... View more
03-03-2012
08:47 AM
|
0
|
0
|
197
|
POST
|
Melissa, In asynchronous gp tasks, when a client(in your case flex app) submits a request with input parameters, the server validates the input parameters. If the parameters are valid, server creates a jobid, starts execution of the tool and sends the client the jobid. Using the jobid, the client makes subsequent request for the status of the job. When the job status is 'esrijobcompleted', the client downloads the results(output parameters) from the server. From your error message, it sounds like the task is progressing but fails half-way through.. Here's some suggestions to troubleshoot failed gp services. 1. Using ArcGIS Manager or ArcGIS Desktop, turn on Show Messages option for your geoprocessing service. 2. Run your gp task from flexviewer application. Note down the job id. 3. In your server machine, go to arcgisjobs directory. (C:\arcgisserver\arcgisjobs, if you have installed server with default location ). 4. Look for the folder with you gp service name and underneath it, you will find a folder with job id. 5. The geoprocessing task writes all outputs and messages to this directory. 6. Find messages.dat file. All geoprocessing tool messages will be written in it and it will help you troubleshoot further. 7. Look into the scratch folder. If the tool has succeeded, you will find a zip file. Hope this helps...
... View more
01-20-2012
12:11 PM
|
0
|
0
|
638
|
POST
|
Melissa, Something special about Select Layer by Location tool is that it will take only layers as input parameters. Featuresets are equivalent to Feature Class. So, I usually prepend the Select layer by Location tool with 'Make Feature Layer' tool for it to work successfully. Something to think about...
... View more
11-14-2011
08:52 AM
|
0
|
0
|
193
|
POST
|
Looks like a simple slip. The Geoprocessor url should point to gp task url but from the url you have specified it looks like it is pointing to GPServer. Can you try modifying it? Current Geoprocessor URL in your app: http://SERVER.NAME/ArcGIS/rest/services/ClipAndShip/GPServer Please modify it to: http://SERVER.NAME/ArcGIS/rest/services/ClipAndShip/GPServer/ExtractDataTask.
... View more
11-14-2011
08:27 AM
|
0
|
0
|
274
|
POST
|
Ok, got the buffer tool running...thanks for the help! Another question that is driving me crazy: How do I use a layer in a model on the server?! I can create a functional model....in this case one which does a buffer, selects points from a layer, then does summary statistics on those points. However, I cannot upload this model and have it work. At best I can get it to return an empty record set. I can move the tool to the table of contents and reference a layer in the map, but then my publish fails. The data extract widget is a good example of one which references multiple layers, but I don't know how it's done and as far as I can tell it is explained nowhere. Any help is very much appreciated! Thank in advance, Sean Here's a Geoprocessing Help doc that takes you step by step to publish a Extract Data geoprocessing service If you are new to Geoprocessing Services, some of the help docs listed below might help you get started. GP Service Step By Step: Buffer Points Key Concepts for Geoprocessing Services Publishing Geoprocessing Services
... View more
08-11-2011
02:25 PM
|
0
|
0
|
138
|
POST
|
Check out this Clip and Ship javascript sample ... It has widgets on top of the map.
... View more
06-16-2011
05:59 PM
|
0
|
0
|
126
|
POST
|
Hi all, I am unable to get a ResultImageLayer. I can get a GPFeatureRecordSetLayer using ResultData and add the feature geometries individually. I am using ArcServer 10.1 so it is not a pre-release problem. I can see the map service that accompanies the geoprocessing service and the legend / symbology in this map service. I am doing this with the JavaScriptAPI. Using Firefox I see a �??500 Internal Server Error�?� but there is no other messages. Could be as simple as my call: gp2.getResultImageLayer(jobInfo.jobId, "Test01", imageParameters, addGPServiceResult2, errorProcessing) function addGPServiceResult2(gpImageLayer) { map.addLayer(gpImageLayer); } I�??m not sure what the ParameterName �??Test01�?� should refer to although I�??ve tried ever possibility that seemed reasonable. Any help will be greatly appreciated. Thanks, Charles Charles, I'm assuming you must have resolved this problem. But, 'test01' is the name of the output parameter.
... View more
06-16-2011
05:45 PM
|
0
|
0
|
249
|
POST
|
Hi, Silverlight API provides two different methods to run a gp task. 1. gpTask.ExecuteAsync for synchronous execution type (Example) 2. gpTask.SubmitJobAsync for asynchronous execution type (Example) To find the execution type of your gp task, copy/paste the url that you used to initialize gp task in a browser. Look for its execution type property. That will help you determine the appropriate method you should use.
... View more
06-16-2011
05:39 PM
|
0
|
0
|
216
|
Title | Kudos | Posted |
---|---|---|
2 | 11-25-2014 02:24 PM | |
2 | 11-25-2014 11:34 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|