A friends 320D did exactly this and it turned out to be intermittent fault with the fuel pump.