uProduce Job Centre errors when submitting jobs through C# app with impositions

87 views
Skip to first unread message

James Harrod

unread,
Aug 6, 2018, 11:04:40 AM8/6/18
to XMPie Interest Group
Hi all,

I've got another strange problem I hope someone can help me with.

When I create a job ticket with impositions in my C# application, and then submit the job, it causes the job centre to have an error with "Object Reference not set to an instance of an object".

However, submitting the same job via the Document, works fine.

I don't have the error message to hand, so when I get it again, I'll add it in a comment. The error message looks like it starts at PopulateSheetDimensions.

In the meantime, just wondering if anyone else has had this problem?

Cheers

Stik Fortier

unread,
Dec 29, 2020, 12:50:33 PM12/29/20
to XMPie Interest Group
James,

Sorry to resurrect an old thread but I am having the exact same issue.

I can submit non-imposed print jobs via API perfect without error.

However, I receive the following error on the Produce gui when submitting imposed jobs. The pdf output is still created despite the error:

If you can remember, were you able to resolve this? 

Thanks - Matt  

/*ERROR MESSAGE BELOW*/

#Page Name: /XMPieDashboard/JobCenter/JobList.aspx

#Error Message: Object reference not set to an instance of an object. at JobCenter_JobDetails.PopulateSheetDimensions(ProductionPrintImposition& inImpositionObj) at JobCenter_JobDetails.PopulateImposition() at JobCenter_JobDetails.InitControls() at JobCenter_JobDetails.InitJobDetails() at JobCenter_JobList.JobGridView_DataBound(Object sender, EventArgs e) at System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e) at JobCenter_JobList.JobListDataBind() at JobCenter_JobList.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

couch

unread,
Dec 29, 2020, 5:21:17 PM12/29/20
to XMPie Interest Group
Clearly, something in the jobticket is missing or incorrect and causing the problem. 

Possible solutions:

1) in the SQL check the XMPDB2 database, Jobs table for the ID of the job that fails (or errors) copy the jobparams xml to a text file and compare it to a job ticket of the same job that you process via the dashboard with the imposition settings that you want. You should be able to identify the missing or incorrect parameters of the jobticket.

2) refer to the uProduce API documentation .chm - there are code examples of adding imposition to a job ticket in both VB and C#:
apidocs.jpg

3) perhaps it would be easier for someone to see what you are doing wrong if you posted your code?

4) if it is urgent, log a case with your XMPie or Xerox Support channel.

Stik Fortier

unread,
Dec 30, 2020, 1:21:01 PM12/30/20
to XMPie Interest Group
Thanks Couch. I compared jobParams from the XMPDB2 database between a successful/unsuccessful impositioned job. I had the value for 'CutMarks' and 'PageInfo' incorrectly set as '0' instead of Boolean. Once corrected, the impositioned job submitted without error.


# Caused Error
imp_CutMarks = {'m_Name': 'CutMarks', 'm_Value': '0'}
imp_PageInfo = {'m_Name': 'PageInfo', 'm_Value': '0'}

job_ticket.SetImpositionParameter(user, pw, job_ticket_ID, imp_CutMarks)
job_ticket.SetImpositionParameter(user, pw, job_ticket_ID, imp_PageInfo)


# Worked correctly
imp_CutMarks = {'m_Name': 'CutMarks', 'm_Value': False}
imp_PageInfo = {'m_Name': 'PageInfo', 'm_Value': False}

job_ticket.SetImpositionParameter(user, pw, job_ticket_ID, imp_CutMarks)
job_ticket.SetImpositionParameter(user, pw, job_ticket_ID, imp_PageInfo)
Reply all
Reply to author
Forward
0 new messages