I have just been told that my question is an "XY Problem". What does that mean? What am I supposed to do?
XY Problem means: You want to do X. You think about a solution Y. But you find out that there is a problem with this solution Y, so you ask about Y, not even mentioning X.
You should ask about your real problem X, and as a part of the question put: "I tried Y but with no success / with some problems." Find out more about XY problem (link).
Few examples how you should / should not ask: