ArcGIS Pro 3.3.4
I have a Notebook script that essentially creates an excel from a CAMA database, then creates a File gdb table from that excel, then joins a feature class to that table and using a Project's settings overwrites an existing feature layer in AGOL. Symbology and Labels carry over to AGOL.
The local tables and feature classes already exist as well as the feature layer, and each are overwritten each time. This process happens daily and is scheduled to run behind the scenes with no input from me.
I would like to add a Domain for one of the fields that includes individual values as well as combinations (Ex: some of the features may be 1 while others may be 1,2,6)
Each day on local feature class overwrite, the Domain is not added to the local feature class field prior being shared to AGOL. Additionally, the List I have tried to generate in AGOL is also lost.
Is there a way to add the Domain to the field using Arcade during this process?
While I am asking, is there a way to include concatenating the individual values? Currently, there are a couple dozen combinations using 12 values and the combinations frequently change.
I'd appreciate any help I can get, and Thank You so much in advance!
#Create Updated Feature Class
arcpy.management.CopyFeatures(JoinFeatures, r"S:\ALL\GIS\Software\NIGHTLY_UPDATES\NIGHTLYUPDATES_STAGING.gdb\PARCELINFO", '', None, None, None)
print("Local Feature Class Updated")
#Overwriting Feature Service on AGOL
import os, sys
#Set the path to the project
prjFolder = r"S:\ALL\GIS\Software\NIGHTLY_UPDATES\PROJECTS\PARCELINFO"
prjPath = os.path.join(prjFolder, 'PARCELINFO.aprx')