Causes:
A code P0172 may mean that one or more of the following has happened:

The MAF (Mass Air Flow) Sensor is dirty or faulty. Note: The use of "oiled" air filters (K&N, etc.) can cause the MAF to become dirty if the filter is over-oiled
There could be a vacuum leak.
There could be a fuel pressure or delivery problem


Possible Solutions:

Possible solutions include:

Inspect all vacuum and PCV hoses, replace if necessary
Cleanthe MAF sensor. Consult your service manual for it's location if you need help. I find it's best to take it off and spray it with electronics cleaner or brake cleaner. Make sure you are careful not to damage the MAF sensor, and make sure it's dry before reinstalling
Inspect fuel lines for cracks, leaks, or pinches
Check the fuel pressure at the fuel rail
Check the fuel injectors, they may be dirty. Use fuel injector cleaner or get them professionally cleaned/replaced.
Check for an exhaust leak before the first oxygen sensor (this is unlikely to cause the problem, but it is possible)

Another problem can be the MAP sensor giving inaccurate data. Check your barometric pressure in your area with the national weather service and compare it to the reading you get from any measuring software. My sensor is at the rear of the intake manifold and has two fitting on it. The large one goes to the brake booster and then there is a very small vacuum line that should be blocked off or connected some where so you don't have a leak.