I've having an issue with Totara Sync updating existing users, where I'm getting "cannot create user [username] - Error writing to database" on the Sync log.
On the csv file, we have the fields that we need and have previously uploaded new users and updated existing users successfully. We do not have the city and country fields on the csv.
This time, we are creating/updating around 15 users, of which two existing users had been manually created and had their city and country filled out. When uploaded, the sync stops at these two users and doesn't get to the rest of the users on the csv. Once these two users are removed, the upload/update goes smoothly for the other users.
I've ticked off the Totara Sync checkbox in their profiles to let them be updated via Totara Sync but it is still repeating the error.
Here are some things I've tried to get it working with the two users isolated on a separate csv:
- Added city and country to the CSV, and enabled it in the User - CSV source settings (in case anyone asks, I used the 2-character ISO country code: GB and US)
- 1. Left both fields blank to overwrite the existing city and country
- 2. Filled in the fields with new information to overwrite the existing city and country
- 3. Filled in the same information for city and country