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.

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: "Index was outside the bounds of the array"


View products that this article applies to.

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.

↑ Back to the top


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.

↑ Back to the top


Resolution

To resolve this issue, use the following methods. These methods correspond to the conditions that are described in the "Cause" 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.

↑ Back to the top


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:
  1. Stop the BizTalk Base EDI service.
  2. Click Start, click Run, type Edibtsmmc.msc, and then click OK.
  3. Expand Microsoft BizTalk Server 2004 Base EDI adapter, and then click Parameters.
  4. In the right pane, right-click the server that you want, click Properties, and then click No.
  5. On the Trace tab, click to select the following check boxes:
    • Trace kernel processes
    • Translate
    • Database
    • Network
    Note You must click to select the Trace kernel processes check box.
  6. On the Trace tab, note the path and the file name in the Trace file box, and then click OK.
  7. Start the BizTalk Base EDI service, and then reproduce the issue.
  8. 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.
The following trace of an EDI document transmission indicates that the transmission was successful:
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 [<domain>\<username>]
X  3: Tue Aug 30 11:43:37.773   _IsUserMemberOfEdiSubsystemGroup:   User [<domain>\<username>]] is a member of local group [BizTalk Application Users].
X  3: Tue Aug 30 11:43:37.773   _IsUserMemberOfEdiSubsystemGroup:   User [<domain>\<username>]] is a member of local group [BizTalk Isolated Host Users].
X  3: Tue Aug 30 11:43:37.773   _IsUserMemberOfEdiSubsystemGroup:   User [<domain>\<username>]] 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=<domain>\<username>]
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:
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 [<domain>\BTS SERVICE AACT]
X  3: Fri Aug 19 09:51:54.863   _IsUserMemberOfEdiSubsystemGroup:   EDI Subsystem group [<domain>\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  = [<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  = [<domaincontroller>]
X  3: Fri Aug 19 09:51:54.863   _IsUserMemberOfEdiSubsystemGroup: Determined LOGONSERVER from network: [<domaincontroller>]
X  3: Fri Aug 19 09:51:54.863   _IsUserMemberOfEdiSubsystemGroup: Check Domain Global Groups of user [<domain>\BTS SERVICE AACT] on logon server [<domaincontroller>]
X  3: Fri Aug 19 09:51:54.894   _IsUserMemberOfEdiSubsystemGroup:   User [<domain>\BTS SERVICE AACT] is a member of Domain Global Group [Domain Users]
X  3: Fri Aug 19 09:51:54.894   _IsUserMemberOfEdiSubsystemGroup:   User [<domain>\BTS SERVICE AACT] is a member of Domain Global Group [Service Accounts]
X  3: Fri Aug 19 09:51:54.894   _IsUserMemberOfEdiSubsystemGroup:   User [<domain>\BTS SERVICE AACT] is a member of Domain Global Group [BizTalk Application Users]
X  3: Fri Aug 19 09:51:54.894   _IsUserMemberOfEdiSubsystemGroup:   User [<domain>\BTS SERVICE AACT] is a member of Domain Global Group [EDI Subsystem Users]
X  3: Fri Aug 19 09:51:54.894   _IsUserMemberOfEdiSubsystemGroup: User [<domain>\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 [<domaincontroller>]
X  3: Fri Aug 19 09:51:54.910   _IsUserMemberOfEdiSubsystemGroup:   User [<domain>\BTS SERVICE AACT] is a member of Domain Local Group [Users].
X  3: Fri Aug 19 09:51:54.910   _IsUserMemberOfEdiSubsystemGroup: User [<domain>\BTS SERVICE AACT] is not a member of Domain Local EDI Subsystem User Group [<domain>\BizTalk Base EDI Users]
X  3: Fri Aug 19 09:51:54.910   sock_AuthenticateToClient: User <domain>\BTS SERVICE AACT is not a member of <domain>\BizTalk Base EDI Users
X  3: Fri Aug 19 09:51:54.910   sock_AuthenticateToClient: Failed

The service account is "<domain>\BTS SERVICE AACT"
The logged on user is "BizTalk EDI Admin"

↑ Back to the top


References

For more information about how to configure tracing, visit the following Microsoft Developer Network (MSDN) Web site:For more information about Microsoft Windows group accounts and user accounts in BizTalk Server 2004, visit the following MSDN Web site:For more information about the best practices for security, for accounts, and for certificates in BizTalk Server 2004, visit the following MSDN Web site: For more information about issues that may occur when you run the Base EDI tutorial in BizTalk Server 2004, click the following article number to view the article in the Microsoft Knowledge Base:
883549� You receive a "BEC2004: XSD2EDI failed to convert XSD: Compiling repository failed� error message when you try to run the Base EDI tutorial in BizTalk Server 2004

↑ Back to the top


Keywords: KB921993, kbprb, kbtshoot, kbbts

↑ Back to the top

Article Info
Article ID : 921993
Revision : 4
Created on : 3/16/2007
Published on : 3/16/2007
Exists online : False
Views : 315