0

I am trying to check the length of a string using mystring.length() in tmap component of Talend. However, I am encountering an error

Type mismatch: cannot convert from boolean to String. 

The fields:

Input port: string 50
output port: integer 50
syntax used: COLUMN_NAME.length()

enter image description here

tobi6
  • 8,033
  • 6
  • 26
  • 41
  • I suspect this could be connected to another part of the code. Do you see an error when you click on the Code tab unterneath the design window? – tobi6 Sep 26 '17 at 08:30
  • I tried to rebuild the tmap and it ran successfully. I am not sure how it got resolved though. Thank you for your inputs! – DHSalaveria Sep 26 '17 at 10:05
  • I think this error is due to, joining CAMPAIGN_NAME( which is 'string') to other field(may be the data type of that field is 'BOOLEAN') which is not shown in figure... – Horse_1995 Sep 26 '17 at 10:44
  • May me due to some other mapping – Horse_1995 Sep 26 '17 at 10:53

0 Answers0