Local and global validation rules
Important
This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Validation rules are used for validation of user input after a user has entered a value for a modeling variable. For example, if you are creating a product model for a lamp and want to restrict the user's choice of the lamp height to a certain range in case he or she had selected 3 or more bulbs for it, you would use validation rules to set this up.
Note
This information applies only to Product builder.
Local and global validation rules
Validation rules can be global and local. Global rules can be applied to several models and local rules are set up for only one product model.
Click Product information management > Setup > Product builder > Global rules. This location is only for modeling variables, not for calculation variables, because they are specific for each product model. The product models that the rule will apply to are selected in the lower pane of the form on the Versions tab. Before the rule can be active for the product model, it must be approved and activated. This procedure is standard and is the same as for BOM versions. The rule itself is created in the Rules form that opens when you click Validation.
You can create validation rules for both modeling and calculation variables in the Rules form that opens when you click Validation in the Product model form or the Modeling variables form.