Lionel Messi had a penalty saved as the triple Copa del Rey holders Barcelona endured a surprise 1-0 defeat against Espanyol in a quarter-final first leg on Wednesday, ending an unbeaten run of 29 games in all competitions.

Espanyol’s academy graduate Oscar Melendo scored the only goal of the game in the 88th minute after Messi had his spot-kick turned away by the former Real Madrid goalkeeper Diego Lopez earlier in the second half.

Barça had not lost against Espanyol since 2009 and this was their first defeat by their local rivals in the Cup since 1970. The last game they had lost in any competition was in the Spanish Super Cup to Real Madrid on 16 August.

Meanwhile, Neymar scored four goals and set up two more as the French league leaders Paris Saint-Germain crushed Dijon 8-0 on Wednesday but the match ended with the Brazilian being booed – seemingly playfully – while taking the penalty for the final goal, with fans instead chanting for Edinson Cavani. The Uruguay striker had earlier moved level with Zlatan Ibrahimovic as PSG’s all-time leading scorer with 156 goals but was denied the opportunity to establish a new mark.

At the end Neymar, after shaking his head, palmed off his man of the match award to a PSG staff member as he walked hurriedly back to the dressing room at Parc des Princes, having not stopped for waiting television reporters.

Earlier this season, the pair had argued over a penalty, with Cavani refusing to let Neymar take it and then missing.