There is an error in /src/Importer/ContentImporter.php about synchronizing new users. The validateEntity function for users examines whether anonymous and admin users are not valid for updating. The problem is that when a new user is validated, the $entity->id() value is still empty, so the condition will be true and this indicates that the validation failed. The user will see the following error message: Error importing content of type user

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Zoltán Balogh created an issue. See original summary.

zoltán balogh’s picture

Status: Active » Needs review
StatusFileSize
new663 bytes

The patch is attached.

blanca.esqueda’s picture

Thank you for the patch :)
It has been committed to 8.x-2.x-dev

blanca.esqueda’s picture

Status: Needs review » Fixed
blanca.esqueda’s picture

Status: Fixed » Closed (fixed)
ilechcod’s picture

Hi Blanca, I just got this error again - Error importing content of type user after a fresh site install, when trying to synchronize content from the admin page. Also drush content-sync:import reports errors In SqlContentEntityStorage.php line 846 - SQLSTATE[2300] Column 'uid' cannot be null. And then the import doesn't happen. I'm using latest version of 8.x-2.x-dev. Apparently the patch wasn't committed?

zhiqiang.qiu’s picture

same issue:Error importing content of type user