Dish washer is not consistently working

Please make sure to click on General above and select the correct appliance type first.

Brand:kitchenaid
Model Number:KDFE204EBL
Main Symptom: Stops working intermittently
What happens & when: Sometimes stops in the middle of washing. The only way to work around the problem is to reset the machine, it sometimes helps, sometimes the problem will still occur.

Error Code (if any):
Parts or tests already tried: Door latch replaced, and occasional reset
Photos / video link:

With the unit working sometimes but no others then, check to make sure that the wiring at the junction box is good and there are no loose connections. If this is good then the control board will be the most likely issue.

https://www.appliancepartspros.com/whirlpool-cntrl-elec-w10854229-ap6004840.html

I install control board nothing change same problem ,what cani do next

Did you check he wiring at the junction box where the power supply is?