The rest of the story, if you have a 1997 Ford F350 powerstroke xlt and it was built early in the year you need to get the 1996 transmission range sensor (8 flat - oval plug)
If you have a 1997 Ford F350 powerstroke xlt made later in the year after the plant converted, then you need to get the 1997 transmission range sensor (11 pin - rectangular).
Only way to be sure which to get to is to look under the truck on the driver's side of the transmission and see if the sensor is square shaped with the plug headed to the top or if it is more rectangular shaped with the plug headed to the side. Top is 8 blade/oval, side is 11 pin/rectangular.
If you have a 1997 Ford F350 powerstroke xlt made later in the year after the plant converted, then you need to get the 1997 transmission range sensor (11 pin - rectangular).
Only way to be sure which to get to is to look under the truck on the driver's side of the transmission and see if the sensor is square shaped with the plug headed to the top or if it is more rectangular shaped with the plug headed to the side. Top is 8 blade/oval, side is 11 pin/rectangular.