The '97 manual says:
HARSH SHIFTS
Open or shorted circuits with the TPS,Vehicle Speed Sensor, Trans. Fluid Temperature Sensor or Engine Coolant Temperature Sensor.
Also, contamination or damage to pins with the Pressure Switch Assembly or pressure control solenoid.