The maximum length for auto-numbering masks is 25 characters for base documents and 20 characters for modifications/amendments.