B2787 — Right latch switch invalid
Documented by: MAZDA
B2787 is stored when the ECU sees range or performance on the circuit named in the code (right). That describes how the circuit is behaving, not which part has failed — the wiring, the connector and the component itself can all produce it, which is why the checks below start with the cheapest.
Common causes
The cause is almost always one of a few things. Here they are — B2787 rarely comes from anything outside this list:
- Sensor reading is inside its electrical range but does not match reality
- Contamination or deposits changing what the sensor sees
- A mechanical fault upstream that the sensor is correctly reporting
- Sensor drifted with age without failing outright
Where to start
In the order a sensible mechanic would work — the cheap checks first, the expensive replacements only after:
- Compare the live value against a second sensor or a known-good figure — this code is about plausibility, not a dead circuit
- Look for the mechanical cause first: leaks, restrictions or wear that would genuinely produce this reading
- Clean the sensor if it is the type that fouls
- Check freeze-frame data to see under what conditions it triggered
- Replace the sensor only after the mechanical side is ruled out
That is what holds for B2787 in general. From here it depends on your engine — tell me which car it is and what it does, and I will give you the steps for it: real procedures, torque figures and diagrams instead of general advice.
Why TorqFix for your car?
Above is what the code means and why it appears. TorqFix goes further — it gives you specific procedures, torque values, wiring diagrams and pinouts for your exact engine, not generic steps for every car. Real workshop data (127,000+ diagrams, 10,000+ procedures), interpreted by AI in your language.
Free with an account: 4 questions per day · drawings are Pro. Signing up takes twenty seconds and needs no card.
Code breakdown
Who makes these pages, and how
TorqFix was built by a mechanic — after a 2,700 km drive with five roadside repairs that no diagnostic tool could explain.
The figures on this page come from manufacturer workshop documentation and are shown as they are. The page is assembled automatically from that data — it is not written by an AI. The AI works in the chat, where it answers for your specific car. It writes nothing here.
The same code can mean different things on different makes. Match the meaning to your make before acting on it.
Seen a figure that does not match your manual? Write to us — we correct it and note when. support@torqfix.com
The story behind TorqFix →