[The table storesgathered.shp is being written by another process.] Failed to execute (CalculateField). This is a really stubborn lock too - removing the layer from the TOC isn't enough; I need to exit all the way out of ArcMap to release it. I've tried running the snippet...
("Calculating fields based on input values") #Calculate Fields based on user input for el in arcpy.mapping.ListLayoutElements(mxd, "DATAFRAME_ELEMENT"): SCALE = el.scale arcpy.CalculateField_management(polypro, "PRODUCT_ID", PROID, "", "") arcpy.CalculateField_management(polypro, "PRODUCT_...