If you set a line to replace its vehicles when reaching a certain age percentage, the vehicles once reach that age are replaced at the next stop.
But, they are replaced *before* cargo is unloaded and therefore, cargo is lost. This can bring a goods line to a mess. If vehicles are replaced more or less at the same time, which is often the case, most cargo is lost and factories stop producing for that line.