Share via

SQL server 2019 Master data services: avoid record creation

A B 21 Reputation points
2021-07-29T08:51:26.263+00:00

Dear all,
we are using MDS 2019, and I create a Business Rules of kind "xxx attribute is required".
Problem, is that the record, even if the concerned attribute is not filled, is created (with message validation failed, and a red exclamation point)

Is there a way to totally avoid record creation depending of this kind of business rules ?

hope I'm clear
thank you in advance.
Regards

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

Answer accepted by question author

Cris Zhan-MSFT 6,676 Reputation points
2021-07-30T06:52:17.723+00:00

Hi,

Welcome to Microsoft Q&A!

Business rules are If/Then/Else statements that you create in Master Data Manager. If an attribute value meets a specified condition, then an action is taken, otherwise a Else action is taken. Possible actions include setting a default value or changing a value. If a user attempts to add an attribute value that doesn't pass business rule validation, the value can still be saved. You can review and correct validation issues, which are displayed in Master Data Manager.

You can create a business rule to enforce uniqueness of other attributes, but business rules will not prevent data loading.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/3d44e28a-1291-456b-8269-5368b5f21d17/preventing-duplicate-inserts?forum=sqlmds

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. A B 21 Reputation points
    2021-07-30T12:43:43.703+00:00

    thank you Criszhan.
    This option should be appreciate I think, in order to have a lot of record with a Validation status failed
    regards

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.