Clean the contacts on the leading edge of the door and in the body opening. Then perform the relearn procedure below. This will relearn the open and closed positions of the door.
Remove the power sliding door PSD fuse for 30 seconds.
Use the power sliding door button to open and close the door 2 full times.
The door should now work properly.