Check the wire harness connections between the door lock and the electronic control board when you unplug the washer. If the wire harness is damaged, connect any loose wires and replace it. The door lock/switch assembly should be replaced if the wire harness connections are OK.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.