Skip to Content

Custom Form Print To Queue Via ABSL --- 'Mandatory Parameter Binary Data is Missing'


I've followed this guide and I'm getting the below error message when my action is called via a button click:

'Mandatory parameter binary data is missing'

Save After Execution is ticked on the action. My code is as follows:

import ABSL;
import BASIS.Global; //BinaryObject.
import AP.Common.GDT as gdt; //OutputRequestFormTemplateCode.
import DocumentServices.Global; //OutputManagementUtilities.

var pdf:BinaryObject;
var formTemplateCode:OutputRequestFormTemplateCode;
formTemplateCode.content = "<Solution ID>_PGS";
var userAccount:UserAccountID;

var formTemplateLanguage = "E";
pdf = OutputManagementUtilities.GetPDF(this, formTemplateCode, formTemplateLanguage);
pdf.fileName = "CustomerInvoice";
userAccount.content = "PRT_001";

var output = OutputManagementUtilities.CreatePrintQueueItem(userAccount, pdf.fileName, 1, pdf, "TESTQUEUE");
var x = 10;

The form template code is correct, as is the print user ID and the name of the print queue. The script file isn't mass-enabled. I've deployed the business configuration of the solution.

Any ideas?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 06, 2018 at 03:49 PM

    Solved it --- as opposed to using the group code a la Preview buttons, use the actual form code!

    Add comment
    10|10000 characters needed characters exceeded