LH stores the flight segment in the database used by the *A FFPs to determine credit. Along with the flight segment, LH mentions the fare class of the associated ticket and the booking class used for the seating. In your case the former is D and the latter is O. Now its upto Aeroplan to look up the right field in their automated system that queries the database. Usually both fields are the same, but during op-ups and upgrades the system fails and the FFP needs to get in touch with the operating carrier to clarify the matter, ie get a human to look at the record.
This is common place with UA MP, (see the GPU thread the United forum), so the 'appeal' as Aeroplan calls it will most likely succeed. The LH crew here can't intervene in the process, its Aeroplans task to interpret the feedback. In the case of United, they often manually correct the segment entry in their end and the member gets the correct credit.