I see some people looking for why they are seeing Error 22. I got it tonight, and was trying to find an answer, myself.
I’ve discovered my cause was having “cut selected graphics” turned on, but not having anything selected. Normally, this would give a warning of there being nothing selected, but apparently having only one layer set to “Output” causes the software to get confused and throw an Error 22. Turning off “cut selected graphics” fixed the problem (I didn’t mean to have it on, anyway…)
I hope this helps someone who may have the same problem, one day.