Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
1  
OK, could we see the code related to the actual prompting? –  Chad Cooper Jan 31 '12 at 15:45
1  
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
3  
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
1  
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

 
discard

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

Browse other questions tagged or ask your own question.