Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Message

When attempting to print a label template which contains a script, an error similar to the following is displayed:

Panel

(M1108) Error with Script field ‘suppress_script’: XML Parser Error: '-0.0540' violates pattern constraint of '[0-9]*[,.]?[0-9]*'. 

The attribute 'posTop' with value '-0.0540' failed to parse.

Explanation

In this example, the field name in question is "suppress_script". As the error message indicates, the XML Parser generates the error because a character found in the value is not in the list of valid characters for that property (the pattern constraint).  In this case, the Position Top field property ('posTop') contains a negative sign, but only the characters 0 through 9, comma, and period are recognized as valid characters.  

If a negative value is displayed in the Pos: Top property, then field is located partially or fully off the label canvas as shown in the following image.

Solution

Panel
bgColor#fff

To resolve this error, move the appropriate field fully onto the label canvas so the Pos: Top property is a positive value. The label prints as desired once this is complete.

Content by Label
showLabelsfalse
max5
spacesETS
sortmodified
showSpacefalse
reversetrue
typepage
labelsScript posTop Parser,kb-error-message

Article Number

2017076

Versions

All supported LPS family product versions

Environment

Any supported LPS family product environment

Page properties
hiddentrue

This table provides information that is visible only to Loftware users.

Linked Jira
JIRA
serverJira
serverIdb694bd2b-f495-3baf-a460-a9c93a1d1de3
keyOOB-858
Incident Number00115168
Author David Brown
Review Date