VI SO import "test" error: You cannot use a credit card or ACH payment when credit card of ACH payment type is not set up

(Posting this in case it might help someone in the future).

When an SO import job was run, it worked fine, but when clicking the "Test" button the above error message caused everything to fail.

Cause: SO# 0000000 existed in SO history. 

Deleting the 0000000 record in SO_SalesOrderHistoryHeader corrected the problem.

  • Doing some in depth BOI testing: I also get this message loaded into an updated oBusObj.sLastErrorMsg on both an oBusObj.nSetKey and oBusObj.nWrite methods even though their return values are 1.