Measure the resistance of harness between “P” range switch and chassis ground.
Connector & terminal
(B117) No. 2 — Chassis ground:
Is it less than 10 Ω?
Repair the harness between the “P” range switch and chassis ground.