For one of our client, we have a date stored in one of the columns in the Oracle database in Unix format and I’m trying to convert this into standard date format using the transformation ' timestamp_epoch'. Unfortunately while running the import program, I’m getting an error message “The format "YYYY-MM-DD HH:mm:ss" is invalid for an epoch time stamp transformation.”. I tried different format like ‘MM/dd/yyyy HH:mm:ss’ , ‘yyyy-MM-dd HH:mm:ss.SSS Z’, 'd.M.yyyy H:mm:ss' but nothing is working.
Can you please help me with which format I need to use so that I don’t get this error message and it gets transformed to the date format successfully?
Example values for the input: 1613437797, 1601895975.
CHETHAN RAO Author on
Resolution : Can use the transform_epoch transformation to import these UNIX timestamps. The format provided to the parameter only refers to the source format, so e.g. if the data is represented in milliseconds in the source system, you have to choose "MILLISECOND" or "SECOND". The transformation will then transform the date to an internal format that is compatible with time fields in PPM (most probably to a "dd.MM.yyyy HH:mm:ss" format). So there is no need to specify a target date format, the transformation will automatically create a valid time field.