Narrative:

Flying level at 17;000 ft; left fuel pressure gauge indicated over 70 psi (off the scale); but several fuel flows; egt; cht were normal; including the ability to lean rop. When the fuel indicator showed left tank less than expected; ATC was contacted requesting nearby airports with at least 3500 ft. He asked souls onboard and I answered 5 and fuel on board. I think I indicated that we should have had at least 2.5 hours of fuel and that was why I wanted to make a precautionary landing. Right after answering him left engine surged and then quit. I feathered the prop and [advised ATC] and was given vectors to ZZZ. A single engine landing and taxi was made to the FBO; at which time they removed cowling and subsequently found fuel line had come loose. Repairs were made at that time and no further damage was noted. Flight was continued and no further issues arose.

Google
 

Original NASA ASRS Text

Title: PA31 pilot reported that the fuel pressure was indicating very high then an engine surged; then quit.

Narrative: Flying level at 17;000 ft; left fuel pressure gauge indicated over 70 psi (off the scale); but several fuel flows; EGT; CHT were normal; including the ability to lean ROP. When the fuel indicator showed left tank less than expected; ATC was contacted requesting nearby airports with at least 3500 ft. He asked souls onboard and I answered 5 and fuel on board. I think I indicated that we should have had at least 2.5 hours of fuel and that was why I wanted to make a precautionary landing. Right after answering him left engine surged and then quit. I feathered the prop and [advised ATC] and was given vectors to ZZZ. A single engine landing and taxi was made to the FBO; at which time they removed cowling and subsequently found fuel line had come loose. Repairs were made at that time and no further damage was noted. Flight was continued and no further issues arose.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.