The Sales Order table requires the Customer and TxnDate fields - have you supplied these in your original call? If you post up the parameters passed for you original call, I might be able to shed some light as to what caused the error.
The 'Ref' portion is added to the field name in this case because the Customer field is actually referencing the 'Customer' table.