Hi, I've got a question on
arcpy.DeleteField_management
as it's not working correctly each time in my stand alone script. I keep getting the ERROR 002557: Cannot delete field (random field) from layer when using the keep fields option. It's not the same field each time, just a random field and only happens about half the times that I run the script. It works when put in the Python window in Pro. Any thoughts would be appreciated