Importing Default Validation Rules

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.

Import into Dynamics NAV 2013 Or Higher

  1. From Dynamics NAV, open the Object designer.
  2. Select XMLPort, then scroll down and select Scribe Validation Rules Imp/Ex from the list:

    From the Dynamics NAV Object Designer XMLPort file list, select Scribe Validation Rules Import

  3. 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.
  4. 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.
  5. 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

  1. Select Table from the Object Designer.
  2. Select Scribe Validation Rules from the list of available tables.
  3. 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

  1. On the Navigation pane, click the Scribe Integration navigation button.
  2. Under Setup, click Import / Export Validation Rules. The Scribe Validation Rules Import dialog box appears.
  3. 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.

  4. Select the ScribeValidationRules.txt file, then click Open.
  5. 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.

  6. 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.

See also

Using field-level validation

Next step