I have a workspace that is trying to write to an Esri enterprise database (in PostGis). One particular layer errors out with An error occurred while attempting to open the table, feature class or relationship class 'xxxx'. The error number from ArcObjects is: '-2147216011'. The error message from ArcObjects is: {The SQL statement was not a select statement}
I’m unclear what sql statement the process is trying to run as no ‘sql to run before write’ was specified when the writer was created.
Other similar layers pass through and write with no apparent problem. Disabling that layer allows the process to run. The fields are named in similar fashion to the other layers.
Esri told me to try writing out to a file gdb first (the File Geodb writer had no problem) and then read that into the enterprise version but the source format doesn’t seem to affect it. Obviously there is something the ArcSDE Geodb writer does not like about that layer, but I can't see it. What should I be looking for?