Error M1108 Error with Script Field, Expected Identifier
Error Messages
LPS Status Dialog:
"M1108 Error with script field"
Design 32: When performing a Verify Script operation on a script the results are:
FAILURE Expected identifier
Explanation
When Loftware Label
A label is a design area on the computer screen where a label format is created or edited. Manager (LLM) is upgraded to version 12, the script verification is done with a different scripting engine than was used in older versions. The exact same script code may not successfully validate with the new engine.
Example
Solution
Remove any empty spaces that break up the syntax of the field object.
Remove any other syntax errors that cause the validation to fail.
This also includes unexpected Carriage Returns.
//INCORRECT:
if(label.fields.field.(@name=='main_data_lw_matnr_display').@data == "SHG500S11")
{
label.fields.field.(@name=='main_data_lw_sernr_device').@data = "";
} else {
label.fields.field.(@name=='main_data_lw_sernr_device').@data = label.fields.field.//<-- Unexpected Carriage Return
(@name=='main_data_lw_sernr_device').@data; //<--- Unexpected Carriage Return will cause the script to fail script validation
}
//CORRECT:
if(label.fields.field.(@name=='main_data_lw_matnr_display').@data == "SHG500S11")
{
label.fields.field.(@name=='main_data_lw_sernr_device').@data = "";
} else {
label.fields.field.(@name=='main_data_lw_sernr_device').@data = label.fields.field.@name=='main_data_lw_sernr_device').@data; //<-- Removed extra Carriage Return
}
Article Number
18140
Versions
LPS 11 and earlier
Environment
Any supported LPS family product environment


