Field Calculator messages from Python Script

Discussion created by mlou on Jul 15, 2012
Latest reply on Jul 20, 2012 by clthompson
I have a python script that uses the Field Calculator arctoolbox tool to populate fields in a geodatabase from a SQL database table.  I runs on many feature classes and many fields.

Occasionally I get a pop-up message from the Field Calculator:


I don't know which feature class or field is causing this message, or why it's happening.  Is there a way to log these errors and suppress the pop-up? And is there a way to report which Feature Class and Field is causing it?

Is there a better way to do what I'm doing?  Would an update cursor be better?  I suspect an update cursor might take longer, but not sure...