Figure out your misfire, and I have a feeling that code will be linked to it. I'd have to see the car in the shop to really give you any guidance from this point, its a total shot in the dark. It could literally be anything from a 30 cent manifold gasket to a major engine issue.
BMW master tech
2010 E92 335i 6-speed 25k miles. - For sale.
1989 E30 325i coupe 5-speed DD