What exactly do you mean you "found there was no socket"? Was the receptacle corroded, missing or damaged? If missing completely, what was the rest of the wiring harness like on that side?
Do you have a exterior lighting wiring diagram? You need to trace whether power is getting to that circuit.