About Custom Consistency Check Rules
You can create consistency check errors and warnings based on your semantic model’s specific development standards.
Semantic Modeler's Check Consistency provides standard checks that find common modeling issues that prevent you from successfully deploying the model or that cause runtime errors. In cases where your organization has unique modeling requirements or standards, for example when presentation tables must have custom display names, you can create custom consistency checks to help you find and fix such unique issues before you deploy your model. Creating custom consistency checks replaces the manual checks you would otherwise have to perform on the model to find any unique issues.
When you create a custom rule for a model, you specify if you want the check to be an error or warning. You can provide an error number and write a custom error message to display in the custom consistency check results. You can group multiple rules under the same error or warning number.
You can edit the check rules in the SMML editor or the Semantic Modeler user interface.
Semantic Modeler saves custom rules with the model in which you created them. You can share custom rules by copying and pasting content from the SMML editor of one semantic model into the SMML editor of another semantic model.
You use JSONPath to write the custom rule's query. JSONPath is a query language for JSON that allows developers and non-developers to write queries against nested and complex JSON structures. Semantic Modeler ensures the queries you write are valid in the user interface and on the server. See About Using JSONPath to Write Semantic Model Custom Rule Queries.
Semantic Modeler doesn't include your model's custom rules when you run Check Consistency or Advanced Check. The custom rules that you assign to the Error category won't prevent you from running Advanced Check and deploying the model.
For information about Check Consistency, see About Check Consistency.