Even with the engine off/ignition on, if the PCM does not detect a correct range signal an error code will be set. If you got it to clear, that is good. If it repeats, check the connections to the CTS and wire harness.
BTW - I saw that your Griffins dropped a 19U Tier II final round game to Boston yesterday. They had a really good run up to that point.