Door latch problems

Door latch part AP3783114 keeps malfunctioning. Will not latch door. Have replaced part multiple times. What is causing this?

Answered here: http://forum.appliancepartspros.com/dishwasher-repair/10778-door-will-not-latch-dishwasher-filling-if-door-shut.html#post158725

Gene.