|
POST
|
I have the same error message on my geoprocessing service. Did you ever solve the problem? Failed to find the map
... View more
06-02-2016
05:16 AM
|
0
|
0
|
3636
|
|
POST
|
I have developed an arcpy script which is published as a geoprocessing service in ArcGIS for Server 10.2, which is used in an web application. The GP-Service has an associated MapService to show the results in the map. The service is running some times and everthing is alright, but eventually the error "Failed to find the map." is occurring. After that, the service is not usable anymore, until I restart it in ArcGIS Server Manager. I don't have any clue on how to fix this issue, any ideas? The MapServer is associated to the GP-Server, there are no other messages in the log / protocoll of the server.
... View more
06-02-2016
05:14 AM
|
1
|
0
|
2551
|
|
POST
|
I have the same problem. I have written a python script which should apply a symbology from a lyr file to the output layer. The path to the file is hard coded in the script. The folder has read acces for the user of the ArcGIS for Server Windows service. The tool ApplySymbologyFromLayer_management does not fire an exception. But in the map service of the gp service, the applied symbology does not show up. The features are always symbolized with the symbology used when publishing the geoprocessing service. features = arcpy.GetParameterAsText(0)
whereClause = arcpy.GetParameterAsText(1)
arcpy.MakeFeatureLayer_management(features, "layerName", whereClause)
symbology = 'C:\\data\\gp\\mysymbology.lyr'
arcpy.ApplySymbologyFromLayer_management("layerName", symbology)
arcpy.SetParameterAsText(2, "layerName")
... View more
08-06-2015
05:53 AM
|
0
|
0
|
1779
|
|
POST
|
I would disagree, tables are not feature classes. A feature class is special table with a geometry column (as Vince said). So every feature class is a table, with at least two columns: Object ID and Geometry (or Shape). I would have placed a link to Esri File Geodatabase API documentation, but i cannot find it. Is this not available in public web?
... View more
03-20-2015
07:51 AM
|
0
|
1
|
2688
|
|
POST
|
I am getting this error message when a custom tool implemented in C# uses "in memory" workspace for output of result data. I get an additional message: "ERROR 001249: Cannot package result <value> because of errors in the result." Strangely, <value> is blank in the actual error message. Any hints how to solve this error(s)?
... View more
10-07-2014
02:11 AM
|
1
|
0
|
1904
|
|
POST
|
You should be able to check if the IApplication.Document property is null. If it is not null, a file is open. I haven't checked if this works, but this would be my approach.
... View more
10-07-2014
01:13 AM
|
1
|
2
|
1521
|
|
DOC
|
Did you ever wanted to run a tool in Python dynamically? Without "hard coding" the tool name and the parameters in a script? This is the normal, static syntax to call a tool:
result = arcpy.Buffer_management("input", "output", 100)
If you need to run a tool depending on a condition, and you want to make the name and the parameters dynamic, you can use this syntax:
tool = "Buffer_management"
arguments = ["input", "output", 100]
result = getattr(arcpy, tool)(*arguments)
So the built-in gettattr-method calls the method tool with arguments as parameter values, the asterisk is used to unpack the list of arguments for the call of the tool.
... View more
10-06-2014
06:44 AM
|
4
|
8
|
7775
|
|
POST
|
Hi Jake, this is true! Another aspect of my tool is that it is written in C#, and I have to make a registry change to be able to see (and use) the edit button: 27000 - Enable ArcMap to create documentation for custom geoprocessing tools Which leads me to an ArcObjects-related question. My GP-Tool implements IGPFunction.MetadataFile() which is a getter to return the file name of the metadata.xml file. The XML file contains the item description, but is not created until I edit the Item Description in ArcMap/ArcCatalog. Is there a way to automatically create this file, so that I only have to insert the missing item description text? If this could be scriptable with ArcObjects or Python, this would make the publishing process even more automatic.
... View more
10-02-2014
04:50 AM
|
0
|
0
|
2208
|
|
POST
|
I am trying to automate the process of publishing a geoprocessing service to ArcGIS for Server 10.2.2, using a python script: import arcpy result = r"C:\data\ContourLineFunction.rlt" connectionPath = r"C:\Users\sof\AppData\Roaming\ESRI\Desktop10.2\ArcCatalog\arcgis on localhost_6080 (admin).ags" sddraft = "ContourLineFunction.sddraft" sd = "ContourLineFunction.sd" serviceName = "ContourLineFunction" # create service definition draft arcpy.CreateGPSDDraft( result, sddraft, serviceName, server_type="ARCGIS_SERVER", connection_file_path=connectionPath, copy_data_to_server=False, folder_name=None, summary="lorem ipsum", tags="gp", executionType="Synchronous", resultMapServer=False, showMessages="INFO", maximumRecords=1000, minInstances=1, maxInstances=5, maxUsageTime=100, maxWaitTime=10, maxIdleTime=180) analyzeMessages = arcpy.mapping.AnalyzeForSD(sddraft) The result from the AnalyzeForSD function contains multiple errors 001243: { 'errors': { (u'ERROR 001243: The ContourLineFunction/in_string_version parameter is missing a syntax dialog explanation in the item description', 92): [], (u'ERROR 001243: The ContourLineFunction/yCoordinate parameter is missing a syntax dialog explanation in the item description', 92): [], (u'ERROR 001242: Tool ContourLineFunction is missing item description summary', 80): [], (u'ERROR 001243: The ContourLineFunction/xCoordinate parameter is missing a syntax dialog explanation in the item description', 92): [], (u'ERROR 001243: The ContourLineFunction/radius parameter is missing a syntax dialog explanation in the item description', 92): []} ... I know I can get rid of the errors by manually entering item descriptions in the Service Editor in ArcMap/ArcCatalog. I have tried to find the settings in the sddraft file, but nothing looked like the right place for the values. I have tried to find something inside the .rlt-file (geoprocessing result), but this was all binary stuff inside a ZIP file 😞 How can I automate the setting of the item descriptions?
... View more
10-02-2014
12:44 AM
|
0
|
2
|
4890
|
|
POST
|
Good hint to use feature datasets! Unfortunately, feature datasets are not used in our case.
... View more
08-06-2014
02:22 AM
|
0
|
0
|
3906
|
|
POST
|
My solution for our customer is to administer the privileges in a CSV-file. When updating the feature classes, the privileges a read from the file (not from the existing feature classes) and set via Change Privilege using a python script.
... View more
08-06-2014
02:21 AM
|
0
|
0
|
3906
|
|
POST
|
Thanks for the code! I will try it. Although it would be quite nice if the geodatabase administration toolbox would also contain a GP tool to read privileges from a dataset, accordingly to Change Privileges tool.
... View more
08-04-2014
10:18 PM
|
1
|
1
|
3906
|
|
POST
|
Hi Jake, thanks for this function, I can use it to write the privileges. But how can I read the existing privileges from the existing feature class? I havent found a function for that. I hoped the Describe-function can help me, but I could not find a Describe object containing the privileges of SDE tables / feature classes.
... View more
08-04-2014
08:44 AM
|
0
|
4
|
3906
|
|
POST
|
Is there a simple way to duplicate privileges from a SDE feature class to another one? The szenario is a nightly update process which builds an updated featureclass FC_new, deletes FC and renames FC_new to FC. Before deleting FC, the privileges for different SDE roles/users should be duplicated from FC to FC_new. Otherwise, they are lost. If there are any database-related solutions, they are also welcome 🙂 I am using SQL Server and ArcSDE 10.2.2.
... View more
08-04-2014
06:11 AM
|
1
|
9
|
5258
|
|
DOC
|
From a european perspective: John Cleese rants - Soccer vs Football - YouTube
... View more
07-02-2014
12:02 AM
|
11
|
0
|
12788
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-08-2017 04:46 AM | |
| 1 | 08-08-2017 07:35 AM | |
| 1 | 08-04-2014 06:11 AM | |
| 1 | 08-04-2014 10:18 PM | |
| 1 | 06-02-2016 05:14 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|