Geeks With Blogs

Stuart Brierley Integration Management - BizTalk and More

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.

Posted on Friday, May 28, 2010 4:00 PM BizTalk Maps, Mapping and Functoids | Back to top

Comments on this post: BizTalk 2009 - Size Functoid Fun

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Stuart Brierley | Powered by: