Pompey's recent run of good form hit the buffers with defeat to Barnsley in South Yorkshire.
John Mousinho's side had it all to do after conceding early goals to James Norwood and Nicky Cadden.
Colby Bishop converted Joe Rafferty's cross to reduce the deficit after the break, only for Devante Cole to wrap up a 3-1 win for the hosts.