Testing for Empty/Nil/Missing Source Nodes in BizTalk Maps
November 24, 2014 Leave a comment
Re-posted from another blog – original publish date 27 Aug 2012
Scenario: You are mapping an optional node in your source schema to an optional node in your target schema. But… the target schema has stricter validation rules and cannot accept empty or “nil” nodes, whereas the source schema can.
By default, if the source node doesn’t exist, it won’t be output in your target. No problems there. But… what if the source node is empty or null?
Let’s look at this mapping example: