|
POST
|
Hi, I realize that arcgis server is creating a lot of locks on the geodatable SDE on oracle. The locks are the following: Object Name Object Type Lock Type Lock Owner Lock Mode 11442 Version state me shared It seems that a lock like this one is created for every running instance of the service. What is that kind of lock? How could it be created? What the Object Name 11442 is meaning? I can't find any info about this problem on google, so maybe someone here knows what it is about. Thank you for your help!
... View more
11-02-2016
12:35 PM
|
1
|
0
|
1015
|
|
POST
|
Is it possible to replace the default arcpy error message with a custom message using `arcpy.AddError(msg)` or else for a GP Service published into ArcGIS Server? if I use: arcpy.AddError("This is my custom error message") My custom message only appears printed in the details. like this: (sorry its in french): { error : { code: 400, message: "Unable to complete operation.", details: [ "Erreur d’exécution de l’outil. AppLogin Job ID: jfe0aa728897644eb9344fa9fc7a48864 : This is my custom error message Échec de l’exécution de (AppLogin). Échec de l’exécution de (AppLogin)." ] } What I want instead its just: { error : { code : 400, message : "This is my custom error message" } }
... View more
10-12-2016
12:34 PM
|
0
|
2
|
1315
|
|
POST
|
I want to publish a GP Service to ArcGIS Server without default input parameter. However, I also want that GP Service to return an error when no input parameter is provided. How could I do so? ArcGIS wont let met publish a GP Service that returns an error, and if I run it with a valid input value, it will be defined as the default value and I wont be able to remove it.
... View more
10-12-2016
05:52 AM
|
0
|
0
|
835
|
|
POST
|
I now use the full path to a .sde file located somewhere that both my desktop and the server have access. That solve the problem as expected. However, there is still something strange that happen. I have many GP Services to publish, and I have to close/reopen ArcMap between every publishing process. If not, I got the cannot open table error in the server logs when I call the service through REST. Any Idea why? All GP Services use the same path to the same .sde file as workspace.
... View more
09-29-2016
08:05 AM
|
0
|
0
|
3118
|
|
POST
|
Joshua Bixby suggestion to use an absolute path to the SDE connection file instead of using the "Database Connection" shortcut was a good idea. I copied the desired connection file into a shared server that both my desktop and arcgis server have access. I now use this file to define the arcpy.env.workspace, and it works.
... View more
09-26-2016
10:39 AM
|
1
|
1
|
3118
|
|
POST
|
Joshua Bixby: but if I put the server path instead, wont I be able to publish the service because it will fails on my desktop?
... View more
09-26-2016
10:13 AM
|
0
|
2
|
3118
|
|
POST
|
I think it is a good idea. I would like to try, but I dont manage the server myself, so I dont kow the path of the Database Connections folder on the server. I will ask for this information and come back with the result.
... View more
09-26-2016
10:09 AM
|
0
|
3
|
3118
|
|
POST
|
I have problem defining arcpy.env.workspace in a separate module when publishing the script as a Geoprocessing Service on arcgis server. For instance: my main tool script: from myModule import myTool workspace = "Database Connections\\GEOP011@demma18.sde" tableName = "DEMMA18.MyTable" myTool.execute(workspace, tableName) myModule.myTool: import arcpy def execute(workspace, tableName) arcpy.env.workspace = workspace doSomething(tableName) def doSomething(tableName) with arcpy.da.SearchCursor(tableName, ["OBJECTID"]) as cursor: for row in cursor: print(row) When published to the server, this script will return error : cannot open DEMMA18.MyTable However, if I put the same code in a single .py file it runs on the server without error. Any Idea what is going wrong?
... View more
09-26-2016
10:00 AM
|
0
|
8
|
5005
|
|
IDEA
|
Thank you very much! I have ask in many forums and look in the documentation and I have never found that information. Do you know, in reverse, if it's possible to retrieve the token information from a username? For instance, get the list of active tokens for a perticular user or just knowing if a token is active for a user or not
... View more
09-22-2016
05:04 AM
|
0
|
0
|
1417
|
|
IDEA
|
Let say you have a geoprocessing service made of a python script. This GP service is protected with token. It could be very useful to be able to retrieve the info of the user who made a request to this service. (username, fullname, role, email, etc...) With the token security, you can disable or enable requests to a service, but in the GP service, different action could be made depending of the user who made the request. For instance, imagine a GP service that allow editing some fields values in a table. It would be nice if we could allow edits on perticular rows depending of the user. Without the information about the user, everyone who has a token can edit all the rows.
... View more
09-15-2016
06:31 AM
|
2
|
2
|
1619
|
|
POST
|
I have published to arcgis server a python script that output a feature class. I would like to round coordinates of the REST output. I have tryed to use the XYResolution envrionement setting in the python script but it is ignored arcpy.env.XYResolution = "0 Meters" In the JSON output from the REST api, the geometry is not rounded like this "geometry": { "x": -7498445.5090999994, "y": 6161009.2334999964 }
Any idea why?
... View more
08-30-2016
07:34 AM
|
0
|
0
|
1024
|
|
POST
|
After a long idle time (several hours), the Publisher returns the following errors: High Unresolved 00178 Data: C:\Windows\bfsvc.exe, used by Script Script cannot be copied to the server
... View more
07-28-2016
05:49 AM
|
0
|
0
|
1876
|
|
POST
|
Ok I get it. It's true that it's not an onerous change. I wonder if the reason why arcgis is modifiying the script and the way modules are imported during the publish process is to ensure that if the script was made with python3 (arcgis pro), it will be compatible with python2.7 installed on arcgis server? I have opened a python console on the server and doing import urllib2 is working.
... View more
07-21-2016
07:55 AM
|
0
|
0
|
1876
|
|
POST
|
I am not sure to understand your answer. I am using python 2.7 only, on server and on desktop, not python3.
... View more
07-21-2016
07:07 AM
|
0
|
2
|
1876
|
|
POST
|
My organization just been equiped with ArcMap and ArcGIS Server and I already encountered problem when trying to publish python script as geoprocessing services when some python modules are imported Those problematic python modules I have encoutered so far are urllib2 and uuid If you do import urllib2 or import uuid , your script cannot published on the server, the publishing tool go idle and you have to kill the process. But, if you do from urllib2 import * or from uuid import * , your script can be published. This workaround can be problematic if classes or method in two modules have the same name. Is this a problem ESRI is aware of? Why those particular modules are causing this error?
... View more
07-20-2016
05:57 AM
|
0
|
6
|
3683
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 06-03-2024 10:33 AM | |
| 2 | 05-14-2025 10:45 AM | |
| 1 | 04-12-2022 07:00 AM | |
| 1 | 02-26-2025 05:37 AM | |
| 1 | 01-30-2023 11:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|