WCF-SAP Nco Connector creates additional white spaces in BizTalk Server

Applies to: BizTalk Server 2013 BranchBizTalk Server 2013 DeveloperBizTalk Server 2013 Enterprise


When you use the WCF-SAP Nco connector type (the .NET Framework connector) in BizTalk Server 2013 R2, additional padding (white spaces) is added and sent to SAP.

When an IDOC Receive operation occurs, text fields are padded with white spaces of a length that is equal to that field length. For example, the OBJECT_KEY element is defined by SAP as a 50-character string.

When you use classic RFC as in the following example, no trailing white spaces are added:


However, when you use the Nco connector type, trailing white spaces are added, as in the following example:

<OBJECT_KEY>testfromBiztalk                                   </OBJECT_KEY>


This issue occurs because the new Nco adapter is missing end-trimming functionality to exclude additional white spaces.


Cumulative update information

The fix that resolves this issue is included in Cumulative update package 4 for BizTalk Adapter Pack 2013  and Cumulative update package 5 for BizTalk Server 2013 R2 .

Note After you apply this update, the IDOC will be trimmed the same as when you use classic RFC.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.