Ordernum isn’t a duplicate field for OrderHed. That is where I am stuck. Also, I have changed the ponum to completely different things and even the shiptonnum is different. So, there are at lest three of the 5 that are different and get the same error. Here is my BPM, I am sure something is off, I just can’t find where. Note: I also went through and set the 5 keys to orderhed variables like Ordernum, Custnum, etc.
Figured it out. I had the Fill By Query and I should have been using the Update By Query. That solved the major issue. Now it is writing to the table even when its being deleted.