I am having a unique issue where I cannot write out the date 19700101000000 (01/01/1970) to my ‘Date’ data type fields in an Esri sde feature class. How do I fix this problem?
When I want to write out 19700101000000 to one of these fields, the writer runs successfully and I get the success message but then when I read the data back into FME or I check my attribute table in ArcGIS Pro the field shows up as 18991230000000 (12/30/1899).
The date is formatted correctly. I can write out other dates no problem. I can write out 19700101000001 and 19710101000000 no problem. I just can’t write out 19700101000000.
I can open the attribute table in ArcGIS Pro and manually enter the date as ‘1/1/1970 12:00:00 AM’ (from the calendar/time picker) and the table will accept it. I can also use calculate field and input '1970-01-01 00:00:00' (python format) and the table will update correctly.
I have tried using AttributeManager and DateTimeConverter to make sure the date is formatted correctly and the writer will run successfully but it still will not show up in the table correctly.
I am using FME Workbench 2023.1
My workflow is:
- ESRI ArcGIS Portal Feature Service Readers to read in two tables (Table1 and Table2)
- ChangeDetector to compare selected fields (to see what changed in Table1 to push updates to Table2)
- ESRI ArcGIS Portal Feature Service Writer to write out the updates, inserts, deletes to Table2
- Feature Operation: fme_db_operation
- Feature Type Handling: Use Existing
Unfortunately I cannot share samples of the data or the tables as it is protected information.