Narrative:

The aircraft was level at FL260 on the zzzzz RNAV arrival. The captain (pm) and first officer (PF) started to smell a sensation similar to a burning electrical in the flight deck. The crew also noticed the windshield fog over and moisture building on the inside. The captain called the flight attendant to ask if she too smelled the odor. The flight attendant indicated that she did not smell anything unusual. The captain and first officer donned oxygen masks and established crew communication. The flight attendant then called back to the flight deck and said that she could smell an odor in the fwd part of the cabin. The crew [notified ATC] with center and requested a diversion to ZZZ which was about 80 NM away. The captain transferred the radios to the first officer and started to run the QRH; gave the flight attendant information; notified the passengers of the diversion; and contacted dispatch via ACARS and ATC. As the captain ran the QRH to isolate the burning smell; the first officer transferred controls to the captain when the generators were deselected. The flight received vectors for runway xx at ZZZ and landed with no incident. ZZZ arff (airport rescue fire fighting) met the aircraft and completed a visual inspection at gate xx. Identification: flight crew smelled the odor in the flight deck and then the flight attendant also smelled the odor. I am not sure what caused the smell or the windows to fog over and moisture to build in the flight deck. Find the cause of the in flight smell.

Google
 

Original NASA ASRS Text

Title: EMB-145 First Officer reported 'burning electrical' odor on flight deck which was also reported by flight attendants in the cabin. Flight crew executed an uneventful diversion.

Narrative: The aircraft was level at FL260 on the ZZZZZ RNAV arrival. The Captain (PM) and First Officer (PF) started to smell a sensation similar to a burning electrical in the flight deck. The crew also noticed the windshield fog over and moisture building on the inside. The Captain called the Flight Attendant to ask if she too smelled the odor. The Flight Attendant indicated that she did not smell anything unusual. The Captain and First Officer donned oxygen masks and established crew communication. The Flight Attendant then called back to the flight deck and said that she could smell an odor in the FWD part of the cabin. The crew [notified ATC] with Center and requested a diversion to ZZZ which was about 80 NM away. The Captain transferred the radios to the First Officer and started to run the QRH; gave the Flight Attendant information; notified the passengers of the diversion; and contacted Dispatch via ACARS and ATC. As the Captain ran the QRH to isolate the burning smell; the First Officer transferred controls to the Captain when the generators were deselected. The flight received vectors for RWY XX at ZZZ and landed with no incident. ZZZ ARFF (Airport Rescue Fire Fighting) met the aircraft and completed a visual inspection at gate XX. Identification: Flight crew smelled the odor in the flight deck and then the flight attendant also smelled the odor. I am not sure what caused the smell or the windows to fog over and moisture to build in the flight deck. Find the cause of the in flight smell.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.