As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
CREW REPORTED FLAPS FAIL AMBER MESSAGE AT FLAPS 8 DEGREES AFTER TAKEOFF. FLAPS WOULD NOT RETRACT TO ZERO DEGREES. CREW DECLARED EMERGENCY, RETURNED TO FIELD AND LANDED SAFELY. MAINTENANCE TROUBLESHOT FLAP SYS, R & R FLAP ELECTRONIC CONTROL UNIT, FECU, AND PERFORMED CHECKS IAW AMM. ACFT RELEASED FOR SERVICE.