laptop and a wrench

Bug

When using a combination of arcpy.CalculateField_management, Python parsers, and sys.argv[0] within a For loop, error 000732 is produced on the second iteration of the loop because sys.argv[0] is no longer called properly.

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM079109
SubmittedMarch 16, 2012
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.0
Operating SystemWindows OS
Operating System Version7
StatusWill Not Be Addressed

Additional Information

Instead of sys.argv[0] use os.getcwd() instead as it is more reliable.

Workaround

Make sys.argv[0] a variable outside of the For loop.

Steps to Reproduce

Bug ID: NIM079109

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options