DOC
|
@RickeyFight check to make sure your token is being generated, (i.e. Add a statement: print(token) ).
... View more
05-15-2024
08:34 AM
|
0
|
0
|
641
|
DOC
|
@RickeyFight add a print statement before line 68: print(response) What does this return?
... View more
05-15-2024
08:23 AM
|
0
|
0
|
651
|
DOC
|
@RickeyFight , Change the below lines: tokenURL = 'https://www.arcgis.com/sharing/rest/generateToken'
params = {'f': 'pjson', 'username': username, 'password': password, 'referer': 'http://www.arcgis.com'} to the following: tokenURL = 'https://<portalURL>/<webadaptor>/sharing/rest/generateToken/'
params = {'f': 'pjson', 'username': username, 'password': password, 'referer': '<portalURL>'} Replace the <portalURL>/<webadaptor> with the URL to your portal (i.e. https://gis.esri.com/portal). And, the referer to the portal URL (i.e. https://gis.esri.com).
... View more
05-15-2024
08:06 AM
|
0
|
0
|
673
|
DOC
|
@RickeyFight can you describe what your doing when you say you locked down the service? Are you only sharing the service to your Organization?
... View more
05-14-2024
04:16 PM
|
0
|
0
|
711
|
POST
|
Hi @KåreMølgaardRasmussen, The below sample will export the attachments to a directory: import os, arcpy
# Variables
tbl = r"C:\Temp\Python\Test.gdb\Graffiti__ATTACH" # Path to attachment table
fldBLOB = 'DATA' # Field name of Blob data type field in attachment table
fldAttName = 'ATT_NAME' # Field name in attachment table that contains attachment name
outFolder = r"C:\Temp\Python\Attachments" # Output folder to export attachments to
with arcpy.da.SearchCursor(tbl,[fldBLOB,fldAttName]) as cursor:
for row in cursor:
binaryRep = row[0]
fileName = row[1]
# save to disk
open(outFolder + os.sep + fileName, 'wb').write(binaryRep.tobytes())
print('Finished')
... View more
05-14-2024
11:07 AM
|
0
|
0
|
472
|
POST
|
Hi @RobertoRossi, 1. Set your Map's coordinate's system to a Projected Coordinate system 2. Change the Map's units at the bottom to the measurement of your choice The Edit Vertices should now reflect this. Ex:
... View more
05-14-2024
11:04 AM
|
1
|
0
|
165
|
POST
|
Another option I use a lot is updating the feature service using a dictionary and an update cursor, rather than a join. Below is an example: # Create dictionary
print("Create dictionary")
tblDict = {}
with arcpy.da.SearchCursor(tbl, ["name","band_3_progress", "sent_to", "released_by", "pub_date"]) as cursor:
for row in cursor:
tblDict.setdefault(row[0], [])
tblDict[row[0]].append(row[1])
tblDict[row[0]].append(row[2])
tblDict[row[0]].append(row[3])
tblDict[row[0]].append(row[4])
del cursor
# Update feature service
print("Updating feature service")
with arcpy.da.UpdateCursor(fsURL, ["name","band_3_progress", "sent_to", "released_by", "pub_date"]) as cursor:
for row in cursor:
row[1] = tblDict[row[0]][0]
row[2] = tblDict[row[0]][1]
row[3] = tblDict[row[0]][2]
row[4] = tblDict[row[0]][3]
cursor.updateRow(row)
del cursor
... View more
05-13-2024
06:04 AM
|
0
|
0
|
155
|
POST
|
I would highly recommend the more frequently used services be switched to dedicated. I typically only recommend a few services be set to shared instance type.
... View more
05-13-2024
05:23 AM
|
2
|
0
|
207
|
POST
|
Hi @Yogesh_Chavan, are you services configured with Shared or Dedicated instances? I've seen this error before when all services are configured with Shared. Try changing the services to Dedicated. https://enterprise.arcgis.com/en/server/latest/administer/windows/configure-service-instance-settings.htm#ESRI_SECTION1_C6A867B5D3C543668798F75139028A99
... View more
05-13-2024
04:17 AM
|
1
|
1
|
220
|
POST
|
How many fields are you updating in the feature service?
... View more
05-13-2024
04:08 AM
|
0
|
2
|
168
|
POST
|
Hi @GeoKate, Have you tried using truncate instead of delete rows? This is faster and may get you past your error.
... View more
05-10-2024
12:39 PM
|
0
|
0
|
198
|
POST
|
@EdX1 , take a look at the following document. It contains a script that will compress your geodatabase and output a DeltaCounts.csv file showing the before and after counts of the A & D tables.
... View more
04-26-2024
10:19 AM
|
0
|
0
|
267
|
DOC
|
To maintain optimal performance for a traditionally versioned geodatabase, it's a best practice to compress your geodatabase on a regular basis. To achieve a full compress to state 0, it's necessary to remove all locks from the geodatabase. Locks can be created from users accessing the geodatabase in desktop applications, such as ArcGIS Pro, and from ArcGIS Server services that are referencing data from the geodatabase. This script will stop ArcGIS Server services that are currently running, disconnect all users from the geodatabase, block further connections to the geodatabase, reconcile/post all versions, and compress the geodatabase. After the geodatabase is compressed, the script will rebuild indexes and recalculate stats on versioned feature classes, and then finally restart the previous running services. Additionally, the script will output a CSV file showing the before and after counts of the A & D tables, also known as the Delta tables. This will allow you to easily see if the versioned feature classes have been compressed. Also, the script will report the before and after state id of the geodatabase. Some optional parameters within the script include sending e-mail notifications. If the script executes successfully, an e-mail will be sent attaching the CSV file of the delta table counts, and a message of the before and after state id. If an error occurs, an e-mail will be sent including a log file reporting the error and the line within the script that caused the error. A quick note, all geodatabase replicas should be synced before this script is executed Video of workflow:
... View more
04-26-2024
10:15 AM
|
5
|
0
|
217
|
POST
|
Hi @Sven_Harpering, You can use the report property: https://developers.arcgis.com/python/guide/administering-your-gis/#:~:text=Pandas%20DataFrame%20table-,pro_license.report,-Entitlement
... View more
04-26-2024
08:18 AM
|
1
|
1
|
278
|
DOC
|
@SallyBickel @Chase_RSO what IDE are you using to execute the script? Try running the IDE as an Administrator (i.e. right-click on IDE > Run As Administrator). Do you still receive the same error?
... View more
04-24-2024
05:30 AM
|
0
|
0
|
892
|
Title | Kudos | Posted |
---|---|---|
1 | Monday | |
1 | 03-16-2022 10:25 AM | |
1 | 12-11-2019 05:22 AM | |
1 | 05-14-2024 11:04 AM | |
2 | 05-13-2024 05:23 AM |
Online Status |
Online
|
Date Last Visited |
an hour ago
|