OL Learn

Error when imposing with Additional Content

Hi, I am having trouble with imposing letters when using Additional Content. I have a 2d barcode placed on the front of the letter for use by a mailer inserter. When I run this without imposition it works fine, unfortunately when I then use the same barcode in an imposed output I get an error with the barcode. The first part of the code compares the sheet count to add either an A or B depending on whether the sheet is the last sheet or not, B indicating the last sheet. The string I use for the barcode is ‘${if(sheet.sequence.document>document.count.sheets){“A”;}else{“B”;}}${document.metadata.Match}${document.metadata.JobNumber}${document.metadata.Counter}’
The error I get is:
[0006] W3001 : Error while executing plugin: HTTP/1.1 500 There was an error running the output creation process caused by ApplicationException: expression ‘document.metadata.Match’ at line 1, column 71 in pattern yields value undefined (SRV000042)
Any help on this would be appreciated, I am very new to this.

Hi Chris_Tubb,

In this section of the user guide you will see that when using Impositioning, everything within the Job Segment is impositioned, so all meta data below the Job Segment level is lost.

https://help.objectiflune.com/en/planetpress-connect-user-guide/2020.2/#designer/Output/Print/Interface/Imposition.htm