As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
THE CREW REPORTED A FLAP FAIL MESSAGE AFTER TAKEOFF DURING FLAP RETRACTION. THE AIRCRAFT DIVERTED AND LANDED WITHOUT INCIDENT. MAINTENANCE INSPECTED AND FOUND THE RT OTBD FLAP DAMAGED FROM THE INBD FLAP SHROUD DRIVER BROKEN. THE RT OTBD FLAP WAS REPLACED ALONG WITH THE FLAP SHROUD. OPS CHECKS WERE GOOD.