I made a function that goes through a database to auto create receipts. All of them worked besides this one
I got the error above when this one would process using the function. I did it manually and I don’t get these errors.
I made a function that goes through a database to auto create receipts. All of them worked besides this one
I got the error above when this one would process using the function. I did it manually and I don’t get these errors.
Looks like it is saying that there is no RcvHead for Supplier “171” with a PackSlip “22015” .
Is your “Vendor Code” the VendNum or VendorID?
I use the vendornum and it is correct I am setting it manually to 151 and that’s their number in the database
Not sure which is the inner most exception but I think the second line is worth noting “A valid PO Line is Required”. Not sure how and what order you may be calling a method or service but are you passing a PO Line when needed.
I don’t remember seeing multiple exceptions stacked before, maybe this is specific of BPMs/Functions.
What I can tell you about the RcvHead error is that it is trying to find a record with Vendor Number 151, Purchase Point empty and Pack slip 22015 and it is not finding a record in the DB.
So this function actually creates the PO and adds the lines based off what is in the database. It worked for all the other ones but just this one is the one that errored out and I can’t understand why.
Is there a primary purchase point defined on the vendor record?
Did you mean to say creates the Receipt? The PO has to exist prior to creating the receipt.
This was the reason, I was just using null as the purpoint when some actually did have one. Thank you!