cancel
Showing results for 
Search instead for 
Did you mean: 

Graphical Mapping Query

Former Member
0 Kudos

Hi,

Hopefully a simple question which will have a simple answer! I need to truncate the first two characters from a field on the Outbound side ie:

<OBfield1>AB1234</OBfield1> maps to <INfield1>1234</INfield1>

This is easily done using a substring on OBfield during the mapping. The problem I have is if OBfield is ever NULL i.e.

<OBfield1></OBfield1>

In these cases the mapping fails as the substring operation has no input field.

Question: How can I use Graphical Mapping functions to check for a NULL/Empty node before applying the substring function?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I can answer my own question!

/thread/3218162

Excellent example of exactly what I needed to do in that thread.

You can ignore this question!

Answers (1)

Answers (1)

former_member184789
Active Contributor
0 Kudos

You can simply have a Standard length function, eg if length of source field is greater than 6, then subtsring else pass as it is..