I was prescribed the closely related Farxiga for my T2 diabetes. It gave me terrible side effects and I could not continue taking it.
Years ago I was put on Metformin, but it caused stomach problems, and I had to stop it. That was the only oral diabetic medication I've ever had trouble with. I hope your doctor was able to find you a substitute that hasn't caused you problems.