BizTalk Filters not getting imported while import binding
Issue
Last day while working on import/Export binding I found Port Filters not going to appear after import binding, although they were present in Binding.XML file.
Root Cause
This issue will appear if the binding file is edited using Visual studio. Normally we do some tweaking with Binding file while import/export between different environments.
When we open Binding file for editing the XML formatting feature of visual studio become the cause of this mess.
Here are the both version of Filter node in binding file, before and after editing.
<Filter> <?xml version="1.0" encoding="utf-16"?>
<Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Group>
<Statement Property="BTS.ReceivePortName" Operator="0" Value="Receive_Concur" />
<Statement Property="BTS.InboundTransportType" Operator="0" Value="FILE" />
</Group>
</Filter>
</Filter>
<Filter>
<?xml version="1.0" encoding="utf-16"?>
<Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Group>
<Statement Property="BTS.ReceivePortName" Operator="0" Value="Receive_Concur" />
<Statement Property="BTS.InboundTransportType" Operator="0" Value="FILE" />
</Group>
</Filter>
</Filter>
It was really confusing for me to find the difference but as you can see during editing the auto format feature put a line break after beginning node of Filter.
Solution
I just removed the Line break and Filter information successfully get imported.
See Also
Read suggested related topics:
Another important place to find an extensive amount of BizTalk related articles is the TechNet Wiki itself. The best entry point is BizTalk Server Resources on the TechNet Wiki.