Diesel tranny woes.....Help pleeze

I know this may sound crazy but clean your battery cables real good. Any corrosion on them screws up the computer and will cause this. I have a buddy that has a 95 Ram 1 ton Cummins that was doing the same thing and after we tried all the usual stuff a trans. guy told us to clean the cables. I thought he was crazy but we did it and it fixed it. that was 6 months ago and it still works fine.