BizTalk Server Administration Error – Failed to enable constraints
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. (Microsoft.BizTalk.Administration.SnapIn)
Table of Contents
Introduction
Error – Failed to enable constraints
Even I was able to open Host and HostInstance.
Cause
Resolution
Most BizTalk Server runtime operations require Microsoft Distributed Transaction Coordinator (MSDTC) support to ensure that the operations are transactionally consistent. If MSDTC transaction support is not available, then the associated BizTalk Server runtime operations cannot proceed. The components of BizTalk that are commonly affected when MSDTC transaction support is not configured correctly include (but are not limited to) the Single Sign-On Service, BizTalk host instances, and any SQL Server instances that are connected to BizTalk Server. This section contains information that describes MSDTC-related errors and steps that can be followed to diagnose and resolve problems with MSDTC.
Errors that can occur if MSDTC transaction support is not configured correctly
Errors similar to the following may occur on BizTalk Server when MSDTC transaction support is not configured correctly on the computers in a BizTalk environment:
- “A Microsoft Distributed Transaction Coordinator problem prevented connection to the Configuration database. The transaction manager has disabled its support for remote/network transactions”.
- “A Microsoft Distributed Transaction Coordinator problem prevented connection to the Configuration database. The transaction has already been implicitly or explicitly committed or aborted”.
- “Error Code: 0x8004d00a, New transaction cannot enlist in the specified transaction coordinator”.
- “Could not retrieve transport type data for Receive Location ‘MySample ReceiveLocation’ from config store. Primary SSO Server ‘MyServer’ failed. The RPC server is unavailable”.
- “Error Code: 0x8004d025, The partner transaction manager has disabled its support for remote/network transactions”.
- “Error Code: 0xc0002a24, Could not import a DTC transaction. Please check that MSDTC is configured correctly for remote operation”.
- “0x8004d01c
- [0x1705] There was a failure creating the internal work item.
- Make sure that SQL Server is running.”
To resolve MSDTC configuration errors, follow the steps below.
- Ensure NetBIOS name resolution between the BizTalk Server and remote servers is successful
- Ensure that a firewall between the BizTalk Server and remote servers is not blocking ports required for RPC dynamic port allocation
- Set the appropriate MSDTC Security Configuration options
- Set the appropriate values for the EnableAuthEpResolution and RestrictRemoteClients options
- If Windows Firewall is running, add an exception for the MSDTC service
- Use DTCTester or DTCPing to verify MSDTC functionality over the network
- Ensure that MSDTC is assigned a unique CID value
- Consider reinstalling the Distributed Transaction Coordinator service if other troubleshooting steps are not successful
Verification