The referenced transaction does not meet the criteria for issuing a credit.

Symptoms

While attemting to credit a payment you get an error message. 

The referenced transaction does not meet the criteria for issuing a credit.

Cause

The original payment has not yet cleared. 

Solution

Void the original payment and create a new one.