You either needed it coded or need the correct ballast for BMW's.
We have them on sale if you need one. Although 2006-2007 models are finicky no matter what anyone tells you.
If I had either of those years I would just get the car coded and be done.
However, you are more then welcome to try out BMW HID Kit as it has been error free for 99% of people.
There is a lot of misinformation in this thread so be careful. The only 100% certain solution is to get the car code, the rest of the ideas are just guesses. Error cancellers may or may not work, no guarantees. Most of the customers we get stem from people who bought the ebay and were disappointed in the results.