Select to view content in your preferred language

arcpy.DeleteRows_management fails when feature class has a relationship class

62
1
yesterday
MichaelTorbett
Frequent Contributor

This just noticed this yesterday. I have a python script that runs nightly. It uses arcpy.DeleteRows_management to delete all of the rows of an enterprise geodatabase feature class. However, yesterday it started failing with the message: arcgisscripting.ExecuteError: ERROR 160083: Failed to delete relationships for object
Failed to execute (DeleteRows).

When I remove the relationship class,  it works fine. 

The script runs off of an ArcGIS Pro environment using 3.3.7.

Is there a fix for this issue other than removing the relationship class?

Thanks,

Michael

0 Kudos
1 Reply
DanPatterson
MVP Esteemed Contributor

160083: Failed to delete relationships for object.—ArcGIS Pro | Documentation

according to the help for the error, it is a rarely occuring error and you should contact tech support so that the case and its conditions can be assessed as to whether it is an error or a workaround is possible (beyond the one you have currently found)


... sort of retired...
0 Kudos