IBM Support

IT18042: SQL0998 RETURNED FROM ENLISTDISTRIBUTEDTRANSACTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When trying to enlist a transaction for XA (2 phase commit) in
    Microsoft Entity Framework, the following error is returned:
    
    SQL0998N  Error occurred during  transaction or heuristic
    processing.  Reason Code = \"16\". Subcode =
    \"2-FFFFFFFF8004D026\"."}
    
    *  subcode 02, MSDTC was unable to register the connection. For
    more
       information refer to the db2diag log file or the Windows
    Event Viewer
       for an entry titled MicrosoftXARMCreate.
    
    
    Function stack returned:
    at
    IBM.Data.DB2.DB2Connection.EnlistDistributedTransaction2(Object
    iTxn)
    at IBM.Data.DB2.DB2Connection.EnlistTransaction(Transaction txn)
    at
    System.Data.Entity.Infrastructure.Interception.InternalDispatche
    r`1.Dispatch[TTarget,TInterceptionContext](TTarget target,
    Action`2 operation, TInterceptionContext interceptionContext,
    Action`3 executing, Action`3 executed)
    at
    System.Data.Entity.Infrastructure.Interception.DbConnectionDispa
    tcher.EnlistTransaction(DbConnection connection,
    EnlistTransactionInterceptionContext interceptionContext)
    at
    System.Data.Entity.Core.EntityClient.EntityConnection.EnlistTran
    saction(Transaction transaction)
    ...
    

Local fix

  • If XA is not needed use Database.BeginTransaction
    (https://msdn.microsoft.com/en-us/library/system.data.entity.dat
    abase.begintransaction%28v=vs.113%29.aspx)
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * .NET provider                                                *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade client to v11.1 Fixpack 2                            *
    ****************************************************************
    

Problem conclusion

  • First fixed in v11.1 Fixpack 2
    

Temporary fix

  • See LOCAL FIX.
    

Comments

APAR Information

  • APAR number

    IT18042

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-11-18

  • Closed date

    2017-06-23

  • Last modified date

    2017-06-23

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IT18114

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
29 June 2020