Microsoft Dynamics AX Application Object Server crashes when using temporary tables in Enterprise Portal

This article provides a resolution for the issue that Microsoft Dynamics AX Application Object Server crashes when using temporary tables in Enterprise Portal.

Applies to:   Microsoft Dynamics AX 2009, Microsoft Dynamics AX 2009 Service Pack 1
Original KB number:   2258719

Symptoms

Application Object server (AOS) crashed with error:

Log Name: Application
Source: Dynamics Server 02
Event ID: 110
Task Category: None
Level: Error
Description:

Object Server 02: Unexpected situation
More Information: Delayed change company RPC failed.

And then:

Log Name: Application
Source: Application Error
Event ID: 1000
Task Category: (100)
Description:

Faulting application name: Ax32Serv.exe, version: 5.0.1500.2189, time stamp: 0x4b73d211
Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdfe0
Exception code: 0xc0000005
Fault offset: 0x000000000000aa7d
Faulting process id: 0x%9
Faulting application start time: 0x%10
Faulting application path: %11
Faulting module path: %12
Report Id: %13

Cause

The user belongs to a user group where its domain does not include the DAT company. Due to design limitation, temp tables are defaulted to the DAT company similar to entire table caches.

Resolution

In User Group permission, make sure all users belong to a user group where the user group's domain contains the DAT company. Also, ensure that the DAT company is not used to save any data.