i am very new the knime and encountered an error when reading an excel file.
I have a date column and some entries are not valid dates.
Unfortunately, I couldn’t find to a way to implement an error handler to replace the unparsed value with an error. I tried reading it as a string and then format as a date but then I lose the value. I still need to know that there was some value in that cell that couldn’t be parsed.
It sounds like you want to extract dates from a string field into a Local Date (or similar) type, and then force your workflow to fail to execute if there are any data points missing.
I’ve uploaded a workflow to KNIME Hub which demonstrates how to do that:
First, I made a phony data table using the Table Creator node. Then I used the String to Date&Time node to guess the data format and disabled Fail on error to try and replicate the screenshot you shared.
It’s possible that I misunderstood your question - if you want to replace the dates with some kind of text indicating an error, one alternate option would be to use the Rule Engine node to create a new Boolean column which contains true or false depending on whether the field has a missing value. You can then use that column to reliably determine if the field was processed correctly or not.
I’ve updated the example workflow to include an example of how to do this.