Problem/Motivation

The issue we are facing is that we want to import entities with paragraphs which can contain media entities in our development/test environments from our production environment. We cannot import the media items as the user who created the media items on the production environment cannot be found in the other Drupal instances. The error we are getting is that the userId cannot be null in the Drupal database. With that we cannot import our content types including media entities. Is it possible to automatically import these media items as anonymous user when the original user cannot be found?

I tried to replace the UserId to my local anonymous account and the import went fine, however, manually changing the user account in the yml files is not desired as the process will most likely be automated (of course this step can also be automated, but we would prefer an easier solution if available). Furthermore, it is not desired to export and import the user accounts from our production environment to our development and test environments. So we would like to import the media items as anonymous user just like the content types.

Comments

mgoudr created an issue. See original summary.

blanca.esqueda’s picture

Closing this task as duplicated of this one:
https://www.drupal.org/project/content_sync/issues/3160466

blanca.esqueda’s picture

Status: Active » Closed (duplicate)