We got this error when trying to do a return and the customer sale had not been settled so SPS thought that a credit was being processed and there was no sales on record for that customer. We found out that if the customer had no previous sales you had to settle the sale before processing the credit.