Bosh dishwasher won't drian, but the drain pump does work

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

Brand: Bosh
Model Number: SHX4ATF5UC/21
Main Symptom: cycle won’t drain water
What happens & when: dish washer drains at the beginning of the cycle, but not the end

Error Code (if any): E25
Parts or tests already tried: installed a new drain motor which I purchased from APP.com
Photos / video link:

E25 error code and soapy water in bottom of machine. Replaced drain pump. Reset washer and ran the 1min drain cycle, which worked just fine and drained the unit, so there is no issue with the pump, flap valve or drain line (no garbage disposal either). However, when I run a wash cycle, short or long, at the end the machine seems to think about draining, stops, shuts off and beeps to indicate the load is done. But the base is full of soapy water. I can only assume its the controler board??? Apparently it didn’t drain during the cycle or the water at the end would be clean?

Being you have replaced the drain pump and it still leaves soapy water at the end of the cycle, it probably is the main control.00747819 Dishwasher Main Control Board | Genuine Bosch OEM In Stock