GE dishwasher soap dispenser does not open

We have a GE dishwasher, model GLD6500L00BB. The soap dispenser does not open during the wash cycle. When we open the door during or after the cycle, it will open. The soap is usually caked and about half is left in the dispenser.