POST
|
When reading the API reference for searching specific items there is a notice on all search pages: Care should be taken when using ArcGIS REST API search operations (search, user search, group search, group content search) to find items, groups, and users programmatically. The Portal uses a powerful search engine to index information and to allow full text searching on it. This search engine uses many different inputs to find the appropriate results and rank them. This often makes search 'fuzzy', making it ideal for human interaction, but not necessarily ideal for looking for specific records programmatically. Developers should avoid using search to find specific items (e.g. by title) as the results of these types of queries might change as the search engine evolves. The bold text says that I should avoid using search, as a developer, to find specific items. If I not should use search, which I do at the moment, what should I use instead?
... View more
06-05-2019
11:02 PM
|
2
|
1
|
605
|
POST
|
Hi, I've installed ArcGIS Pro 2.3.3 and want to upgrade arcgis api to 1.6.1 but I am not able to get the version higher than 1.5.3. using conda upgrade -c esri arcgis What am I doing wrong? Cheers. Robert
... View more
05-24-2019
12:59 AM
|
0
|
5
|
665
|
POST
|
Forgot to mention that is was on a ArcGIS Server 10.6 The problem went away after we installed all existing patches until this moment (I am not sure which one solved the problem.)
... View more
11-07-2018
05:40 AM
|
2
|
1
|
2276
|
POST
|
After I posted yesterday I created a new service which runs the following: runner = 0
while runner < 30:
arcpy.AddMessage("Run {}".format(runner))
time.sleep(60)
runner += 1
And noticed the following behavior: After approximately 10 minutes: Job Details: j01d59f56600943ff8bb75d8cbc9445dd (Dummy) Job ID: j01d59f56600943ff8bb75d8cbc9445dd Job Status: esriJobFailed Job Messages: esriJobMessageTypeInformative: Submitted. esriJobMessageTypeInformative: Executing... esriJobMessageTypeInformative: Executing (Dummy): DummyTool esriJobMessageTypeInformative: Start Time: Thu Nov 1 15:42:09 2018 esriJobMessageTypeInformative: Running script DummyTool... esriJobMessageTypeInformative: Run 0 esriJobMessageTypeInformative: Run 1 esriJobMessageTypeInformative: Run 2 esriJobMessageTypeInformative: Run 3 esriJobMessageTypeInformative: Run 4 esriJobMessageTypeInformative: Run 5 esriJobMessageTypeInformative: Run 6 esriJobMessageTypeInformative: Run 7 esriJobMessageTypeInformative: Run 8 esriJobMessageTypeInformative: Run 9 esriJobMessageTypeInformative: Run 10 esriJobMessageTypeError: Failed. esriJobMessageTypeInformative: Processing request took longer than the usage timeout for service 'Pipelog/pipelog.GPServer'. But after pressing refresh I could see that the job was continuing to the end of the script: Job Details: j01d59f56600943ff8bb75d8cbc9445dd (Dummy) Job ID: j01d59f56600943ff8bb75d8cbc9445dd Job Status: esriJobFailed Job Messages: esriJobMessageTypeInformative: Submitted. esriJobMessageTypeInformative: Executing... esriJobMessageTypeInformative: Executing (Dummy): DummyTool esriJobMessageTypeInformative: Start Time: Thu Nov 1 15:42:09 2018 esriJobMessageTypeInformative: Running script DummyTool... esriJobMessageTypeInformative: Run 0 esriJobMessageTypeInformative: Run 1 esriJobMessageTypeInformative: Run 2 esriJobMessageTypeInformative: Run 3 esriJobMessageTypeInformative: Run 4 esriJobMessageTypeInformative: Run 5 esriJobMessageTypeInformative: Run 6 esriJobMessageTypeInformative: Run 7 esriJobMessageTypeInformative: Run 8 esriJobMessageTypeInformative: Run 9 esriJobMessageTypeInformative: Run 10 esriJobMessageTypeError: Failed. esriJobMessageTypeInformative: Processing request took longer than the usage timeout for service 'Pipelog/pipelog.GPServer'. esriJobMessageTypeInformative: Run 11 esriJobMessageTypeInformative: Run 12 esriJobMessageTypeInformative: Run 13 esriJobMessageTypeInformative: Run 14 esriJobMessageTypeInformative: Run 15 esriJobMessageTypeInformative: Run 16 esriJobMessageTypeInformative: Run 17 esriJobMessageTypeInformative: Run 18 esriJobMessageTypeInformative: Run 19 esriJobMessageTypeInformative: Run 20 esriJobMessageTypeInformative: Run 21 esriJobMessageTypeInformative: Run 22 esriJobMessageTypeInformative: Run 23 esriJobMessageTypeInformative: Run 24 esriJobMessageTypeInformative: Run 25 esriJobMessageTypeInformative: Run 26 esriJobMessageTypeInformative: Run 27 esriJobMessageTypeInformative: Run 28 esriJobMessageTypeInformative: Run 29 esriJobMessageTypeInformative: Completed script DummyTool... esriJobMessageTypeInformative: Succeeded at Thu Nov 1 16:12:10 2018 (Elapsed Time: 30 minutes 0 seconds) Job Status says failed but the last message says succeeded. I think it's a bug and will report this to Esri. By the way, when I set the timeout to less than 10 minutes, the job is terminated after the time period. Robert
... View more
11-02-2018
12:13 AM
|
0
|
2
|
2276
|
POST
|
Hi, My GP service times out after approximately 10 minutes. I've increased "The maximum time a client can use a service" to 2400 seconds, but this value is not honored. When I set the value low, I get the following error when the timeout period is met: esriJobMessageTypeInformative: java.lang.Exception: Processing request took longer than the usage timeout for service 'Pipelog/pipelog.GPServer'. When I set the value to 2400 seconds after approximately 10 minutes it fails like this: esriJobMessageTypeInformative: Processing request took longer than the usage timeout for service 'Pipelog/pipelog.GPServer'. It looks like there are two different timeout settings, but I only know how to set the timeout threshold on the GP Service. Someone experienced the same challenge as I have? And hopefully a solution for this. Robert
... View more
11-01-2018
02:29 AM
|
0
|
4
|
2952
|
POST
|
I finally found a solution to my problem. It turned out to be very simple, I should clear the workspace cache at the end of my script: arcpy.ClearWorkspaceCache_management() This way all the connections to the sde workspace are disconnected, and the next time the service task is called it runs on fresh data. I do not understand why this does not happen automatically when a service task finishes. Services are supposed to be state-less. I would suggest that esri adds this this logic automatically to all GP service tasks when they are published to the server.
... View more
10-11-2018
12:37 AM
|
2
|
0
|
935
|
POST
|
Hi, I publish a Python Toolbox via the admin Rest End-point on our ArcGIS Server. When publishing a geoprocessing service there is an option to use a result map server to display the results. I have not been successful in doing this. I use an in_memory feature class to output my data, and define my output as the following parameter: consumption_points = arcpy.Parameter(
displayName="Aftagerpunkter",
name="consumption_points",
datatype="DEFeatureClass",
parameterType="Optional",
direction="Output")
consumption_points.symbology = os.path.join(
os.path.dirname(__file__),
'consumption_points.lyr') When not using the option to use a result map server, I can publish the toolbox and use the tasks in ArcGIS Pro and ArcMap. But when publishing with the option to us a result map server, i get no results back from the service. What do I have to do to get the service published with a result map server that works? Without publishing from ArcGIS Pro/ArcMap but with using the rest endpoint on ArcGIS Server. Robert
... View more
09-25-2018
12:25 AM
|
0
|
0
|
425
|
POST
|
Thanks. Found this on licensing in ArcGIS Pro. It does not sound like there is an option of setting what license to use anymore, only on checking what licenses there are available.
... View more
07-17-2018
11:34 PM
|
0
|
0
|
538
|
POST
|
When using the following code using the python interpreter from ArcGIS Pro: import arceditor
import arcpy
print(arcpy.ProductInfo()) The result is: ArcInfo When running using ArcGis Desktop 10.6 python it shows the expected result: ArcEditor I experienced this bug before in the 10.3 release of ArcGIS Desktop. Is this the correct behavior for ArcGIS Pro related python? Or is it the old bug acting up again? - Robert
... View more
07-17-2018
04:51 AM
|
0
|
2
|
704
|
POST
|
I am going in a different direction now. Stumbled upon Daniel Garcia's answer in this thread. Which basically boils it down to this: Develop your toolbox (with multiple tools) Put the code a place the server can access it Run the createService on the ArcGIS Server using an adapted version of Daniel's json file. After the service has been published you can update the code, restart the service and your new code is active right away. I'm not sure if there are any caveats yet. But it looks to me like a more developer friendly way of publishing geoprocessing services. Now I easily can combine all my geoprocessing tools in one toolbox, and publish all at once. Robert
... View more
07-10-2018
11:34 PM
|
0
|
0
|
2423
|
POST
|
It is a valid toolbox. Just the one generated in ArcCatalog. Haven't done anything with it .
... View more
07-10-2018
10:38 PM
|
0
|
0
|
2423
|
POST
|
That doesn't help either. Thanks for the help anyway...
... View more
07-10-2018
01:43 AM
|
0
|
0
|
2423
|
POST
|
I tried this both in the .pyt file: class Toolbox(object):
def __init__(self):
"""Define the toolbox (the name of the toolbox is the name of the
.pyt file)."""
self.label = "Toolbox"
self.alias = "Toolbox"
# List of tool classes associated with this toolbox
self.tools = [Tool] And specifying it as the extra parameter in the ImportToolbox (or the AddToolbox) method. I still get the error that the file cannot be found. Robert
... View more
07-10-2018
01:25 AM
|
0
|
2
|
2423
|
POST
|
Hi, I am using ArcGIS Desktop 10.6 and would like to publish my python toolboxes using Creategpsddraft but I am running into problems in the very early stages. It cannot read my .pyt toolbox. I get the following error: IOError: The toolbox file d:/temp/Toolbox.pyt was not found. I have tried it on two different computers with the same result. I have created the toolbox.pyt in ArcCatalog and haven't changed it. import arcpy
toolbox = "d:/temp/Toolbox.pyt"
# toolbox = "d:/temp/Toolbox1.tbx"
arcpy.ImportToolbox(toolbox) If I uncomment the line and import the tbx (which also is just a default toolbox) it works ok. According to this post it should work just fine. Can someone please tell me what I am doing wrong! Thanks Robert
... View more
07-10-2018
12:37 AM
|
0
|
7
|
3275
|
Title | Kudos | Posted |
---|---|---|
1 | 01-28-2016 11:46 PM | |
1 | 06-07-2018 10:23 PM | |
2 | 11-07-2018 05:40 AM | |
2 | 10-11-2018 12:37 AM | |
2 | 06-05-2019 11:02 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|