Functoid Remove Leading Zeros throws Convert-Exception

Oct 9, 2014 at 8:38 AM
Thank you very much for your helpful collection of functoids! I really use them a lot!!

I only run into one problem when using the functoid "Remove Leading Zeros". Since RemoveZeros(string) returns an integer value, Biztalk converts the result. This means, if a string such as "0000A" is given to the functoid, it throws the exception message "input string was not in a correct format".

Maybe it is better to remove the leading zeros with oldValue.TrimStart(new char[] {'0'}).

This way all kind of strings can be trimmed on their left side.