This can happen when you have used dish soap (Dawn) instead of dish detergent. It can also happen when you prewash and do not rinse thoroughly.
To remove the suds, add a couple tablespoons of any cooking oil to the dishwasher and run a cycle. Depending on the amount of dish soap added, you may need to repeat the process.