I found this on Google:
* Some machines have a drain sump area that should be cleaned. Open the dishwasher door and inspect in the bottom area. The item is usually labeled.
* Plugged drain hoses are one of the most probable causes of this type of failure. A good practice is to scrape all food particles bigger than 1/8 inch off of all dishes before putting them into the dishwasher. Most often something like a small bone, popcorn, peanuts etc. have become lodged in the drain hose. The first place to inspect is where the drain hose from the drainpipe connects to the house drain system, likely under the kitchen sink. Disconnect and inspect both the end of the hose and the nipple on the house drain attachment. If both are clear put the end of the drain hose in a pail and turn the dishwasher on a drain cycle, if you are lucky the lodged item will come out in the pail. If that didn't work, follow the entire route of the drain hose back to the machine and look for kinks or folds in the hose.
* Many dishwashers use a drain valve with an electric solenoid. This valve opens and diverts the water to the drain. Sometimes the solenoid, or the diverting lever, sticks and prevents the dishwasher from draining or filling properly. We may have to replace the solenoid or pump assembly.
* Your dishwasher pump ejects the water. The pump is usually mounted directly to the motor, then attached to the bottom of the dishwasher. You can reach the pump from inside the dishwasher, but first you need to remove the lower rack, the spray arm, and the spray arm support. Look for an impeller--a round plastic fan blade-type of device that spins around. This is the wash impeller, which forces the water through the spray arm. Beneath the wash impeller is the drain impeller, which is similar in size and shape to the wash impeller. The drain impeller pushes the water toward the drain port. These components make up the pump. If any of the pump components are defective, you need to replace them.
* One brand of dishwasher uses a belt to drive the pump. If this belt is broken or has fallen off, we need to replace it.
* Check the Timer - Part of what the timer does is control the motor and drain valve. If the timer doesn't work properly, the water may not drain and you need to replace the timer. This problem is uncommon.
If it is brand new, I would the place you bought it from.