There was an RV deadbolt recall a couple years ago. I don't have the details anymore because I checked mine and it was not effected.
It had something to do with pulling the key out of the lock when it was in the horizontal position. The deadbolt key must be returned to the vertical position before you remove the key.
The recall was because if you locked the RV with the key and pulled it out in the horizontal position, a person inside you NOT be able to unlock the door from inside with the lever.
It did the same in the unlocked position, but that didn't warrant a recall.
Hope that helps. If not, make sure it's not an alignment issue with where the bolt hits the strike plate in the wall. Does the deadbolt operate with the door open?
2013 Winnebago 2301BH-Red
2012 Ram 2500 Megacab HO CTD