I tried to recreate your issue but was unsuccessful. I formatted a series of dates in an XLSX Excel spreadsheet as follows, and the Excel Reader (XLS) node parsed it without error. (I’m using KNIME 3.5.3.) But perhaps I’m not understanding the issue correctly.
After doing further testing I realised it does nothing to do with the date format as such.It is something to do with the file and Excel messing around.
If I try to read the original file I get “Could not load file” error, however if I open the file in excel and save it (without changing anything) it works.
So I am assuming Excel automatically changes something.
The original error
“ERROR Excel Reader (XLS) 0:135 Execute failed: Date for created could not be parsed: 2018-04-09T10:00:10+01:00”
comes from a reading multiple files loop where the first one have been saved but some of the others have not.
I am afraid I am not able to provide example file, as contains confidential information. ( and if I open and remove Excel corrects the issue)
Any ideas of what it is happening when I open/save in excel and how get around having to do this?
Can you elaborate a bit more about the type of file that you’re working with? For example, is it XLS, XLSX, or possibly some other format that isn’t native to Excel, but that Excel can read?
Along those lines, do you have any additional information about how the file is being generated - from another software program, or on a particular machine?
It turns out that it’s the file size that prohibits posting here in the forum - the limit is about 3 MB. I was able to reproduce the problem, but it’s not clear to me why it’s happening - I’ve asked one of our developers to weigh in.
I checked with our dev team and it turns out that this problem stems from a bug in Apache AOI. We’re working on a fix, but I don’t have an ETA for that right now.
@RobertoNieto, we are working on a fix now and an update to the parser library seems to fix the problem. However, we need to use a certain read mode (all into memory vs. streaming) – which has certain drawbacks.
We’d like to understand one corner case better and wonder if you can create an excel file that also has the 2nd (or 3rd or … or any but the 1st) column populated?