Blog · 2026-11-10
PO171 trouble code in Toyota Vitz
Stefan Bogdanescu
Founder & Senior Architect
Diagnosing Persistent PO171 and Stalling on a Toyota Vitz
When a P0171 "System Too Lean" code appears, it indicates that the Engine Control Unit (ECU) is detecting a mixture ratio where there is too much oxygen relative to fuel. In your specific case with the 2007 Toyota Vitz, the progression from an idle-only issue to a constant fault suggests a shift in severity or a secondary failure affecting baseline operation. The fact that replacing oxygen sensors, cleaning injectors, and swapping the fuel filter failed points directly toward components that are harder to inspect physically or require specific diagnostic thresholds to identify.
The OBD-II live data you provided is the most critical clue. A Long Term Fuel Trim (LTFT) of 31.24% is significant. Modern ECUs typically add up to roughly 20â25% correction before triggering a code in many manufacturers, though Toyota's thresholds can be aggressive. An LTFT this high means the ECU has had to enrich the mixture by over 30% just to keep the engine running at the target lambda ratio (1.0). If the Short Term Fuel Trim is near zero (-0.01%), it implies the ECU is currently reacting instantly to sensor input, but the long-term memory shows a chronic deficiency.
This persistent lean condition often stems from vacuum leaks or insufficient airflow measurement rather than fuel delivery issues, especially after ruling out clogged injectors. A common pitfall in diagnosing this specific scenario is overlooking the Mass Air Flow (MAF) sensor. Even if the MAF reads a plausible value at idle, internal contamination can cause it to under-report air volume during load transitions. Alternatively, a cracked intake manifold gasket or a small vacuum leak from an unmetered source allows extra air into the combustion chamber without the ECU knowing about it, forcing the LTFT to climb indefinitely.
The secondary symptomâwhere the engine refuses to increase RPM upon pressing the acceleratorâis distinctively characteristic of a "flat-spot" caused by extreme fuel trims or ignition timing retardation due to oxygen sensor confusion. When the vehicle is stopped on an uphill grade, the load increases instantly. If the ECU believes the mixture is still lean (due to a faulty upstream O2 sensor that hasn't been replaced correctly, or a wiring issue with the new sensors), it may hesitate to advance ignition timing, causing the stall-like behavior you described. This explains why restarting the vehicle temporarily fixes the issue; clearing the learned fuel trims resets the baseline, but the root cause remains unaddressed.
Regarding the dashboard indicator with the exclamation sign inside a key, this is typically associated with the Immobilizer system (often labeled as an "Exclamation Mark" or "Key Symbol"). While you have linked to a separate discussion regarding this, it is crucial to note that immobilizer glitches can sometimes trigger false lean codes if the ECU enters a limp-home mode due to security handshake failures. However, given the high LTFT, the immobilizer is likely not the primary culprit for the P0171 code, though resolving both simultaneously is advisable before assuming the ECU itself is hardware-failed.
Before concluding that the ECU requires replacement, consider checking the wiring harness between the upstream oxygen sensor and the ECU. High resistance in these wires can mimic a lean condition to the ECU. Additionally, verify the fuel pressure regulator; if it fails internally, it creates a vacuum leak into the intake or allows fuel to bypass the injectors, resulting in a permanently lean mixture that no amount of injector cleaning can fix.
If you have confirmed all vacuum lines and replaced the sensors with known-good parts, the next logical step is to inspect the ECU for physical damage or water intrusion, as the 2007 Vitz was produced during a period where certain models faced issues with moisture affecting electronic components. However, often the solution lies in relearning fuel trims after ensuring no leaks exist, rather than replacing the control module itself.