I have read in data from an ArcSDE database and I would like to update data layers on ArcGIS Enterprise with this data.
I am coming across two issues:
1 - My workbench FAILS with the following error:
- ArcGIS Portal Feature Service Writer: 'addResults' error for a feature in 'LAYER NAME'. The error code from the server was '10500' and the message was: 'Database error has occurred.'
- ArcGIS Portal Feature Service Writer: 0 features successfully written to 'LAYER NAME', but the server rejected the 100 features in the last request due to errors. See warnings above. Aborting translation
2 - My workflow successfully completes BUT data is only truncated and no data is written onto the ArcGIS Portal data layer, so the layer is empty. The translation log says 'Total Features Written: 0' with no errors or warnings.
I am using 'Writer Mode: INSERT' (also tested with UPDATE but still get errors) and 'TRUNCATE FIRST: YES'. I have tested around with changing these parameters but it doesn't seem to make a difference.
I have ensured the fields match up and I have used 'Import from Dataset' to ensure the formatting of the feature type in the feature writer. Previously, when I have come across error 2, I have amended the 'Features Per Request' parameter and the workflow runs, however when I change this now, I am receiving error message described in 1.