0

I have 2 instances of same drupal project, where contents are different. I want to export contents from one drupal site to other drupal site. I tried content syn module: I Was not able import single node having file field value. node_export module: Not able to import node

Anyone is having any idea, which is the best approach to transfer the contents between 2 drupal sites?

Error when tried with content sysn module: Symfony\Component\Serializer\Exception\InvalidArgumentException: No "file" entity found with UUID "514d82d9-e933-4be6-9dfb-3435b58d3531" for field "0". in Drupal\content_sync\Normalizer\EntityReferenceFieldItemNormalizer->constructValue() (line 88 of /var/www/html/drupal8/modules/contrib/content_sync/src/Normalizer/EntityReferenceFieldItemNormalizer.php).

  • Did you remenber to set up content sync dir in settings.php? – Jdrupal Jan 2 at 11:29
  • no,what we need to set.... – rks Jan 2 at 11:36
  • Take a look at the answer – Jdrupal Jan 2 at 11:39
0

When using content_sync module, you must set the content_sync directory in your settings.php file.

From module description:

Set the export directory in settings.php. Similar to configuration management, we want to set the export directory for YAML files using the settings.php file.le: Use the variable: $content_directories['sync'] ie:

global $content_directories;

$content_directories['sync'] = '/../content/sync';

Note: set $content_directories as global

  • Thank you for the suggestion, one problem solved. Also i'm getting one more error,which i pasted in the above question.Please guide me to solve this – rks Jan 2 at 12:02
  • Try to apply patch from this thread, drupal.org/project/content_sync/issues/2988394 – Jdrupal Jan 2 at 12:06
  • This patch i already applied.. cleared cache...anything else to be done – rks Jan 2 at 12:09
  • How do you export the content? – Jdrupal Jan 2 at 14:12
  • In content sync configuration, i exported the single node having file field and copied and pasted in my other site content sync Without file if i export node can be imported properly – rks Jan 3 at 16:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.