As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
ON FLIGHT 3642 AFTER TAKEOFF THE CREW REPORTED, RECEIVED A FLAP FAIL MESSAGE. THE CREW DECLARED AN EMERGENCY AND LANDED SAFELY IN MIA. THE AIRCRAFT WAS REMOVED FROM SERVICE. REMOVED AND REPLACED THE LEFT AND RIGHT FLAP VELOCITY SENSOR IAW EMB AMM 27-51-12. THE OPERATIONAL CHECK WAS GOOD. NO DEFECTS NOTED. THE AIRCRAFT WAS RETURNED TO SERVICE.