PackingSlipPrintSvc schema and params on Kinetic - please help

hello everyone,

We have this BPM that send an email everytime a receipt is completed. Email is always sent to same recepient and should have the PS attached.

Back in E10 it was working properly but now that we transfer it to kinetic it stop working throwing a “NullReferenceException” error message. I know schemas had changed and probably parameters required to call the PackingSlipPrintSvc should have also… but I’ve checked the resthelp and addedd the whole list of parameters and it is still not working…

it is important to say that I’m running this C# custom code inside the BPM.

var packSlip = Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.PackingSlipPrintSvcContract>(Db);
PackingSlipPrintTableset pS = packSlip.GetNewParameters();
    PackingSlipParamRow r = pS.PackingSlipParam[0];
    int packNum = (int)callContextBpmData.Number01;
    string subject = "PackSlip: " + packNum.ToString() + " for Customer: " + callContextBpmData.Character02;
    int reportNum = 1005;
    
    r.PackNum = packNum;
    r.PrintingOptions = "S";
    r.AssignLegalNumber = false;
    r.EnableAssignLegalNumber = false;
    r.DCHdrList = "";
    r.PackNumList = "";
    //r.StyleNumExt = 1;
    r.EnableIncludePCID = false;
    r.IncludePCID = false;
    r.DocCopyNum = "";
    r.DraftMode = false;
    r.DemandContractList ="";
    r.IncludeInventoryAttributes = false;
    r.SysRowID = Guid.Parse("00000000-0000-0000-0000-000000000000");
    r.AutoAction = "SSRSClientPrint";
    r.PrinterName = "";
    r.AgentSchedNum = 0;
    r.AgentID = "SysAgent";
    r.AgentTaskNum = 0;
    r.RecurringTask = false;
    r.RptPageSettings = "";
    r.RptPrinterSettings = "";
    r.RptVersion = "";
    r.ReportStyleNum = reportNum;
    r.WorkstationID = "";
    r.TaskNote = "";
    r.ArchiveCode = 0;
    r.DateFormat = "m/d/yyyy";
    r.NumericFormat = ",.";
    r.AgentCompareString = "";
    r.ProcessID = "";
    r.ProcessCompany = ""; //NEW
    r.ProcessSystemCode = ""; //NEW
    r.ProcessTaskNum = 0;
    r.DecimalsGeneral = 0;
    r.DecimalsCost = 0;
    r.DecimalsPrice = 0;
    r.GlbDecimalsGeneral = 0;
    r.GlbDecimalsCost = 0;
    r.GlbDecimalsPrice = 0;
    r.FaxSubject = subject;
    r.FaxTo = "";
    r.FaxNumber = "";
    r.EMailTo = "";
    r.EMailBody = subject;
    
    r.AttachmentType = "PDF";
    r.ReportCurrencyCode = "USD";
    r.ReportCultureCode = "en-US";
    r.SSRSRenderFormat = "PDF";
    r.UIXml = ""; //NEW
    r.PrintReportParameters = false; //NEW
    r.SSRSEnableRouting = false; //NEW
    r.RowMod = "A";
    packSlip.RunDirect(pS);

Should you see any error or missing part? I have attached the directive exported
ManifestEmail.bpm (39.0 KB)

Please help me, any suggestion will be very appreciated.
.

Let’s see the full error message.

Also, maybe post a trace of doing a manual print.