Corsa z12xep and error code p0171 usually appears to be first fuel regulator at the fuel tank this can be measured by Fuel pressure gauges normal pressure is about 3,5 bar at idle.the must be 3 bar when engine switch off.if anything else happens must be changed. Second and last check is to try a new air flow meter.thats all.no other causes are for this error code on this engine.