Cross-Validation Rules System Settings
Overview
In most cases, the default system settings are sufficient. You can find the settings under Netgain > Setup > System Setup > Cross-Validation Rules.
Settings
| Setting | Description | Example |
| Cross-Validation Rules Max Lines for Execution | This is the maximum number of lines that a transaction can have before it is considered too large to be executed by the cross-validation rules script. If the transaction has more lines than this number, the cross-validation rules script will not be executed. By default, this will be empty. | 100 |
| Cross-Validation Rules Run on Type | Selecting an execution type sets the cross-validation rules script to only trigger if executed by one of the selected types. Selecting "User Interface" will set the cross-validation rules script to only run if triggered through the user interface. If there are no selections made, the cross-validation rules script will run normally. See warnings below. | User Interface, Suitelet, CSV Import |
| Disable Client-Side Cross-Validation | Prevent-mode rules run a client-side check so that, when a save is blocked, the values entered on the transaction are retained and the user can correct the flagged field without rebuilding the transaction. This behavior is on by default and requires no setup. Enable this setting to turn the client-side check off and validate on the server only. Rules are still enforced, but a blocked save will not retain the values the user entered. | Unchecked (default) |
Cross-Validation Rules will only work on imported CSV transactions that are imported through Setup > Import/Export > Import CSV Records with the Import Options: Run Server SuiteScript and Trigger Workflows turned on.
Cross-Validation Rules are not able to evaluate transactions created by User Event Scripts due to NetSuite limitations that apply to User Event Scripts. Netgain will be releasing a separate query-based report that will show all transactions created by User Event Scripts that violated Cross-Validation Rules, so that Cross-Validation Rules will still apply.
