To anyone with the P0871 code who is in the same situation as some of the folks in this thread– I MAY have an answer… I just went through this whole nightmare with my ‘07 Ram 1500 2WD, 4.7L, 545 RFE trans, with 187,000 miles on it…
My trans was burned because I kept driving my truck while I was trying to figure out the code issue. So it cost me $6K for a new one… When I got my truck back, I was elated, except a couple days later, BOOM!…
There it was again. “P0871”… WHAT?! Did I just WASTE $6000?!?… So this time it went right back to the shop, and they were very surprised and chagrined about it. They ordered a brand-new OEM valve body & solenoid unit, installed it, and not only did the code pop right back up, but it seemed to be getting worse… So the shop put 4 guys on it, tracing every single wire and circuit for two days, and FINALLY— just as they suspected, it WAS a wiring harness problem. On my truck the part of the harness connected to the trans travels along my right bank of cylinders, then drops down behind the engine to connect to the trans.
RIGHT WHERE it turns the corner to drop down, at the back of the engine, the harness has been rubbing on the back of that right (passenger) side cylinder head, where there’s a sharp edge from the casting– and after 19 years, it finally wore through that plastic wrapping they bundle the harness in, through the wire insulation, and caused a tiny little short circuit in that wire, causing the error message and the valve body to stick CLOSED at all times…
Once they patched that, and secured the harness away from the engine block with ties, then took it for a very long test drive (1/2 tank of gas), the problem is “cured.”
I hope this helps save somebody some time, frustration, and maybe the $6000 that I had to spend…