The brief
The 520i's driver was having frustrating trouble opening and closing the doors, the handles not working reliably, sometimes pulling and nothing happening. He brought it in. A door handle that won't open the door is more than an annoyance, it's a problem if you ever need to get out in a hurry. The door handle isn't just the grip you pull, it's a mechanism: a lever and linkage inside the door that releases the latch when you pull, and on these cars a microswitch tied into the comfort access system. Over the years the plastic levers crack, the linkage wears, and the springs lose their tension, so the handle goes vague, sticks, or stops releasing the latch at all. Worn handle mechanisms don't recover, so the affected handles need replacing.
The diagnosis
The door cards came off and it told the story: the handle mechanisms worn, cracked levers and tired linkage, not releasing the latch cleanly, which is exactly the unreliable opening. The latches themselves and the wiring checked out, it was the handle mechanisms at fault. That's a handle replacement on the affected doors, complete handle assemblies rather than repairs, fitted and adjusted so they release the latch cleanly.
The work
The door cards were removed, the worn handle mechanisms taken out, and new genuine BMW-spec door handle assemblies fitted, the linkage adjusted so the latch releases cleanly on a normal pull, the microswitches checked and connected, and the door cards refitted. A check confirmed the doors opened and closed properly from the handles every time, with a clean release and no sticking, and the comfort access working as it should.
The outcome
Doors that open and close properly from the handles every time, a clean release, no sticking, and the comfort access working again. The 520i went home with the handles sorted. Worn handle mechanisms only get vaguer until a door won't open at all, so changing the affected assemblies put it right before it became a stuck-door problem.