My dishwasher wont drain and leaves a couple inches of water in the bottom
Most drain issues start from the end of the drain line into your sink/garbage disposal. Remove the hose clamp on the sink and check for debris from your sinks garbage disposal flooding over with food that was not disposed. Also, if your sink is using a splitter, those will get moldy and prevent water flow.