So, I'm having an issue. I'm getting an error stating that this Alolan Raichu, which was caught and raised in-game, NOT generated in PKHeX, is illegal for two reasons.
1) Because it has an invalid move, Sweet Kiss. This is incorrect because Sweet Kiss is learned naturally by Pichu at Level 10.
2) Because apparently PKHeX cannot match an encounter from the origin game. This is particularly strange because the Raichu is in it's game of Origin (Pokemon Moon Version) and has full met details on where it was caught, the Hau'oli City Shopping District, and it's level at the time of being caught (Lvl 5). Keep in mind that in Generation 7, Pichu can ONLY be caught in the Hau'oli City Shopping District and on Route 1.
As far as I can tell, this Raichu should not be getting flagged as illegal for any reason. I'll post up the pk7 file along with this. If anyone has any ideas as to why this mon is being flagged, please let me know. It was for a fact caught in game and not generated or edited in any way by PKHeX.
Thanks.
Quick Edit: I realize that the encounter date for this pokemon says it was caught in 2011. This is due to it being caught while the 3DS was set to an incorrect date. Either way, I've found that changing the date to 2020 does not change the error.
026-01 - Havika - CA069EC2F64F.pk7