I've posted this on the Github feed for the Feeds module - adding here in case there's a different audience...
I used Feeds to import users on a D7 site many times in the past, so am confused why this isn't working in Backdrop.
I have an upgraded site with hundreds of users successfully carried over from a D7 site. When I try to use Feeds to import and update changed user accounts, I'm getting this error:
Integrity constraint violation: 1062 Duplicate entry '80-5' for key 'PRIMARY'
(where 80 is the id of an existing user).
I've set the User Processor settings to either of "Insert new user accounts" or "Do not insert new user accounts" (makes no difference eitehr way) and "Update existing user accounts" is on.
and the mapping such that user is a unique identifier.
Any clues about what's going wrong here? I'm not sure where to look to find more detail.
Recent log messages shows:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '80-5' for key 'PRIMARY': INSERT INTO {users_roles} (uid
, role
) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1), ...
Thanks
Martin
Hi Martin
I'm wondering if Feeds Tamper could be your friend here?
https://github.com/backdrop-contrib/feeds_tamper
Create the roles from scratch in backdrop so they have a machine name
Setup your feed with the tamper to map the old drupal machine number to the new backdrop machine name then perhaps delete and re-import (although update might work).
Martin