Dishwasher drain problem

after wash cycle water does not drain. tried reset and sometimes it will drain and other times it won’t

I would first check the piston and nut check valve under the filter at the back of the unit, It might me stuck open, if so, order a new one p#AP2617344
If ok, pull out unit and check the pump and clean any items stuck in there.