What about checking the Idle Air Control, or the Idle Air motor?P0171 - System to 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. 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.
i had this hose and it turned out that i had a hole in a hose coming from the pcv valve to the intake manifold, check that out.