I have this issue ALOT!
The actual key lock in the drivers door doesnt work, so if you use the button code it sometimes will start to come up and acts like it gets stuck and then goes back down, but I assume at this point the car "thinks" its unlocked because the button code wont work again. The remote I think needs new batteries, its an aftermarket unlock / remote start setup and doesnt unlock much when I attempt it, so i get stuck having to climb in from the hatch, not bad when I'm alone, but when we have the kids with us, or its pouring down rain (like saturday ) then it sucks haha.
Not looked at replacing the door lock yet (new door?) but it seems like to me that the pull lock is slightly twisted and I think this causes it to get stuck. It will work right for weeks, and then mess up a few times, and then go back to working with no issues.