Pompey's unbeaten league run finally came to an end with a narrow loss at promotion favourites Ipswich.
Danny Cowley's side twice fought from behind, with Colby Bishop penalties cancelling out efforts from Marcus Harness and Freddie Ladapo.
But Kyle Edwards' cross took an unfortunate deflection off Connor Ogilvie to leave Wes Burns with a simple header and seal a 3-2 win for the hosts.