Hi there,
I''m new here, and joined just to reply to this post.
I have been fighting a P0171 for a few months and finally traced it to a weak fuel pump. Tried all kinds of stuff before that - multiple maf's, fuel filter, wires, plugs, new injectors all to no avail.
The leanness will characterize on a scanner as high long term fuel trim and low front 02 voltage. Voltage might even peg near zero for some time whilr ltft is max'd. If you reset the efi by pulling its fuse, the vehicle may run very badly because the reset keeps ltft at zero for some amt of time. During this period, the engine will run very lean because it isn't getting enough fuel.
In my case, a quick fix was to bypass the fuel pump resistor and run full voltage all the time. I have no idea how to actually do that, but others on here probably know how.
Just wanted to share my experience. This was the hardest problem to diagnose. A scanntool that can create data logs and graphs is really helpful for this sort of problem. If you can get one of those, post a graph of load, st and lt trims, and fr o2 voltaqge.