Validation rules allow Insight to manage the business logic for entities that Insight requires. These rules are defined in the Scribe Validation Rules table in Dynamics NAV and applied to the data that is received by Dynamics NAV.
Insight provides a set of commonly
used validation rules in
the ScribeValidationRules.txt file, which is included in the Adapter for Dynamics NAV installation directory.
Importing default validation rules varies by version of Dynamics NAV. Click the link for your version to view step-by-step instructions.
Select XMLPort, then scroll down and select Scribe Validation Rules Imp/Ex from the list:
Click Run to populate the Scribe Validation Rules table. The Edit - Scribe Validation Rules client window opens to allow you to import or export the table. Make sure Import is selected and click OK.
From the Import window, browse to the directory that contains the ScribeValidationRules.txt file. The default location is ..\Microsoft
Dynamics NAV\<xx>\Service\Add-Ins\Scribe\ScribeModifications\Common<year>\, where <xx> is the Dynamics NAV installation folder, which varies by Dynamics NAV version, and <year> is the Dynamics NAV version, such as 2013 or 2016.
Select the ScribeValidationRules.txt file and click OK. The Validation Rules table is imported and can be viewed from a Dynamics NAV client window.
To view or edit the Validation Rules
Select Table from the Object Designer.
Select Scribe Validation Rules from the list of available tables.
Click Run. The Scribe Validation Rules table opens in a client window. From here, you can view or edit the table. See the Microsoft Dynamics NAV help for information.
Import into Dynamics NAV 2009 R2
On the Navigation pane,
click the Scribe Integration navigation button.
Under Setup, click
Import / Export Validation Rules. The Scribe Validation Rules Import dialog box appears.
In the File Name field, click the browse
button to locate the validation setup file.
The Dataport Import File Name dialog box appears.
Note: The default validation setup file is located under the following
path: ..\Microsoft Dynamics NAV\60\ApplicationServer\ScribeModifications\Common.
Select the ScribeValidationRules.txt
file, then click Open.
For the Direction, verify that the Import option button is selected, then click OK.
Note: If any modifications are made to the default validation setup
imported from file, the changed setup data can be exported for further
use.
Click Yes to overwrite
validation rules.
You can view the results of validation rules import in
the Scribe Validation Rules window located under Scribe Integration
> Administration > Validation Rules.