Method Directive that will look part to see if it's serial tracked before it is received to inventory from a job. If it isn't receive if it is throw an exception

Hi,
This is what I have, where am I going wrong?
The exception is being raised if the part is serial tracked or not



You’re looking if there is any part on any job that is lot tracked. Nowhere are you limiting it to the current job or part number.

Pull your ds.PartTran into your query and match it to either jobhead on jobnum or part on partnum.