FR 2897 then FR 3146 at Barcelona
Palma de Mallorca → Barcelona → Oujda
Timetable, Barcelona time
16:45FR 2897 from Palma de Mallorca at the gate
16:05FR 3146 to Oujda leaves the gate
23 h 20 apart on the timetable, overnight
FR 3146 leaves 23 h 20 after FR 2897 arrives on the timetable: more than half a day, so not a connection we count.