rough idle after spark plugs changed on 2004 BMW 760Li

Changed plugs test drove check engine light and on Idrive screen Emission related fault warning.

1 answer
make sure the timing is right and all the right wires are going to the right cylenders