Error message when you use the .NET business connector to write data to Microsoft Dynamics AX on a Multi-core processor computer: "Error: Microsoft Dynamics Business Connector Session 14"

Article ID: 945162 - View products that this article applies to.
RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION THAT IS CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED TO SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.
Expand all | Collapse all

On This Page

Symptoms

When you use the .NET business connector to write data to Microsoft Dynamics AX by using the AxaptaRecord object through multiple threads, you may receive the following error message:
Error:
Microsoft Dynamics Business Connector Session 14.

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at DBFPut(UInt16 dataset, UInt32 field_ext, dbRecbuf* recdata, Void* fielddata, Int32 size)
at cqlCursor.DBFPut(cqlCursor* , UInt32 field, Void* fielddata)
at Microsoft.Dynamics.BusinessConnectorNet.AxaptaRecord.setFieldValue(UInt32 fieldId, Object value)


This problem occurs on a Multi-core processor computer, such as hyper-threaded, dual proc, dual core, and so on.

Resolution

Hotfix information

A supported hotfix is now available from Microsoft. The hotfix corrects the problem that is described in this article. Apply the hotfix only to systems that are experiencing this specific problem.

To resolve this problem immediately, contact your Microsoft Dynamics partner or Technical Support for Microsoft Dynamics and related products to obtain the hotfix. If you have access to online assisted support you can log on to the Microsoft Dynamics site and create a new support request. To do this, visit the following Microsoft Web site:
https://mbs.microsoft.com/support/newstart.aspx
You can also contact Technical Support for Microsoft Dynamics and related products by telephone. To do this, visit the following Microsoft Web site:

PartnersCustomers
https://mbs.microsoft.com/customersource/support/information/SupportInformation/global_support_contacts_eng.htm
In special cases, charges that are ordinarily incurred for support calls may be canceled if a Technical Support Professional for Microsoft Dynamics and related products determines that a specific update will resolve your problem. The usual support costs will apply to any additional support questions and issues that do not qualify for the specific update in question.

This hotfix is not scheduled to be included with a service pack.
If you are a customer and if you do not have a Premier Support Agreement with Microsoft, you must contact your partner to obtain this hotfix.

Installation information

For more information about how to install this hotfix, click the following article number to view the article in the Microsoft Knowledge Base:
893082 How to install a Microsoft Dynamics AX hotfix

Prerequisites

There are no prerequisites for installing this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Microsoft Dynamics AX 4.0 Client
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Ax32.exe.3d122327_0ea2_4e86_b308_8ac7e69236f64.0.2500.3229,188,39207-Dec-200709:09Not Applicable
Axclicfg.exe.ef6a46d7_cac4_4663_a18b_19ad854fd2c14.0.2500.322187,43207-Dec-200709:09Not Applicable
Axdebug.exe.bc1a7025_4377_4cea_ac50_f179301f45a64.0.2500.3221,111,59207-Dec-200709:09Not Applicable
Microsoft.dynamics.analysisservices.dll4.0.2500.32250,21607-Dec-200709:09x86
Application Integration Server
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Bincopyofmicrosoft.dynamics.biztalk.adapter.dll4.0.2500.322115,75207-Dec-200709:10x86
Bincopyofmicrosoft.dynamics.biztalk.adapter.management.dll4.0.2500.322250,92007-Dec-200709:10x86
Gaccopyofmicrosoft.dynamics.biztalk.adapter.dll4.0.2500.322115,75207-Dec-200709:10x86
Gaccopyofmicrosoft.dynamics.biztalk.adapter.management.dll4.0.2500.322250,92007-Dec-200709:10x86
Microsoft.dynamics.integrationframework.webservice.process.dll4.0.2500.32250,21607-Dec-200709:10x86
Com Business Connector
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Axcom.dll.bc1a7025_4377_4cea_ac50_f179301f45a64.0.2500.3224,966,44007-Dec-200709:12Not Applicable
Axdebug.exe.bc1a7025_4377_4cea_ac50_f179301f45a64.0.2500.3221,111,59207-Dec-200709:12Not Applicable
Microsoft.dynamics.xml.dll.ef6a46d7_cac4_4663_a18b_19ad854fd2c14.0.2500.322445,99207-Dec-200709:12Not Applicable
.NET Business Connector
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Bincopyofmicrosoft.dynamics.businessconnectornet.dll4.0.2500.32212,548,64807-Dec-200709:13x86
Gaccopyofmicrosoft.dynamics.businessconnectornet.dll4.0.2500.32212,548,64807-Dec-200709:13x86
Application Object Server
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Ax32serv.exe.3d122327_0ea2_4e86_b308_8ac7e69236f64.0.2500.3226,232,61607-Dec-200709:14Not Applicable
Axsrvcfg.exe4.0.2500.322187,43207-Dec-200709:14x86

Workaround

To work around this problem, use the Mutex class to control access to the .NET Business connector Axapta object. For example, in your C# code, you would write something resembles the following:
axapta = new Axapta();

private static Mutex mut = new Mutex();
...
mut.WaitOne();

AxaptaRecord ljTbl;
ljTbl = axapta.CreateAxaptaRecord("LedgerJournalTable");
ljTbl.set_Field("CurrencyCode", "USD");
ljTbl.set_Field("JournalName", "Day1");
...
ljTbl.Insert();
ljTbl.Dispose();

mut.ReleaseMutex();

Status

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

More information

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, THE RELIABILITY OR THE ACCURACY OF THE INFORMATION THAT IS CONTAINED IN THE DOCUMENTS AND THE RELATED GRAPHICS PUBLISHED ON THIS WEB SITE (THE “MATERIALS”) FOR ANY PURPOSE.

THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON-INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

Properties

Article ID: 945162 - Last Review: January 25, 2013 - Revision: 3.0
Applies to
  • Microsoft Dynamics AX 4.0
  • .NET Business Connector Clients
Keywords: 
kbqfe kbmbsmigrate kbhotfixserver KB945162

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com