Kitchen Aid Dishwasher

This unit has broken yet again.It will wash but then stop mid-cycle.It will not drain.The clean light then flashes seven times.So far i have replaced the control board and heating element (matched set),pump/motor assembly,and door/latch switch. I also bench tested the pump motor for proper operation.I also found no obsructions in the drain line.When the cancel/drain button is pressed,a click can be heard but nothing happens.I checked all connections on the wiring harness and everything seems properly connected.I also reset the control board several times but the same thing occurred.A repairman came out before i replaced the control board.He said the problem was the control board but when i mentioned the possible resetting of the keyboard,he said he all you have to do is unplug it.So after he left and without the unit repaired,i reset the board using a sequence i found on the internet and it worked.It just will not drain.Anyone have any ideas?There not much to much more to replace.Thanks.