Dishwasher runs but doesn't clean

I ran it and watched for leaks but could not see any. After sitting overnight, the lower tray was again flooded and the float switch was engaged. With nothing obvious I assumed the inlet valve had an internal leak and was overfilling the dishwasher while it was sitting idle. I replaced the valve and it seems to have solved the issue. thanks for your help.