Quantcast
Channel: SQL Server Master Data Services forum
Viewing all articles
Browse latest Browse all 1311

Cannot apply business rule - greater than decimal datatype

$
0
0

Hello,

I've encountered such a irritating problem, which I can repeat only on specific environment (even if both tested for sql server 2012).

I created a business rule for 'arg' datatype decimal. The condition is "if is not blank" and the action is "must be greater than 0". After publishing business rules I hit "apply rules" in excel add-in and I received this error:

"Error converting data type nvarchar to numeric. Transaction count after EXECUTE indicates as mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1.Transaction count after EXECUTE indicates as mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1.Transaction count after EXECUTE indicates as mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1.Transaction count after EXECUTE indicates as mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1. Uncommittable transaction is detected at the end of the batch. The transaction is rolled back. "

So far I am 100% sure, that the problem is caused by this specific business rule. There are no values in 'ARG' that return the error of "converting nvarchar to numeric", I've already tried to query that from db level witch cast or checked any uncommitted transactions.

Do you have any ideas what the cause is?


Viewing all articles
Browse latest Browse all 1311

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>