FR 9005 then OS 405 at Vienna
Bari → Vienna → Barcelona
Timetable, Vienna time
22:45FR 9005 from Bari at the gate
17:25OS 405 to Barcelona leaves the gate
18 h 40 apart on the timetable, overnight
OS 405 leaves 18 h 40 after FR 9005 arrives on the timetable: more than half a day, so not a connection we count.