This issue occurs when the donation was made via a custom API form and the API call being made has a donation level ID under the incorrect donation campaign. If the API form was not created by Blackbaud, you'll need to have an in-house developer or partner fix the API form. If the API form was created by Blackbaud, contact your account manager to inquire about a billable web dev project to have that fixed.