Question

How to valid a date time input data in FME

  • 2 November 2021
  • 3 replies
  • 29 views

Badge

Hello,

So I have a data, which is called "Amendment Date". The format is as follow

DD/MM/YYYY HH:MM:SS.

I would like to make a checker to check if the input data are correct. I tried the attached steps and it seem ONLY works on correct order. If the data is wrong, it said ERRORS and cannot run the transformer.

 

Would someone please guide me how to do valid the format.

 

Thank you.


3 replies

Userlevel 5
Badge +25

If you inspect the rejected data (using the magnifying glass icons) you should see an attribute called fme_rejection_code which has an indication as to why it's rejected.

Userlevel 6
Badge +33

If you switch Rejected Feature Handling (Navigator window, Workspace Parameters, Translation) from Terminate Translation to Continue Translation the process won't stop when a feature gets Rejected by the DateTimeConverter.

Userlevel 1
Badge +21

If you attach a logger to your rejected port then the workspace should continue to run, features with incorrect date times will be logged via the rejected port

Reply