# Fix an invalid document page margin

Use an integer from 5 to 40 mm after a save failure.

## Recognize the problem — Shop-ERP

Saving can fail with a general error when Page margin (mm) is outside the allowed range or is not a whole number. Checked invalid values were 4, 41 and 5.5; clearing the field produced 0.

## Check and correct — Shop-ERP

1. Open Page setup → Paper in the affected template.
2. Replace the margin with a whole number from 5 to 40, such as 12.
3. Review other changes and choose Save.
4. Wait for “Invoice template saved” or “Packing slip template saved”.

![Unsaved invalid 4 mm margin](https://cms.tickalio.com/api/media/file/erp-fix-template-page-margin-01.png)

![Corrected 12 mm margin saved](https://cms.tickalio.com/api/media/file/erp-fix-template-page-margin-02.png)

## Retry or report it — Shop-ERP

The checked recovery saved 12 mm successfully. If the general error remains, check the required Item column and the 32-character prefix limit too. The invalid-value figure was captured after the transient error message disappeared.

> [!NOTE] These steps were checked with the actual application and fictional records in an isolated local preview. Connected persistence, permissions and downstream results remain unverified.

Last reviewed: 2026-11-01
