Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Arabic string data causes a "BasePrimitiveConverter" exception in Host Integration Server 2013


View products that this article applies to.

Symptoms

You are running a Transaction Integrator application that passes Arabic string data to a mainframe transaction application. In certain conditions, process fails and returns an exception that resembles the following error message:

HISMPCB0001 In BasePrimitiveConverter an exception has occurred.

Exception description: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.'.'

This problem occurs if the string contains spaces in front of the Arabic characters, and if the number of spaces is equal to or greater than the number of actual Arabic characters. For example, the following string causes this problem:

“بتينبتينص ئ            “ 
Note In this string, the quotation marks are included only to show the added spaces.

↑ Back to the top


Cause

This problem occurs because the string length of the array that is to be copied is incorrectly calculated.

↑ Back to the top


Resolution

Cumulative update information

The fix that resolves this problem is included in cumulative update package 3 for Host Integration Server 2013. For more information about how to obtain the cumulative update package, see Cumulative update package 3 for Host Integration Server 2013.

↑ Back to the top


Status

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

↑ Back to the top


Keywords: kbqfe, kbsurveynew, 2000sr1rtmpublic, 2000sr1rtmpartner, kbhtmlplaceholder, kb

↑ Back to the top

Article Info
Article ID : 3064954
Revision : 1
Created on : 1/7/2017
Published on : 9/30/2015
Exists online : False
Views : 300