BizTalk 2009 - Size Functoid Fun

Posted by StuartBrierley on Geeks with Blogs See other posts from Geeks with Blogs or by StuartBrierley
Published on Fri, 28 May 2010 14:00:08 GMT Indexed on 2010/05/28 15:12 UTC
Read the original article Hit count: 218

Filed under:

Recently when mapping a flat file from a third party source, I needed to check whether some elements had been sent with any content or not.

In the source message these elements were being supplied in the form:

<comment />

I though I would try using the size functoid, assuming that it would return a size of 0 for these empty elements.  What actully happens is that the Size funtoid returned a size of 1 rather than the 0 I was expecting.

To get what I considered to be the correct output I needed to add a String Right Trim functoid before the Size functoid.  This then returned the "required" size of 0.

© Geeks with Blogs or respective owner