cancel
Showing results for 
Search instead for 
Did you mean: 

UDF fails on node function removecontext

Former Member
0 Kudos

Hello,

I have a UDF defined that pads string with zeros. THe UDF is working as expected when I use on any element in the mapping. But while mapping at one place I have to use nodefunction, "removecontext" function and the outcome of the function fed to UDF.

For some reason the string comes out of removecontext mapping would not pad zeros. I tried to use different functions from sting to maniplate string with no success.

If any one of you come across similar issue and how you addressed?

Thank you,

Balaji

Accepted Solutions (0)

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Not sure if this is applicable in your case, but there was a bug before in XI and to make the UDF work for constants we add mapWithDefault e.g


constant:any -> mapWithDefault -> UDF -> target

What error are you exactly encountering and why do you need to remove the context just before the UDF?

Hope this helps,

Mark