My Kitchen-aid dishwasher sometimes stops mid-cycle, anywhere from the first few minutes or closer to the end. Kitchenware will be left dirty, the detergent pod would be released but left partially dissolved. Resetting machine only sometimes helps

Brand: Kitchen-Aid
Model Number: KDFE204EBL
Main Symptom: Dishwasher stops intermittently during cycle
What happens & when: Start a wash cycle, and sometimes it will finish properly, sometimes it will stop in the middle of the cycle.

Error Code (if any):
Parts or tests already tried: New door latch and door latch strike; also occasional reset which sometimes helps.
Photos / video link:

It would be recommended to check for any possible loose wires and if they are good then the control board would be the most likely cause for this issue.

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

I installed control board but hapen same problem

Double-check all wiring connections and check to make sure that there are no damaged wires. This would be the likely cause.