KB3023634 - FIX: Conversion error occurs when you use a business rule in SQL Server 2012 or SQL Server 2014 MDS

Applies To
SQL Server 2012 Developer SQL Server 2012 Enterprise SQL Server 2012 Standard SQL Server 2014 Developer - duplicate (do not use) SQL Server 2014 Enterprise - duplicate (do not use) SQL Server 2014 Standard - duplicate (do not use)

Symptoms

Consider the following scenario:

  • You create a business rule that tests for a blank value on a numeric attribute in Microsoft SQL Server 2012 Master Data Services (MDS).
  • You save and publish the business rule.
  • You open the entity in MDS Explorer, and run the business rule to validate the entity members.

In this scenario, you receive the following error message:

Note

8114: Error converting data type nvarchar to numeric. Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1.

Note This issue also occurs in SQL Server 2014 MDS that has applied CU3 or later versions. For example, when you execute a business rule in MDS that checks whether a date attribute is empty, you receive the following error message:

Note

Error converting data type nvarchar to datetime

      

Resolution

The issue was first fixed in the following cumulative update of SQL Server.

Cumulative Update 6 for SQL Server 2014 /en-us/help/3031047

Cumulative Update 4 for SQL Server 2012 SP2 /en-us/help/3007556

Cumulative Update 14 for SQL Server 2012 SP1 /en-us/help/3023636

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:

      

Status

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