|
POST
|
I think the short answer is still, you don't, unfortunately. The Create GIS Server Connection File tool isn't/wasn't a core geoprocessing tool but an ArcPy Mapping function, and the ArcPy Mapping module was completely overhauled between ArcMap and Pro. I haven't double checked in Pro 2.7, but last time I looked into this issue there was no good solution. UPDATE: See https://community.esri.com/t5/arcgis-pro-questions/how-to-create-an-arcgis-server-connection-file-with-the-python-3/m-p/1047998#M39804 for an option on using the undocumented arcgisscripting._createGISServerConnectionFile.
... View more
04-01-2021
08:20 AM
|
3
|
0
|
6272
|
|
POST
|
Is there a python code that I can plug into field calculator to create the product I'm looking for? No. There is no code that can accomplish this within the Field Calculator tool, which is why @DanPatterson created a tool for it in Free Tools for ArcGIS Pro: Table Tools - Esri Community .
... View more
03-31-2021
08:09 AM
|
1
|
0
|
2712
|
|
POST
|
You definitely mentioned threading, but your GH repo is named "arc-gispro-python-net-licensing-collision," so I thought you thought licensing was involved too. I just read too much into your repo name. If it is OK with you, I would like to move this discussion over to the ArcGIS Pro SDK space since people following that space might be a better audience. That said, I think discussing with Esri Support is the next best step for you.
... View more
03-30-2021
07:20 AM
|
0
|
1
|
2364
|
|
POST
|
What if you try the same workflow but using file geodatabase? Knowing whether it is EGDB related or a larger issue would be a good step.
... View more
03-30-2021
07:11 AM
|
0
|
1
|
3589
|
|
POST
|
The short answer is yes, i.e., you can list map services with an unfederated server, the question is whether you want to list them through the REST Services endpoint for using them or REST Admin endpoint for managing them.
... View more
03-30-2021
07:09 AM
|
1
|
0
|
1455
|
|
POST
|
See Solved: Concatenating Strings with Field Calculator and Py... - Esri Community and ArcGIS Pro 2.6: A geoprocessing tool to concatenat... - Esri Community for ideas.
... View more
03-29-2021
08:08 AM
|
2
|
2
|
2795
|
|
POST
|
Please share the simple script with the print statement in it that fails (unless the script it just the one line you already shared), then others can look at the code and try publishing it on their machines to see if there are issues.
... View more
03-29-2021
07:48 AM
|
0
|
1
|
4948
|
|
POST
|
Ah, OK, I thought you were checking for the existence of the GDB you were deleting and not another GDB.
... View more
03-29-2021
07:44 AM
|
0
|
0
|
3987
|
|
POST
|
Since you believe this relates to licensing, how are you licensing your ArcGIS Pro install?
... View more
03-28-2021
08:52 AM
|
0
|
3
|
2382
|
|
POST
|
If you simply want to delete the file geodatabase if it exists, using Exists is unnecessary because Delete returns success whether the file geodatabase exists or not. Delete will return a warning if the geodatabase does not exist, but it returns "success" whether the GDB exists or not.
... View more
03-28-2021
08:40 AM
|
1
|
2
|
4027
|
|
POST
|
It has to do with lists being a mutable data type while strings, integers, floats, etc... are not mutable. Python variables reference addresses in memory. With CPython, the id() function returns an object's address in memory, which makes it convenient for illustrating this point about mutability. Looking at two examples of immutable data types: >>> # look at memory address change when changing integer variable value
>>> i = 5
>>> id(i)
140714082966800
>>> i = 6
>>> id(i)
140714082966832
>>>
>>> # look at memory address change when changing string variable value
>>> s = "foobar"
>>> id(s)
1355804104048
>>> s = "hello world"
>>> id(s)
1355809971568
>>>
>>> s += ","
>>> s
'hello world,'
>>> id(s)
1355804104048
>>> As you can see, updating a variable that stores an immutable data type updates the memory address because a new object is created and the variable pointer changed to the location of that new object. Now, look at an example of a mutable data type: >>> l = [5]
>>> id(l)
1355802301384
>>> l[0] = 6
>>> id(l)
1355802301384
>>>
>>> l.append("foobar")
>>> l
[6, 'foobar']
>>> id(l)
1355802301384
>>> As the list is updated and modified, the memory address for the entry point into that list remains the same even though the contents within the list change. Mutable. When a list is used as a parameter in a function, any modifications of it in the function are seen by outside/calling namespaces because the memory address for the list has not changed with the changes made within the function. When an immutable data type is used as a parameter in a function, the local namespace of the function inherits the pointers to variable memory addresses and can use the values stored in those addresses. When a function modifies the inherited variable, the function cannot modify the global namespace to update the pointer so only the local namespace knows of the new memory address to the updated value. The global keyword tells the Python parser that the function can or is allowed to modify the outside/calling namespace for the variable with that keyword. I guess you could look at it as the global keyword merges the global and local namespaces for the variable in question, so when the function updates the variable and changes the pointer to a new memory address, the calling namespace sees the new memory address and value.
... View more
03-26-2021
09:03 AM
|
2
|
1
|
7117
|
|
POST
|
You could go with a nested list comprehension: lines = [
[col.strftime('%m/%d/%Y') if isinstance(col, datetime.datetime) else col for col in row]
for row
in arcpy.da.SearchCursor(fc, fields)
]
... View more
03-25-2021
12:53 PM
|
2
|
0
|
4041
|
|
POST
|
I believe @DavidPike is likely correct, i.e., you are using OS authentication in the SDE file, and the service account running GIS Server doesn't have permissions to delete records.
... View more
03-25-2021
12:21 PM
|
0
|
1
|
3455
|
|
POST
|
Are you querying AGOL or ArcGIS Enterprise portal? If the latter, what is your back-end data store, i.e., hosted feature service in ArcGIS Data Store or an enterprise geodatabase? You are interested in having the search terms be in any order, but do all the terms have to exist? For example, would searching on "Soils Phoenix" and finding records with only "Soils" or only "Phoenix" work?
... View more
03-24-2021
12:04 PM
|
0
|
1
|
1162
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-11-2026 07:04 AM | |
| 1 | 07-17-2026 06:54 AM | |
| 2 | 07-06-2026 12:29 PM | |
| 1 | 07-06-2026 12:00 PM | |
| 2 | 06-05-2026 10:30 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|