cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping - Trim the incoming characters in Field

Former Member
0 Kudos

Hi Experts ,

I am trying to use the Substring function for cutting the field characters length. But when the characters are less compared in substring its throwing an error.

Do I have to use UDF for this solution. or can I achieve this just using graphical mapping

Thanks in Advance.


Regards,
Pooja

Accepted Solutions (1)

Accepted Solutions (1)

manoj_khavatkopp
Active Contributor

Pooja,

You can have a look at this blog : Dynamic Substring.

Br,

Manoj

Answers (3)

Answers (3)

Harish
Active Contributor

Hi Pooja,

One more option is to check the length from text function and if the length is greater than 10 then only apply the substring (using substring). else pass the value as it is to target.

regards,

Harish

former_member186851
Active Contributor
0 Kudos

What value should be passed if the length is less than 10?

Harish
Active Contributor
0 Kudos

Hi Pooja,

One more option is to check the length from text function and if the length is greater than 10 then only apply the substring (using substring). else pass the value as it is to target.

regards,

Harish