Date: 202112
Local time of day: 1801-2400
Location: ZZZ.TRACON, US
Flight conditions: VMC
Weather elements / visibility: Icing; Turbulence
Light: Night
Aircraft: EMB ERJ 170/175 ER/LR
Operator: Air Carrier
Operating under: Part 121
Flight plan: IFR
Mission: Passenger
Flight phase: Descent
Airspace: Class A ZZZZ
ATC / advisory: TRACON ZZZZ
Aircraft component: Trailing Edge Flap
Component problem: Malfunctioning
Reporter organization: Air Carrier
Reporter function: Captain; Pilot Flying
Reporter qualification: Flight Crew Multiengine; Flight Crew Instrument; Flight Crew Air Transport Pilot (ATP)
Human factors: Troubleshooting
Second reporter function: Pilot Not Flying; First Officer
Anomaly: Aircraft Equipment Problem Less Severe; Deviation / Discrepancy - Procedural Clearance; Deviation / Discrepancy - Procedural Published Material / Policy
Detector: Person Flight Crew
When detected: In-flight
Result: Air Traffic Control Provided Assistance; Flight Crew Diverted; Flight Crew Landed in Emergency Condition; Flight Crew Requested ATC Assistance / Clarification; General Maintenance Action; General Flight Cancelled / Delayed
Contributing factors: Aircraft
Primary problem: Aircraft

Narrative: We were flying ZZZ-ZZZ1. In our descent into ZZZ1 (ZZZZZ Arrival) we were approximately at 17000 feet when I (Captain) opened the speed brakes. As soon as I opened the speed brakes we received a FLAP FAIL message. We immediately performed the QRH procedures and decided the game plan would be to divert to ZZZ2. We notified dispatch; ATC; spoke to the Flight Attendant's and passengers of the situation and game plan. ATC asked us if we wanted to request priority handling; but we told them to deploy Crash Fire Rescue (CFR) just as a precaution so they could check brake temps upon landing. ATC decided to give priority handling for us. Once set up for the approach (ILS XXC-VFR conditions at the airfield) and briefed; we set up for a long straight in final and configured early. We landed without incident and momentarily stopped the aircraft on the Runway. CFR requested we pull off the next Taxiway so we elected to do that. CFR checked all brake temperatures and gave us the ok. We proceeded to our new Gate XX67 and CFR met us at the Gate for one final brake check.


Second narrative: Descending through about 16;000 ft. on the XXXXX5 into ZZZ the Captain (CA); who was Pilot Flying; deployed speed brakes to meet a speed restriction. When he stowed them we got a FLAP FAIL EICAS message. We ran the QRH procedure but were unable to resolve the problem. We decided the safest course of action would be to divert to ZZZ2. We informed ATC of our intentions and asked for delay vectors to set up for the approach. During this time the CA informed the Flight Attendants and made a PA to the passengers. We told ATC that we would like to have ARFF on standby to inspect the landing gear and brakes upon landing. At that point ATC provided priority handling for us. The approach and landing were uneventful. We stopped on the Runway initially but decided it was safe to taxi clear once we looked at the brake temps. We stopped just past the hold short line and had the ARFF team inspect the landing gear and brakes. During this time we got a BRAKE OVERHEAT EICAS message and ran the associated QRH. After an inspection they determined it was safe to taxi to the Gate.


Synopsis: Flight Crew reported a diversion and precautionary landing after the trailing edge flaps failed and would not reposition.