Stuart Brierley

Integration Management - BizTalk and More

  Home  |   Contact  |   Syndication    |   Login
  71 Posts | 0 Stories | 60 Comments | 0 Trackbacks

News

Archives

Post Categories

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