Microsoft KB Archive/921993

= Event ID: 27 may be logged when you try to validate an EDI document or when you try to send an EDI document in BizTalk Server 2004: &quot;Index was outside the bounds of the array&quot; =

Article ID: 921993

Article Last Modified on 3/16/2007

-

APPLIES TO


 * Microsoft BizTalk Server 2004 Standard Edition
 * Microsoft BizTalk Server 2004 Enterprise Edition
 * Microsoft BizTalk Server 2004 Developer Edition
 * Microsoft BizTalk Server 2004 Partner Edition

-





SYMPTOMS
When you try to validate an Electronic Data Interchange (EDI) document or when you try to send an EDI document in Microsoft BizTalk Server 2004, an Error event that resembles the following may be logged in the event log: Event Type: Error

Event Source: EDI Transmitter

Event Category: BizTalk Server 2004

Event ID: 27

Description:

Transfer of message(s) to EDI Subsystem failed. Index was outside the bounds of the array.



CAUSE
This issue occurs if one of the following conditions is true:
 * The BizTalk Base EDI service and the BizTalk Server Host service do not use the same logon credentials.
 * The logon account for the BizTalk Base EDI service and for the BizTalk Server Host service does not have the permissions that are required to access the BizTalkEDIDb database and the Configuration database.

Note By default, the BizTalkMgmtDB database is the Configuration database.
 * The user who configured the EDI adapter is not a member of the EDI Subsystem Users group and of the BizTalk Server Administrators group.



RESOLUTION
To resolve this issue, use the following methods. These methods correspond to the conditions that are described in the &quot;Cause&quot; section.

Method 1: Verify the service logon credentials
Verify that the BizTalk Base EDI service and the BizTalk Server Host service use the same logon credentials.

Method 2: Verify the database permissions
Verify that the user account that is configured as the logon account for the BizTalk Base EDI service and for the BizTalk Server Host service has the permissions that are required to access the BizTalkEDIDb database and the Configuration database.

Method 3: Verify the group membership
Verify that the user who configured the EDI adapter is a member of the EDI Subsystem Users group and of the BizTalk Server Administrators group.

Note The EDI adapter must be configured to use global domain groups. You should not configure the EDI adapter to use local domain groups.



MORE INFORMATION
The user account that is configured as the logon account for the BizTalk Server Host service must be a member of the EDI Subsystem Users group. If the user account that is configured as the logon account for the BizTalk Server Host service is not a member of the EDI Subsystem Users group, the EDI transmitter cannot connect to the EDI subsystem. The EDI transmitter cannot connect because of insufficient permissions. Therefore, the Error event in the event log states that there is a transmission failure.

If the EDI Subsystem Users group is a local domain group or a global domain group, verify that the user who configured the EDI adapter is a member of the EDI Subsystem Users group. Additionally, verify that the user account that is configured as the logon account for the BizTalk Server Host service is also a member of the EDI Subsystem Users group.

If the user account that is configured as the logon account for the BizTalk Base EDI service is a local account, you must use a local account to log on to the computer that is running BizTalk Server. If the user account that is configured as the logon account for the BizTalk Base EDI service is a domain account, you can use a local account or a domain account to log on to the computer that is running BizTalk Server. However, the local account or the domain account must be a member of the EDI Subsystems Users group.

The EDI subsystem performs authentication checks during incoming connection attempts. For example, the group membership is not checked when the EDI subsystem transmits a message to the EDI adapter. Therefore, message processing works as expected when the BizTalk Base EDI service and the BizTalk Server Host service use the same logon credentials. However, the EDI subsystem uses the sock_AuthenticateToClient method to check the group membership if the BizTalk Base EDI adapter transmits a message to the EDI subsystem.

The EDI subsystem does the following tasks when the EDI subsystem checks for the correct permissions:
 * The EDI subsystem checks the local groups for the BizTalk Base EDI service logon account. The EDI subsystem also checks the local groups on the local computer for the correct group membership.

Note If the service logon account is not in a local group, the EDI subsystem checks the domain group membership.
 * The EDI subsystem lists the following items:
 * The user name and the domain name of the user who is logged on
 * The other domain names
 * The name of the logon server
 * The EDI subsystem checks that the service logon accounts are members of the following groups:
 * The BizTalk Application Users group
 * The BizTalk Isolated Host Users group
 * The EDI Subsystem Users group
 * The EDI subsystem checks the logon credentials for the BizTalk Base EDI service and for the BizTalk Server Host service.

To obtain the information that you need to troubleshoot this issue, you can enable the EDI Kernel Trace and the EDI Sub-process Trace. To enable tracing and to troubleshoot this issue, follow these steps:  Stop the BizTalk Base EDI service. Click Start, click Run, type Edibtsmmc.msc, and then click OK. Expand Microsoft BizTalk Server 2004 Base EDI adapter, and then click Parameters. In the right pane, right-click the server that you want, click Properties, and then click No. On the Trace tab, click to select the following check boxes:  Trace kernel processes</li> Translate</li> Database</li> Network</li></ul>

Note You must click to select the Trace kernel processes check box.</li> On the Trace tab, note the path and the file name in the Trace file box, and then click OK.</li> Start the BizTalk Base EDI service, and then reproduce the issue.</li> Review the Tetrace.log file. By default, the Tetrace.log file is in the \Documents and Settings\All Users\Application Data\Microsoft\BizTalk Server 2004\EDI\Subsystem\Logs folder.

Note The information in the Tetrace.log file is stored in the Esp.ini file. The BizTalk Server Base EDI Administration console extracts the information from the Esp.ini file. Then, the BizTalk Server Base EDI Administration console stores the information in the Tetrace.log file.</li></ol>

