A more detailed description with possible causes:
P0171 - System too Lean (Bank 1)
The Adaptive Fuel Strategy continuously monitors fuel delivery hardware. The test fails when the adaptive fuel tables reach a rich calibrated limit.
Possible causes for lean and rich DTCs:
Excessive fuel pressure.
Leaking/contaminated fuel injectors.
Leaking fuel pressure regulator.
Low fuel pressure or running out of fuel.
Vapor recovery system.
Air leaks after the MAF.
Improperly seated engine oil dipstick.
Stuck EGR valve.
Leaking diaphragm or EVR.
Exhaust leaks before or near the HO2Ss.
A SHRTFT-1,2 PID value between -25% to +35% and a LONGFT-1,2 PID value between -35% to +35% is acceptable. Reading beyond these values indicate a failure.