Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a python script that I inherited. The python script takes input from a variety of feature classes and tables and spit it out to a single table. When I run this script via a scheduling utility at night, the script fails when it prompts for user input on whether it's OK to proceed with a truncated field name with a field calculation. For a variety of reasons, I can't change the field name. Is there a way to suppress the input box via code? I looked in arcpy.env but I didn't see anything...any ideas are welcome! thanks!

arcpy.CalculateField_management(Merged__2_, "L1_Parcel_Nbr", "[PropID]", "VB")

where Merged_2_ is the output (file geodatabase) feature class from a merge geoprocessing function.

share|improve this question
So it's just asking you yes/no to proceed with the field calcing? Could we see the code? – Chad Cooper Jan 31 '12 at 15:19
OK, could we see the code related to the actual prompting? – Chad Cooper Jan 31 '12 at 15:45
The line above is what generates the prompt. The actual code that sends the prompt is built into arcpy. – jdb1a1 Jan 31 '12 at 16:08
If it's a FGDB, why why is the field name getting truncated? Are you sure its not the field values that are getting truncated during the calc? – Chad Cooper Jan 31 '12 at 16:34
I'd like to see a little more code too - Chad's comment seems relevant to me – PolyGeo Feb 13 '12 at 6:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.