Solved! Go to Solution.
testFields = arcpy.ListFields(masterTable)instead of
testFields = ['APN_SUFFIX', 'TRA', 'NAME_1', 'NAME_2', 'MAIL_ADDR', 'CTY_STA']: when I use the former I get the dread ERROR 999999 at the line
subsetDict[row.getValue(keyField)] = [row.getValue(field) for field in testFields]
testFields = [] for fields in arcpy.ListFields(masterTable): testFields.append(fields.name)
Hi Mark,
You will need to append the field name to the 'testFields' list. Try:testFields = [] for fields in arcpy.ListFields(masterTable): testFields.append(fields.name)
row.setValue(field, subsetDict[key])
keyFields = arcpy.ListFields(masterTable)
oidIndex = keyFields.index('OBJECTID') # or whatever the offending field is...
del keyFields[oidIndex]for i in range(len(otherFields)): field = otherFields print fields.name row.setValue(field, subsetDict[key])
# define fields
keyField = 'APN'
otherFields = []
for fields in arcpy.ListFields(subsetTable):
otherFields.append(fields.name)
oidIndex = otherFields.index('OID')
del otherFields[oidIndex]