Spend a couple of hours investigating why a single Polyline Feature won't append to an existing FGDB feature class. It turns out because it was very long, the initial spatial index created is too small to manage the number of grids that this long polyline traverses. Never seen this before in a GDB!
An error occurred while flushing the cursor for the table/feature class 'LateralsGeometry'. The error number from ArcObjects is: '-2147216894'. The error message from ArcObjects is: {The spatial index grid size is invalid.}
Some error has occurred during shutdown of the writer, see previous error
Some error has occurred during shutdown of the writer, see previous error
Some error has occurred during shutdown of the writer, see previous error
FeatureWriter_4 (WriterFactory): Some error has occurred during shutdown of the writer, see previous error
Some error has occurred during shutdown of the writer, see previous error
Translation FAILED with 6 error(s) and 0 warning(s) (0 feature(s) output)
ESRI recommends vendors using their API (Eg. Safe and the GDB Writer) instead use Load Only Mode to force the GDB to recalculate the Spatial Index where necessary, but for the moment the only workaround I can think off is instead of running an Append to do a full Drop and Rebuild of the Feature Class
https://support.esri.com/en/technical-article/000010090
Any other suggestions?