As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
FLT 362 PBI-LGA, CREW DECLARED EMERGENCY AND DIVERTED TO JFK DUE TO WHEN EXTENDING FLAPS TO "FLAP 2" A ECAM "F/CTL FLAPS LOCKED" APPEARED. RAN QRH 7-9. PERFORMED TSM TASK 27-51-00-810-819A FOUND RIGHT FLAP ASYMMETRY POSITION PICK-OFF UNIT AT FAULT. REMOVED AND REPLACED APPU IAW AMM 27-51-18. OPS CHECK GOOD.