KB4521758 - FIX: JDBC XA transaction fails with an error in SQL Server 2017 on Linux

Applies to: SQL Server 2017 Developer LinuxSQL Server 2017 Enterprise Core LinuxSQL Server 2017 Enterprise Linux

Symptoms


Assume that you configure JDBC XA transactions after SQL Server database is installed. When you try to use the JDBC transaction on SQL Server 2017 on Linux, you may receive an error message that resembles the following:
main" javax.transaction.xa.XAException:com.microsoft.sqlserver.jdbc.SQLServerException: Failed to create the XAcontrol connection. Error: "Procedure expects parameter '@errormegssage'of type 'nchar'."

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. 

Resolution


This issue is fixed in the following cumulative update for SQL Server:
Note For this fix to take effect, you need to enable the Trace Flag (TF) 8291.

About cumulative updates for SQL Server:
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

References


Learn about the terminology that Microsoft uses to describe software updates.