I bought a 2nd hand XYZ switch off ebay to replace mine, and then refurb'd the old one. They are riveted together, but other than that not too tricky - you just might want to open it in a sandwich bag (ie to collect the little bits if they ping out). I have the old one reassembled and ready to roll if needed (used M4 bolts). I might have a known-good one for yours in my parts bin, as I ordered the wrong one for mine first of all. There were 2/3 variants - get the ZF part number off the side and work out which one you need. The electrical connector seems to be common across the variants, but the physical mounting to the gearbox is different. I was doing this all mid-winter, pitch black, sub-zero, so I didn't hang about trying to make the wrong one fit- just ordered the right one and fitted it (all second hand).
after you've tried the other options, then I'd be tempted to just loosen the bolts on the xyz switch and try turning it one way or t'other. Prior to mine failing the selector wd rarely go into 1 on the gear selector, after replacing the switch, (and not touching the cable at all). You cd also try inverting the switch and hitting the breather hole (if your vn has one) with contact cleaner - it has probably filled with water, as it sits under the a/c drains, and the breather tube will have come off, no doubt