Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

CONCATENATE COLUMN(string) in tMap BUG if is NULL?

Hi,
I have tOracleInput_>tMap->tAggregateRow->tOralceOutput
In tMap I make (row1.column1)+(row1.column2)+(row1.column3) in tMap out field.

If column1 or column2 or column3 are NULL in output i have for example:
AnullC
nullnullC
ABnull
Anullnull
nullnullnull
I'm going to have:
AC
C
A
AB
""
Where I'm wrong????

Thanks in advance,
Gino.
Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hi,
If I understand you very well, you can use
(row1.Column1 + row1.Column2 + row1.Column3).replaceAll("null","")

in tMap expression. At first, set your data schema as "string".

Best regards
Sabrina
_AnonymousUser
Specialist III
Specialist III

replaceAll("null","") won't work as expected if the strings by chance contain the substring "null"