1. Home
  2. Docs
  3. Employee Sync
  4. Create Employee Data
  5. Errors to look out for

Errors to look out for

Same name/email error

The first name + last name combo must be unique in every 7shifts company. Similarly, the email address field must be unique per company as well.

If you receive the following response, you will need to warn the user that the user that the first name/last name combo and/or email must be updated in your system before it can be synced to 7shifts:

{
    "status": "error",
    "message": "User with name John Smith or email john.smith@acme.com already exists",
    "type": "validation_error"
}

Incorrect assignment hierarchy error

For every role or department that needs to be assigned the hierarchy above it must make sense as well. If you try to assign a role to a user that does not belong to any of the specified department.ids, or if you try to assign a department to a user that does not belong to any of the specified location.ids, you will encounter an error as follows:

{
    "status": "error",
    "message": "User is assigned to a department without being assigned to that department's location.",
    "type": "validation_error"
}