Library download can't be imported

Created on 16 August 2023, about 1 year ago
Updated 18 August 2023, about 1 year ago

Problem/Motivation

I've downloaded a model from https://ecaguide.org/library/simple/add_role_to_inserted_or_updated_user/
But when I try to import it to a new D9.5.10 site, I get an error:

The import failed due to the following reason: There were errors validating the config synchronization. Entities exist of type Content and Content type Basic page. These entities need to be deleted before importing. Entities exist of type Content and Content type Basic page. These entities need to be deleted before importing.

💬 Support request
Status

Fixed

Version

1.1

Component

Documentation

Created by

🇬🇧United Kingdom adam_b

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @adam_b
  • 🇩🇪Germany jurgenhaas Gottmadingen

    The models are supposed to be imported in test sites with no content. Unfortunately, the config import loads node types such that the previously existing type get replaced with the new one, although the ID is the same. Replacing an existing node type is only possible if there are no entities/nodes of that type available. I am uncertain if we can change the import such that this limitation would disappear.

    For now, you can always import such models into new Drupal installations that don't have content yet, or you delete existing content before importing such a model.

  • 🇬🇧United Kingdom adam_b

    Thanks - I deleted content and it was imported successfully

    Maybe you could add a general note to this effect in the library (assuming I haven't missed it)?
    I am but a humble site builder, and I need things spelled out for me :)

  • Status changed to Fixed about 1 year ago
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Thanks @adam_b for your feedback. I've added a task to the Documenation Kanban Board to add some instructions to the library about this issue.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024