How did you figure out the potentialmarriage faction ID?

Thanks.
Actually that was someone else that discovered it, I just found it on google

I saw "Using the console" sub title and I thought this was a guide for the PS3/360, aren't I the big fool....
Hah, sorry Man
Hmm, doesn't seem to work on Kharjo, not getting any new dialogue at all.
It seems that Khajits aren't marriable in general ... just in case, you
are wearing the amulet right?
Definitely trying this asap with Hroki from Markarth... Phwoaarrr.EDIT: Thanks OP - is there a way of using the console to divorce an NPC? I don't particularly want to kill my current wife so I can marry a new one.
Im guessing that's going to be a lot more complicated unfortunately. You need to first set the global variable for being married to 0, then probably unset the variable of the person you married also. I'll look into it
I've tried this with a number of random npcs, and it just doesn't seem to be working...
Can you be more specific? Did you try it only on Khajits? Are you wearing the amulet?