A lean running engine wil run hot. On a newly installed engine, make sure all intake hoses/vacuum lines after the MAF are secure and buttoned down as a first step.
P0171 - System too Lean (Bank 1)
The Adaptive Fuel Strategy continuously monitors fuel delivery hardware. The test fails when the adaptive fuel tables reach a rich calibrated limit.