P0171 is usually caused by a vacuum leake. Check all the hoses for holes or lose connections.

----------

171 and 174 are vacuum leaks. Use carb cleaner or wd40 to spray around the intake and...