Perhaps that is the problem. I bought a cheap cable off Amazon.
https://www.amazon.com/Koldot-Interface-Converter-Indicator-Keyboard/dp/B08BXVKZFD/ref=sr_1_6?keywords=5+pin+midi+to+usb+cable&qid=1650211268&sr=8-6