I am reading from an Esri SDE GeoDB (ArcObjects) and use Archive Where Clause with GDB_FROM_DATE/GDB_TO_DATE to read archived data.
... after processing the data, I write it to another SDE with mostly the same schema. This is my first migration step.
After a while I want to do the same workflow for the data which were changed since the first migration. So I use GDB_FROM_DATE/GDB_TO_DATE in order to find the changed data in the source SDE.
At the end of the second processing I need to update some of the features of the first migration (those which have been removed since the first round) and I try to use fme_db_operation UPDATE and a fme_db_operation_where clause attribute, where I try something like this:
fme_db_operation_where=UUID='DEBE0707Hb000020' AND BEG='20170619110522' AND ENDE IS NULL
BEG is a column of type timestamp (in the underlying Oracle DB) and needs to be compared to the value read from GDB_FROM_DATE which is of type date
I get errors like the following and suspect it has to do something with the interpretation of date vs. timestamp, but I am not sure about this.
ERROR message:
901936 Error while retrieving an ArcObjects update cursor for the table/feature class 'AX14003'. The error number from ArcObjects is: '-2147220985'. The error message from ArcObjects is: {An invalid SQL statement was used.}
929507 Geodatabase Writer: WHERE clause is evaluated as 'UUID='DEBE0707Hb000020' AND BEG='20170619110522' AND ENDE IS NULL'
UUID ist type text, BEG and ENDE is type timestamp in Oracle, but displayed as type date in ArcCatalog.
Any idea what might be the problem ?
Thanks
Michael