Auto-Print BPM

I have been tasked with creating an auto-print automation that is supposed to print out a shop order report when a Job is released.
Below is an image of the screen where a user will release a job by checking the Released check box (setting the data field from false to true)

In solving this, I have tried creating data directives on JobHead.Update
Below is the In-Transaction BPM that has a condition to check when a row in JobHead is updated with JobReleased changing from false to true, if that condition is met then it goes on to enable the standard directive:

In the standard bpm, the condition checks that the In-Transaction directive has enabled the standard directive, and moves on to the auto-print which is supposed to automatically print the shop order report with the specified printer options and the specified parameters.



Right now in the images I have attached the logic is set up for only one printer but I will need to implement the logic for this to be able to print to one other printer based on the site that the Job is being released from. But for right now I am trying to get it to print out to one print.

The issues that I am having are for one; the BPM doesnt show up in the trace log on dev tools, and when I try testing it this is the error message that pops up in the system monitor:

That error made me think that there was an issue with the report style BAQ and so I had my coworker that built the report style implement a JobNum parameter on the BAQ. But once he made that change I was still getting the same error.

What am I doing wrong or missing here?

Run schedule should be immediate not queued.

And the baq error is probably a null in a calculated field.

I have tried both of the run schedules, both have the same error

The error doesn’t have anything to do with autoprint, that is a baq error. Like Kevin said, probably an error in a calculated field. If you can’t print the report manually successfully first, then autoprint won’t work either.

They were able to successfully manually mass print these jobs but that is having another issue with printing the jobs from both sites when we only want the mass print to print out jobs at their assigned site. Is there a way to alter the mass print so that it prints jobs to their assigned sites’ printers?
This is an alternative to my automation if I am unable to get this auto-print to function, but I have not explored this yet.

Is there a method to figuring out where in the BAQ this error is occurring or which calculated field could be causing the break?

All calculated fields should be designed to handle nulls gracefully.

I know that doesn’t help.

You can go comment them out 1 by 1, /*old code*/ and fill in a known value. Figure it out that way.

I don’t know if there is a better way, or if the server log will help. I usually just get digging.

One technique I use often, is if I’m not linking on one, I just copy the baq, set it to return a million rows in the designer, and just start deleting them until it runs correctly lol.