BMW Questions? Ask a BMW Repair Expert for Answers.
So I am clear, The engine will not idle? And only stay running if you hit the gas pedal. It sounds like the idle valve has failed. I see that you mentioned you cleaned it, BMW idle valves don't take well to cleanings meaning they usually die after being cleaned it damages the electronics inside. I would replace the idle valve, It is a common failure on your vehicle.