Make the campaign active or and try to save the gift again.

 

OR

 

Open the constituent's pledge or recurring gift from the Gifts Tab and either remove or change the existing inactive campaign.