|
POST
|
Hi @RaenaBallantyne_DeMaris , Try the following: import arcpy
# Variables
farmLocations = r"c:\projects\GeoNET\GeoNET.gdb\FarmLocations"
projects = r"c:\projects\GeoNET\GeoNET.gdb\Project"
csvDirectory = r"c:\projects\GeoNET"
# List of frutis
fruitList = ['Apples', 'Walnuts', 'Hazelnuts', 'Cherries', 'Apricots', 'Pecans', 'Pears', 'Peaches', 'Plums']
# Create Projects Dictionary
projectsDict = {}
with arcpy.da.SearchCursor(projects, ["LocCode", "ProjName"]) as cursor:
for row in cursor:
projectsDict.setdefault(row[0], [])
projectsDict[row[0]].append(row[1])
del cursor
# Iterate through fruit list
for fruit in fruitList:
with arcpy.da.SearchCursor(farmLocations, ["LocCode"], f"Fruits LIKE '%{fruit}%'") as cursor:
for row in cursor:
# Create CSV file for each fruit
csvOutput = fr'{csvDirectory}\{fruit}.csv'
output_file = open(csvOutput, 'w')
header = 'LocCode, ProjName\n'
output_file.write(header)
for project in projectsDict[row[0]]:
output = f'{row[0]}, {project}\n'
output_file.write(output)
del cursor
output_file.close()
... View more
04-23-2024
05:39 AM
|
2
|
1
|
3188
|
|
POST
|
Hi @zrobinson_agolpublic , What version of the API are you running?
... View more
04-22-2024
01:45 PM
|
0
|
2
|
2377
|
|
DOC
|
@Chase_RSO @SallyBickel what version of Pro are you running?
... View more
04-19-2024
01:27 PM
|
0
|
0
|
17026
|
|
POST
|
I would verify the feature classes' A&D tables are cleared after the compress. If there is a lock on the feature class, the compress will skip over the feature class. If your database is SQL Server you can find the correct A&D table with the following: query the sde.sde_table_registry table to get the registration_id. Ex: select registration_id from dbo.SDE_table_registry where table_name = 'Airports' This will return the registration_id: This will indicate which A&D tables to query. Ex:
... View more
04-17-2024
05:11 AM
|
1
|
2
|
4669
|
|
POST
|
Hi @EdX1, Is your feature class registered as versioned? If it is, has your geodatabase been compressed recently? The compress will clear the A&D (delta) tables, which will improve performance of the feature class. You will want to make sure there are no locks on the feature class when performing the compress. For example, make sure all services are stopped, and all users are disconnected.
... View more
04-16-2024
05:03 AM
|
3
|
10
|
4731
|
|
DOC
|
@ErikNelson1 can you test the below code on another machine that has ArcGIS Pro installed: from arcgis.gis import GIS
gis = GIS(url="https://gis.organization.com/portal", username="username", password="password", verify_cert=False)
... View more
04-12-2024
03:57 AM
|
0
|
0
|
21136
|
|
DOC
|
@Chase_RSO try deleting the scratch folder at C:\Users\<useraccount>\appdata\local\temp. Recreate this directory, and then add Full Control to your account to the scratch folder by right-clicking on the folder > Properties > Security.
... View more
04-12-2024
03:55 AM
|
0
|
0
|
17133
|
|
DOC
|
@ErikNelson1 , 1. Are you able to sign into Portal with the credentials you are providing in the script? 2. Do you have any reverse proxies in place? 3. Is there another built-in admin account you can try?
... View more
04-11-2024
05:47 AM
|
0
|
0
|
21195
|
|
POST
|
Hi @AudraPayne1, is this occurring for all hosted feature services, or just this particular one?
... View more
04-10-2024
06:33 AM
|
0
|
1
|
3096
|
|
DOC
|
@ErikNelson1 do you have a security question set for the built-in account you are using?
... View more
04-10-2024
05:21 AM
|
0
|
0
|
21259
|
|
DOC
|
@BinkeWang it seems like your Portal is down. Are you able to successfully connect to https://xxxxx/portal/home from a web browser?
... View more
04-09-2024
04:39 PM
|
0
|
0
|
30245
|
|
DOC
|
@ErikNelson1 what type of account are you using to connect to Portal? Do you know if it's a built-in, active directory, or SAML? SAML is not currently supported.
... View more
04-09-2024
04:37 PM
|
0
|
0
|
21311
|
|
POST
|
Are you accessing a Feature Service? I'm able to query the attachments with a Feature Service, but not a Map Service. Ex: itemID = 'c820edb1d16c42b5a95fab40634417e8' # Feature Service
lyr = gis.content.get(itemID)
lyr.tables[0].attachments.get_list() # relationship is with a table
... View more
04-09-2024
08:27 AM
|
0
|
1
|
1522
|
|
IDEA
|
@ChristopherRatcliff, no I think this may be a potential bug, or an valid enhancement request.
... View more
04-09-2024
08:11 AM
|
0
|
0
|
2548
|
|
DOC
|
Hi @BinkeWang, The backup should not have caused this. I use this for script for numerous customers, as well as myself on a nightly basis, and it never brings down Portal. Try restarting the Portal and ArcGIS Server services and see if Enterprise becomes accessible again. However, this should not be a step you need to implement. Hopefully this was just a hiccup and coincidence.
... View more
04-09-2024
08:09 AM
|
0
|
0
|
30304
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 4 | 05-07-2020 05:14 PM | |
| 1 | 03-25-2026 04:16 AM | |
| 1 | 03-16-2026 01:00 PM | |
| 1 | 12-22-2025 10:39 AM |
| Online Status |
Online
|
| Date Last Visited |
Friday
|