# Validate Document On Save

`Be.Smart T4I -> Be.Smart T4I -> Advanced settings -> Auto iProperties -> Validate Document On Save`

On invoking the Save command, a check can be performed whether the document being saved conforms to preset rules. The activation of the individual validation checks can be set in Advanced settings.

<figure><img src="https://4060565498-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL8qMZuBhZUXGRVospdct%2Fuploads%2FvcwkN1r4c3FlbGEqqpM6%2Fimage.png?alt=media&#x26;token=d2d10e38-8ec4-4433-a8eb-2a231f9d71f3" alt=""><figcaption><p>On Save document validation settings</p></figcaption></figure>

If at least one of the validation checks fails, the save process is terminated, and the issue description is listed in a dialog box.

<figure><img src="https://4060565498-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL8qMZuBhZUXGRVospdct%2Fuploads%2FjnriM5nARf3X62hGaFyM%2Fimage.png?alt=media&#x26;token=5394ae76-94e8-47da-9265-bfcf504d497a" alt=""><figcaption><p>Example of the On Save validation error message </p></figcaption></figure>

## Virtual Components in Assembly

The assembly must not contain virtual components. If they are present, the save command is canceled.

<figure><img src="https://4060565498-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL8qMZuBhZUXGRVospdct%2Fuploads%2FDneCMGMBBW7N0EaVMxGp%2Fimage.png?alt=media&#x26;token=82755e36-43a7-4ff3-89f1-fe0949900817" alt=""><figcaption><p>Virtual component in the assembly</p></figcaption></figure>

## Invalid Units of Measurement

If there is a problem with units in BOM, the assembly cannot be saved.

## Whitespace Before or After the Part Number

The iProperty *Part number* must not start or end with spaces, otherwise, the document cannot be saved. This rule applies not only to assemblies but also to parts.

<figure><img src="https://4060565498-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL8qMZuBhZUXGRVospdct%2Fuploads%2FK1kfNFHtjPrIeaZRpwMS%2Fimage.png?alt=media&#x26;token=d9c93e85-9211-44b4-ae29-3bfd9d4662bb" alt=""><figcaption><p>White space before the part number</p></figcaption></figure>
