> For the complete documentation index, see [llms.txt](https://help.besmart.software/older-26.0.0/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.besmart.software/older-26.0.0/commands-overview/holixa-t4i/advanced-settings/validate-document-on-save.md).

# Validate Document On Save

`Holixa T4I -> Holixa 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://55290530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsuTTUicppaQuEkmSQ9eM%2Fuploads%2FfPUd1r5zho9P11AjiO1m%2Fimage.png?alt=media&amp;token=894dead7-dbe9-4e70-b701-9875b6de8295" 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://55290530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsuTTUicppaQuEkmSQ9eM%2Fuploads%2FMbDXlcKXeeR8Rsq1qrs3%2Fimage.png?alt=media&amp;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://55290530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsuTTUicppaQuEkmSQ9eM%2Fuploads%2FyJH4y4SpcxpoFCGAOi10%2Fimage.png?alt=media&amp;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://55290530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsuTTUicppaQuEkmSQ9eM%2Fuploads%2FskeA9fPIOlem9AHAL7AD%2Fimage.png?alt=media&amp;token=d9c93e85-9211-44b4-ae29-3bfd9d4662bb" alt=""><figcaption><p>White space before the part number</p></figcaption></figure>
