AnsweredAssumed Answered

Arcpy scripting works in Python window but not in Script

Question asked by mlinabj on Jan 19, 2018
Latest reply on Jan 20, 2018 by Dan_Patterson

Codes work in ArcMAP Python window, but error when run as a script

The attached codes work in Arcmap python window when I copied and passed them line by line, but error in line 65 (arcpy.Project_management) and following (when I temporarily delete the Project tool then the error raise in AddField tool ) when I run it as a script. The error information is "

RuntimeError: Object: Error in executing tool

"

What is wrong with it?

Attachments

Outcomes