k12 2005 auto gearbox problem

Hi, my micra 2005 auto 1.4 has fault code P0732, (second gear problem) . if i clear the code, car runs and drives fine but after perhaps five miles the engine virtually shuts down, Feathering the accelerator keeps it going but with limited revs. I changed the gearbox but same problems/fault code. Any ideas?
 
Top