Narrative:

During the climb phase after departure; the aircraft was cleared to fly a heading of 030 degrees to join airway. The flight director and autoplt were operational and configured to intercept and join the airway. A few mins after turning on course; the controller queried us to confirm we were on the airway as he showed 7-8 mi west. It became immediately obvious that the GPS was programmed for ZZZ direct ZZZ1; rather than ZZZ1 - ZZZ2 direct crg; which was the clearance. The controller reclred the aircraft to join airway. It did not appear that this incident had any effect on other traffic. Greater attention to GPS programming is required to help avoid this in the future.

Google
 

Original NASA ASRS Text

Title: PILATUS PC12 PLT HAS A TRACK-HDG DEV ENRTE.

Narrative: DURING THE CLB PHASE AFTER DEP; THE ACFT WAS CLRED TO FLY A HDG OF 030 DEGS TO JOIN AIRWAY. THE FLT DIRECTOR AND AUTOPLT WERE OPERATIONAL AND CONFIGURED TO INTERCEPT AND JOIN THE AIRWAY. A FEW MINS AFTER TURNING ON COURSE; THE CTLR QUERIED US TO CONFIRM WE WERE ON THE AIRWAY AS HE SHOWED 7-8 MI W. IT BECAME IMMEDIATELY OBVIOUS THAT THE GPS WAS PROGRAMMED FOR ZZZ DIRECT ZZZ1; RATHER THAN ZZZ1 - ZZZ2 DIRECT CRG; WHICH WAS THE CLRNC. THE CTLR RECLRED THE ACFT TO JOIN AIRWAY. IT DID NOT APPEAR THAT THIS INCIDENT HAD ANY EFFECT ON OTHER TFC. GREATER ATTN TO GPS PROGRAMMING IS REQUIRED TO HELP AVOID THIS IN THE FUTURE.

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