Narrative:

Problem occurred during preflight and went unnoticed till switching over to departure control. Departure control noticed wrong squawk code. Upon investigation, discovered inadvertently received clearance for dca-palm beach flight instead of flight dca- fll. Contributing factors: aircraft swap occurred in dca. Original aircraft broke. It was replaced by an aircraft originally scheduled to go to palm beach. That flight was cancelled. Failure of the first officer to verify clearance was the correct one. Clearance was received via ACARS. Squawk code entered was one assigned to flight for pbi. Rushing to get flight out because of delay, plus numerous interruptions in cockpit during preflight.

Google
 

Original NASA ASRS Text

Title: AN ACR MLG CREW TOOK OFF WITH THE WRONG XPONDER SQUAWK.

Narrative: PROB OCCURRED DURING PREFLT AND WENT UNNOTICED TILL SWITCHING OVER TO DEP CTL. DEP CTL NOTICED WRONG SQUAWK CODE. UPON INVESTIGATION, DISCOVERED INADVERTENTLY RECEIVED CLRNC FOR DCA-PALM BEACH FLT INSTEAD OF FLT DCA- FLL. CONTRIBUTING FACTORS: ACFT SWAP OCCURRED IN DCA. ORIGINAL ACFT BROKE. IT WAS REPLACED BY AN ACFT ORIGINALLY SCHEDULED TO GO TO PALM BEACH. THAT FLT WAS CANCELLED. FAILURE OF THE FO TO VERIFY CLRNC WAS THE CORRECT ONE. CLRNC WAS RECEIVED VIA ACARS. SQUAWK CODE ENTERED WAS ONE ASSIGNED TO FLT FOR PBI. RUSHING TO GET FLT OUT BECAUSE OF DELAY, PLUS NUMEROUS INTERRUPTIONS IN COCKPIT DURING PREFLT.

Data retrieved from NASA's ASRS site as of July 2007 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.