ERROR
Saving edits made to metadata (edit metadata content or delete the geoprocessing history) using a Python script might result in the following error message:
RuntimeError: Failed to save metadata.
This error can be attributed to different reasons (permissions, format, etc.), but in an enterprise geodatabase, the main reason why it might fail to save metadata data, especially after deleting geoprocessing history, is that the associated feature class/database object is not registered with the geodatabase.
Metadata in a geodatabase is stored in the GDB_Items table (Documentation column) as XML. Therefore, if a feature class/database object is not registered with the geodatabase, there will be no metadata associated metadata item.
Article ID: 000035643
Get help from ArcGIS experts
Start chatting now