I think the error message does not really apply. I have seen a situation where it sets LastErrorNum$ to that value just before evaluating the vendor number (or sales order) but then it does not fail at that point and continues running. However, it might run into a subsequent failure which does *not* set a LastErrorNum$ value, so when it returns to the caller, you see the incorrect error message. I suspect that's what's happening. Of course, the problem now is to discern what the correct error really is. That's might be a challenge.