P1287 on a BMW indicates that the engine control module (DME) has detected an electrical fault in the control circuit for the bank 2 switching solenoid that operates the air-assisted injection valves. The DME monitors the solenoid's current draw and expects a specific resistance range; when the circuit is open, shorted to ground, or shorted to power, it sets this code. This solenoid is part of the secondary air injection system that helps reduce cold-start emissions by introducing extra air into the exhaust.
Guidance is general and written for BMW vehicles. Exact tests and values vary by model, so confirm the fault before replacing parts.
Get the app
Quick access from your home screen.