I just did a Google search of P0171:

NOTE: This is "universal" info on the code...

System Too Lean - Bank 1

The following is an overview of P0171 check engine light code possible causes.

Fuel System:

Leaking or faulty fuel pressure regulator
Plugged or dirty fuel filter or lines
Fuel pump weak or defective check valve
Injectors leaking or faulty
Low fuel pressure or running out of fuel
Leaking EVAP system components
Faulty FRP (Fuel Rail Pressure Sensor)

Air Intake System

Vacuum leaks
Contaminated, damaged or faulty Mass Air Flow sensor
PCV valve leak or stuck open
Air induction turbulance caused by wrong filter
Oil dipstick not seated
Air leaks after the Mass Air Flow Sensor (MAF)
Oil coated aftermarket air filter

Exhaust System

Any exhaust leak before or near the oxygen sensors

EGR System

Vacuum line disconnected from EGR System Module (ESM)
EGR valve, tube or gasket leak
EGR vacuum regulator valve leaking

Secondary Air Injection System

Mechanically stuck secondary air injection valve