What's in the 97 now? Elsawin shows it could be 4 or 5 speed. Like for like is going to be easiest, but whether the TCU would be happy all depends on the gear ratios as it monitors input and output speed to make sure all is well (which is what throws the 17114 code when it isn't).
If you post up the gearbox code, and the 95 A8 / 00 A6 if you know them I can look up what the ratios are