Thought a short post on this repair might be helpful, as Error Code E24 (Check Water) seems to be commonplace but none of the suggested fixes I could find online was helpful in this case. Symptom was failure to drain water fully during the wash cycle, resulting in a program halt. Common suggested fixes are checking for blockages in drain hoses/outlets and inlet hose, cleaning the filter system, checking for debris blocking the drain pump impeller etc. In this case I tested and cleaned all these systems but the fault persisted. There is a manual for similar Bosch models available online - but it takes some diligent searching to find (thought it best not to post link here). That was helpful in describing how the quite complex system works and giving some resistance tests for pump motors and solenoids, but gives no guidance on error codes. Seems the microprocessor logs error signals but they're only accessible with proprietary Bosch hardware and software.
Resorted to oscilloscope tests to see whether control board was driving the pumps OK. Signals there all looked OK (pulsed square waves), but it became apparent that the program stop was not correlated with the start or end of pump drive signals. Instead, it happened only when the water conservation system was trying to store water in the reservoir attached to the LHS of the machine. That pointed to the flow sensor on the reservoir - this has an impeller adjacent to the flow channel with magnet that opens/closes a microswitch (photo attached). CRO quickly showed the switching impulses from it were intermittent, suggesting the switch was failing. $45 later problem solved. High price for such a small board, but cheaper than a new dishwasher or a service call. Searched for a replacement microswitch but more trouble than it was worth.
Another task to do while you have the system open is to clean the flow channels and float (drainage hose ventilation valve) shown in the reservoir photo. They get gunked up badly and float doesn’t operate. I removed the tank, flushed it with water and then hot concentrated dishwasher detergent, leaving it to soak. Note that you have to remove two plastic screw fittings (inlet & outlet) from inside the dishwasher before the tank will come free. To shift the last of the caked on goo I had to resort to careful use of an air chisel to vibrate it free! That worked fine – though it took quite some time.