License Number Error: "A driver with license number already exists in the same province."

Symptoms

  •  Error when inputting License Number 
  •  Error: "A driver with license number already exists in the same province."

Applies To

  • MyGeotab
  • User
  • License number

Symptoms

Cause

A user already has the same license number attached to their profile.

Resolution

Remove the license from the previous User or create a new user with a different License Number. 

Additional Note:

Following api call can be used to find the vehicle by licence number:

api.call("Get", {
 "typeName": "User",

}, function(result) {
for(var i =0; i< result.length; i++){
    if(result[i].licenseNumber == "_______"){ // replace _______ with the licence number.
         console.log(result[i]);
    }
}
}, function(e) {
 console.error("Failed:", e);
});