You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

My problem is very simple:
from excel file I load a Date as String, in tMap I want to put that value in a Date field and I used the following function:
TalendDate.isDate(rowN.DATE, "ddMMyyyy")
...but when I build the job, I have the error "Impossible to convert Bolean value to a Date value".
--------------
I've tried also many other methods (e.g. load directly Date values from excel, .xls and .xlsx), but I had other problems.
I tried also to format the values as strings in the excel and in the schema of input excel, format date fields as Date, but error also in this case...I don't have ideas any more...
Talend 4.1.1
--------------
Thanks to all
Offline
Hi,
isDate() is returning a boolean, so it can't be used in a date assignment. If you have a date string, try TalendDate.parseDate("ddMMyyyy", rowN.DATE).
Even though it looks like you have a string in an Excel date field, it's actually a number plus a format. This blog post suggests defining the Date field in the Excel input schema: http://bekwam.blogspot.com/2011/03/exce … udio.html.
Offline

walkerca wrote:
Hi,
isDate() is returning a boolean, so it can't be used in a date assignment. If you have a date string, try TalendDate.parseDate("ddMMyyyy", rowN.DATE).
Even though it looks like you have a string in an Excel date field, it's actually a number plus a format. This blog post suggests defining the Date field in the Excel input schema: http://bekwam.blogspot.com/2011/03/exce … udio.html.
Thanks a lot walkerca!
Now I have not the error (even if I have "Null Pointer exeption, but I think it is relative to another thing).
Thank you again
Offline

not a solution, but it seems relevant to this discussion ![]()
Offline
Pages: 1