PDA

View Full Version : date with calculator



kettle_anonymous
02-07-2006, 04:15 AM
Hi, I try to calculcate a month number from a date with the function 'Month of date A'
the input field is from the type date (iso format)
at the column "new field" I define a new field name: maand.
at the column "Field A" I select the input field datum
at the column "value type" i select 'Integer'


I get the message: 'Unexpected error in 'processing functionMonth of dat A[img]/wiki/images/newpage.gif ("")[/url] for field maand: java.lang.NullPointerException



Am i doing something wrong?



thanx
Remco

jbleuel
02-07-2006, 10:31 AM
Hi Remco,


just added a bug id: 1516.



Could you please send us your version number?



Thanks a lot - Jens

kettle_anonymous
02-07-2006, 09:46 PM
Hi Jens,


The version number of spoon is: 2.2.2



Regards,



Remco

zachz
06-21-2006, 03:01 PM
I added this comment to bug # 1516 as well... I am running on Mac OSX


Hi Matt,



I came across this same error yesterday... I am running a very recent version of 2.3 and what seems to happen is that if the date field is null then this error is popped. It would work better if it just skipped the row when there is no data (put no data in the new field). We tried this on a couple of our date columns.



Thanks,



Zach