MES - Start Production Trying to launch PDFFormTemplate

Hi Everyone. In MES >StartActivityProduction, ootb looks at LaborDtl.TemplateID (which looks like a dynamic field) I don’t see it in BAQ.

If the TemplateID !== “” then ask to launch Work Instructions. I want to disable this; however, I cannot find the source. There are no PDFForms nor PDFFormTemplates created.

I can customize the Tool to remove the condition, but I’d rather cleanup whatever is the trigger.

Here’s a post I created about this awhile back. Not sure if it is pertinent to your situation or not.

My solution was to copy the LaunchPDFFormTemplateView event and set it to override the base event. I added a condition that (at the time) appeared to be missing.

I don’t know if anybody else experienced this issue at the time or not?? But you could try this and see if it helps.

Yes; and thank you for responding. Same issue just a different event. I will create a custom event and remove the condition that checks if a TemplateID exists, then tries to launch PDFForm. But was hoping to figure out why the system thinks a TemplateID exists. I was unable to find any.

I figured out that the issue was the condition itself – when tracing the TemplateID, it was equal to ‘’.

The condition LaborDtl.HasRow = true and LabrDtl.Count > 0 and LaborDtl.TemplateID !==‘’.

It’s not properly evaluating the .TemplateID value. Either it doesn’t know how to interpret the empty string or the API has issues with parsing the conditions. I’ve had an issue with !== operator in a condition and re-wrote the condition to evaluate if === ‘’ then go to the false result process.

Anyone else have an issue with !==?