As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
(CAN) AFTER TAKEOFF WHEN THE FLAPS WERE RETRACTED THEY LOCKED UP AT 5 UNITS. THE CREW DECLARED AN EMERGENCY AND DIVERTED, THE ACFT LANDED WITHOUT INCIDENT. MAINTENANCE FOUND A SHORTED NR 3 FLAP SKEW SENSOR, THE CONNECTOR WAS REPLACED AND THE SYS TESTED SERVICEABLE.