As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
FLIGHT 4049, DIVERTED DUE TO MAIN LANDING GEAR WOULD NOT RETRACT AND CYCLED ON ATTEMPT. CREW DID NOT DECLARE EMERGENCY AND LANDED SAFELY. COMPLIED WITH PA 50-018G SCENARIO NR 1. REMOVED AND REPLACED MLG SELECTOR VALVE IAW AMM 32-32-10. OPS AND LEAK CHECKED GOOD.