function(arcpy.fieldInfo.findFieldByName(!gesamt!))
def function(index): if (index > 30): ergebnis = (!Join_Count! + !Join_Count_1!) return ergebnis else: return 99
The fieldInfo object is a property of a Describe object. It's class definition is in the arcpy package, but you don't use it from there (how does arcpy know what layer you are referring to?). See the 1st example in the help.Try:arcpy.Describe(layer).fieldInfo.findFieldByName(!gesamt!))
arcpy.Describe(layer).fieldInfo.findFieldByName(!gesamt!))
function(arcpy.Describe(layer).fieldInfo.findFieldByName(!gesamt!), arcpy.Describe(layer).fieldInfo.findFieldByName(!Join_Count!), arcpy.Describe(layer).fieldInfo.findFieldByName(!Join_Count_1!)))
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.