Flying a flight marked by one airline (flight number), operated by a second airline and crediting the miles to a third airlines ffp is always problematic. Usually only works if all 3 are in the same alliance (Oneworld - Star - Skyteam) or specific provision. e.g AA miles on QF marketed flight operated by EK.