I have had the same issue for awhile also. Wonder if you figured it out. I already changed so many parts in it. Today I replaced the intake gaskets and made the problem worse. The best I can think of at this point is the mass air flow sensor which will be changed soon.
Trouble code P0171 means: Fuel System Too Lean (Cylinder Bank 1)
http://www.aa1car.com/library/ford_lean_codes.htm
P0171 is System Too Lean (Bank 1), which means that the oxygen sensor detected an excessively lean air fuel mixture.
How do u fix a misfire
How do you fix an airlock in a 2002 ford explorer gas tank.
were is the vocuum hose at on a 91 ford ranger at on 91 ford ranger xlt 4x4 4.0
P0171 = system too lean (bank 1). First thing I would look for is a vacuum leak. With engine running, spray carb cleaner around engine at suspected areas (vacuum lines, intake manifold gaskets, throttle body gaskets, etc). When you hear the engine rpms increase you have found a vacuum leak.
change it
You get somebody else to do it.
change the thermostat
Trouble code P0171 means:System too lean (Bank 1)
Trouble code P0171 means: Fuel System Too Lean - Bank 1