That trainer is gonna be in constant frustration. He sees Uxie again and tries to capture it. He throws a pokéball and it fails. He repeats this over and over and because his memory was wiped, he wouldn't know he already captured Uxie.



Uxie flies away, smiling all the while.



Small price to pay.