on 08-13-2009 7:41 PM
Hello,
I would like to concat two fields, however there may be cases when the second field is not present, i.e. null. In this case the result of the concat is null too!
for example concat string "text" with a non existing field is null. I would expect that in this case the value is just text.
Is there a workaround? Of course I could add some more checks etc. but the graphical field mapping is already complicated enough and I do not want to add too many additional steps just for this purpose.
Thank you for your help.
Hi florian,
Use "mapwithdefault" function for the element which is optional. If It comes "null" the function is going to replace by the default value You could configure.
Regards
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Florian,
As Jose suggested you can use mapwithdefault and in mapwithdefault use a space and if you get null then it will send space to your output and in the end just put trim. It should give you the expected output.
field1 --> concat
field2 -> mapwithdefault(space)> result of concat --> trim --> targetfield
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>Is there a workaround?
Nothing that i can think of,its best to add If-Else checks to check the existence of Node
Thanks
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.