can not get right rear door to lock
there could be a bad relay. Some vehicles require a relay for each door. Not all vehicles but some do.
Search Jaguar X-TYPE Questions
Jaguar X-TYPE Experts