OK well let me start by saying I'm only writing this topic right now to try and help other people with the same problem as the one I just went through. I have actually solved the problem before writing this so this is simply to help others with the same issue
1999 nissan pathfinder 202K miles.
I'll try to be brief but have to sort of give the history so everyone understands what happened.
tranny went out. had it rebuilt for about $3200 yikes! got it back and within a couple days noticed that only in overdrive the rpms seemd to bounce at around 2500 rpm. sort of felt like the truck was thinking about downshifting but then changed its mind. so it did it intermittently but constand enough to be VERY ANNOYING. no other problems. ran and idled great! all other gears seemed fine.
after a few days I get a CEL i code read it to be p0325 Knock sensor and p706 (or something) "transmission range circuit low input" and another symptom surfaces. it wont shift into overdrive. bring it right back to tranny shop. *under warranty* they tell me I have to fix the knock sensor first before theyll do anything, becasue the knock sensor could make it not go into overdrive.
at this point im pissed becasue I think they're just jerking me around and the knock sensor on these 3.3l is deep under the manifold. so I find a nice forum on how to relocate it using a maxima sensor and harness. saves about 9 hours but doesn't seem like the knock sensor is in the best location to detect knock after reloaction, but whatever thats another story and saves 9 hours .
so knock sensor relocated cleared code and back to tranny shop with overdrive still out. aftr 2 days they fixed it by changing the neutral safety switch, (transmission range sensor) this sensor was causing it to think it was in the wrong gear and wouldn't shift into overdrive because of it.. so since it was under warranty no charge YAY!
driving home I notice the rpms still bouncing and sort of bucking in overdrive, DAM, now I'm mad becasue I already brought truck back twice and its still messed up WTH.
so a few days go by and the bucking hesitation gets worse, not it does it in every gear sometimes stalls at idle and very difficult to drive, strange thing is is starts up fine and runs fine for about 5-10 minutes then starts the bucking very gently until it becomes out of hand... no CEL but I do find a code pending for "p1336 crankshaft/camshaft sensor" so cheapest easiest part is the crankshaft sensor $50 (on the driverside top of bellhousing) pull 4wd driveshaft down and easy swap for the sensor.. problem remains ARGHHH!
tear apart distributor becasue cam sensor is part of distributor. AH HA find metal chunks all up under the plastic cover under the rotor, look closer, the distributor bearing had totally exploded. so off to the parts store, $300 later for new distributor with igniton module. and about an hour later truck runs AWESOME. so I swapped the crankshaft sensor back to old one for my $50 back and still truck runs great!!!! YAY!!!
moral of the story I wouldve bet my right arm the tranny was the problem since at first it only had bucking issues in overdrive, and happended right after tranny rebuild. but in the end somethng completely unrelated WOW so invest in a ODBII computer worht their weight in gold! if you get the crankshaft/camshaft sensor code popping don,t jump the gun and go for the cranksahft sensor, check inside the distributor and remove the plastic plate under the rotor, inspect the bearing takes about 10 minutes to checkout visually. then decide.. YAY hope this helps some folks I was sort of stumped for a while