The following trace of an EDI document transmission indicates that the transmission was successful: <pre class="fixed_text">X 3: Tue Aug 30 11:43:37.492 sock_AuthenticateToClient: : Start X 3: Tue Aug 30 11:43:37.492   sock_AuthenticateToClient: Starting session #1 X 3: Tue Aug 30 11:43:37.648   sock_AuthenticateToClient: Received token from client: 58 bytes X 3: Tue Aug 30 11:43:37.648   sock_AuthenticateToClient: Starting session #2 X 3: Tue Aug 30 11:43:37.648   sock_AuthenticateToClient: Received token from client: 72 bytes X 3: Tue Aug 30 11:43:37.648   _IsUserMemberOfEdiSubsystemGroup: Check Local Groups of user [ \ ] X 3: Tue Aug 30 11:43:37.773   _IsUserMemberOfEdiSubsystemGroup:   User [ \ ]] is a member of local group [BizTalk Application Users]. X 3: Tue Aug 30 11:43:37.773   _IsUserMemberOfEdiSubsystemGroup:   User [ \ ]] is a member of local group [BizTalk Isolated Host Users]. X 3: Tue Aug 30 11:43:37.773   _IsUserMemberOfEdiSubsystemGroup:   User [ \ ]] is a member of local group [EDI Subsystem Users]. This is the Edi Subsystem Group, so the user is authorized to connect! X 3: Tue Aug 30 11:43:37.773   sock_AuthenticateToClient: Authentication was successful! Clientname= \ ] X 3: Tue Aug 30 11:43:37.773   sock_AuthenticateToClient: Successful The following trace of an EDI document transmission indicates that the transmission was unsuccessful: <pre class="fixed_text">X 3: Fri Aug 19 09:51:54.847 sock_AuthenticateToClient: : Start X 3: Fri Aug 19 09:51:54.847   sock_AuthenticateToClient: Starting session #1 X 3: Fri Aug 19 09:51:54.847   sock_AuthenticateToClient: Received token from client: 52 bytes X 3: Fri Aug 19 09:51:54.847   sock_AuthenticateToClient: Starting session #2 X 3: Fri Aug 19 09:51:54.863   sock_AuthenticateToClient: Received token from client: 72 bytes X 3: Fri Aug 19 09:51:54.863   _IsUserMemberOfEdiSubsystemGroup: Check Local Groups of user [ \BTS SERVICE AACT] X 3: Fri Aug 19 09:51:54.863   _IsUserMemberOfEdiSubsystemGroup:   EDI Subsystem group [ \BizTalk Base EDI Users] is not a local group. Skipping check on local groups! X 3: Fri Aug 19 09:51:54.863   _IsUserMemberOfEdiSubsystemGroup:   User info -> User Name     = [BizTalk EDI Admin] X 3: Fri Aug 19 09:51:54.863   _IsUserMemberOfEdiSubsystemGroup:   User info -> Logon Domain  = [ ] X 3: Fri Aug 19 09:51:54.863   _IsUserMemberOfEdiSubsystemGroup:   User info -> Other Domains = [] X 3: Fri Aug 19 09:51:54.863   _IsUserMemberOfEdiSubsystemGroup:   User info -> Logon Server  = [ ] X 3: Fri Aug 19 09:51:54.863   _IsUserMemberOfEdiSubsystemGroup: Determined LOGONSERVER from network: [ ] X 3: Fri Aug 19 09:51:54.863   _IsUserMemberOfEdiSubsystemGroup: Check Domain Global Groups of user [ \BTS SERVICE AACT] on logon server [ ] X 3: Fri Aug 19 09:51:54.894   _IsUserMemberOfEdiSubsystemGroup:   User [ \BTS SERVICE AACT] is a member of Domain Global Group [Domain Users] X 3: Fri Aug 19 09:51:54.894   _IsUserMemberOfEdiSubsystemGroup:   User [ \BTS SERVICE AACT] is a member of Domain Global Group [Service Accounts] X 3: Fri Aug 19 09:51:54.894   _IsUserMemberOfEdiSubsystemGroup:   User [ \BTS SERVICE AACT] is a member of Domain Global Group [BizTalk Application Users] X 3: Fri Aug 19 09:51:54.894   _IsUserMemberOfEdiSubsystemGroup:   User [ \BTS SERVICE AACT] is a member of Domain Global Group [EDI Subsystem Users] X 3: Fri Aug 19 09:51:54.894   _IsUserMemberOfEdiSubsystemGroup: User [ \BTS SERVICE AACT] is not a member of Domain Global EDI Subsystem User Group X 3: Fri Aug 19 09:51:54.894   _IsUserMemberOfEdiSubsystemGroup: Check Domain Local Groups on server [ ] X 3: Fri Aug 19 09:51:54.910   _IsUserMemberOfEdiSubsystemGroup:   User [ \BTS SERVICE AACT] is a member of Domain Local Group [Users]. X 3: Fri Aug 19 09:51:54.910   _IsUserMemberOfEdiSubsystemGroup: User [ \BTS SERVICE AACT] is not a member of Domain Local EDI Subsystem User Group [ \BizTalk Base EDI Users] X 3: Fri Aug 19 09:51:54.910   sock_AuthenticateToClient: User \BTS SERVICE AACT is not a member of \BizTalk Base EDI Users X 3: Fri Aug 19 09:51:54.910   sock_AuthenticateToClient: Failed

The service account is &quot; \BTS SERVICE AACT&quot; The logged on user is &quot;BizTalk EDI Admin&quot;

<div class="references_section">