I came across an error while trying to enlist one of my send ports while deploying a BizTalk application in a new environment.
Could not enlist Send Port ‘SendPort1’. The text associated with this error code could not be found.
REASON
This error was caused by an erroneous carriage return and line feed in the send port <Filter></Filter> element of an imported binding file.
[code language=”xml”]
<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="CRMSAP.Receive.OneWay" />
</Group>
<Group>
<Statement Property="BTS.MessageType" Operator="0" Value="http://Microsoft.LobServices.Sap/2007/03/Rfc/#_x002F_BIC_x002F_CQZWS_ONE00001000Response" />
</Group>
</Filter>
</Filter>
[/code]
SOLUTION
Remove the line break after the <Filter> tag to fix the issue.
[code language=”xml”]
<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="CRMSAP.Receive.OneWay" />
</Group>
<Group>
<Statement Property="BTS.MessageType" Operator="0" Value="http://Microsoft.LobServices.Sap/2007/03/Rfc/#_x002F_BIC_x002F_CQZWS_ONE00001000Response" />
</Group>
</Filter>
</Filter>
[/code]