A transmission test with the clutch locked. In a negative response, 7F is the negative response service ID, 31 is the service that was refused (RoutineControl), and 91 is this code.
When ECUs send it
The ECU checks the torque converter clutch before running the request, and the check failed.
Usually a routine (0x31) or an output test (0x2F) with a precondition written in the ECU's diagnostic specification.
What to try
Bring the vehicle to the state the test needs (often idle, stationary).