I have a e 04 code when it is going into the rinse cycle

Hello, welcome to FixYa.

The "E04" error code on your WFMC series Bosch washer refers to a drainage problem as you may or may not already know. ( it can mean door lock error, but that is usually a by-product of it not draining thus the error appears during the rinse/drain )

What you may have is either a partially clogged pump, debris blocking a hose or a faulty pump...the later being the least likely.

You haven`t mentioned if you`ve actually visually checked the pump...it is likely just that, a blocked pump.

Anyway, here`s the most likely way to remedy a E04 code.

**Unplug the washer from the wall or turn off the breaker before attempting any repairs**