I've been noticing this on odd occasions : a gold bar fleet runs for several trips, then on one, it fails to sell its cargo in the chosen port and returns with it, even though the global price settings have not been compromised and there was thus no reason not to complete the sale at the port.
I'd rather not, for obvious reasons, give full info on the specific route here., but if you need it, I can send it by PM