According to the BMW service manual this is a wrong possible code for your car. Fault Code #1247 is found only on 740iL and means a ignition secondary monitor. To troubleshoot this code check secondary voltage to ignition coils and check the wiring there also.