• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tFileOutputExcel_1_NB_LINE leads to null pointer exception

#1 2009-08-03 20:13:42

Mani
Member
Registered: 2009-05-12
Posts: 23

tFileOutputExcel_1_NB_LINE leads to null pointer exception

Hi,

Please refer below my Job design,

tFileinputexcel - tmap - tjava -  tfile output excel 1    - email 1 (tFileOutputExcel_1_NB_LINE>1)
                                             tfile output excel 2    -  email 2 (tFileOutputExcel_2_NB_LINE   returns null)
                                             tfile output excel 3    - email 3 (tFileOutputExcel_3_NB_LINE   returns null)

for each output file I need to verify a condition like "((Integer)globalMap.get("tFileOutputExcel_1_NB_LINE")) > 1"
based on the result I need to send a mail to users.

NB_line is work only if my subjob is ok (ie for one condition tfile output excel 1_nb line)
other 2 conditions the line vale return "null" and I am not able to check the conditions.

Please let me know if any other way to check my condition for Email notifications.

Thanks and Regards,
Manikandan.R


Thanks and Regards,
Mani.

Offline

#2 2009-08-03 22:40:48

Volker Brehm
Member
Registered: 2007-04-03
Posts: 1139
Website

Re: tFileOutputExcel_1_NB_LINE leads to null pointer exception

Hi Manikandan,

use the following code instead:

Code:

(globalMap.get("tFileOutputExcel_1_NB_LINE") != null? (Integer)globalMap.get("tFileOutputExcel_1_NB_LINE")) > 1 : false

Bye
Volker

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tFileOutputExcel_1_NB_LINE leads to null pointer exception

Board footer

Powered by FluxBB