I wrote a BPM that will prevent the receipt of inventory based on certain critera. Ever since I implemented it (Method Directive) the first serial number in the receipt is not being created.
I am not looking at serial numbers, and the entire receipt is stopped if any issues arise. I can’t figure out why 4/5 or 2/3 serial numbers are getting recorded when the full receipt is allowed?
I know I need to probably post more specifics, but I was hoping this type of thing has been seen before and I could look at some items before I pasted a bunch of screenshots and code examples.
Each block I assign a number to a variable. Some are from the dsPartTranRow, and some are using linq. I only throw an exception if the qty received is > ProdQty.
Somehow this logic is messing up the recording of the SNTran/PartTranSNTran tables. I received both jobs and got no errors on either one. They both completed/closed normally.
I’m just unsure if I should call this an Epicor bug? They seem to be telling me it’s outside of support since it’s a BPM. I’m only reading from the BO datasets, doing a linq query, and then comparing the totals. If it’s off it throws a flag. I’m not changing any data, and yet a serial number record disappears out of the dataset.
I’m going to play around with the BPM and see if I can pinpoint what is causing the issue. Maybe that will shed some more light on what my options are.