Upset the apple cart

Generated image of upsetting the apple cart
You upset the apple cart when you ruin someone's plans, or disrupt the normal operation of something.
This idiom came from the literal image of a cart of apples being tipped over at the markets, causing chaos and disruption.

We were going to hold the party outdoors, but a storm came and really upset the apple cart.