As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
RAMP REPORTED SPARKS COMING FROM #2 ENGINE. REMOVED FROM SERVICE. REMOVED AND REPLACED #2 DC GEN IAW Q400 AMM TASKS 24-31-01-000-801/24-31-01-400-801 DUE TO GENERATOR SHAFT SHEAR. PERFORMED OPS TEST IAW Q400 AMM TASK 24-31-00-710-802. ALL CHECKS GOOD. AIRCRAFT RETURNED TO SERVICE.