0

I'm trying to use feeds + tamper to do bulk updates to an entity reference field in "Employee profile" content type but retaining existing values. I'm using a CSV file and mapping a "email" and "badge" columns as source with Email (field_email) and Badges (field_badges) as targets respectively, where email is set as unique. Additionally, I have configured the processor to "Do not update existing content items". When I run the import, it finishes successfully but it says "Feeds with tamper: There are no new Employee Profile items." and nothing is being added.

If I change the processor settings to "Update existing content items", the values are being added, but the existing ones are removed.

Any guidance will be appreciated.

Thanks in advance, Ruben B

1 Answer 1

0

There isn't a straightforward way to append values to a multi-value field without custom plugins. You might need to create a custom Feeds Tamper plugin that specifically handles appending values to your entity reference field.

2
  • 1
    Thanks for the information Ram. But I have a question that might be silly for you that are experts, isn't the setting "Do not update existing content items" supposed to not impact the existing item, in this case, badges already assigned to the employee profile? I searched for information about how the processor update settings work, but there is not much. Commented Feb 14 at 18:22
  • "Do not update existing content items", items here are the employ profile records, the need for this is that when you import some items and edit them, after that the feeder will run again and you don't want it to override the changes made. it won't go and check the referenced values and compare to add the missing ones. That's why I told you may need to create a custom plugin or override the node processor. drupal.org/docs/contributed-modules/feeds/… or you can create a custom module to do the job without using feeds.
    – Ram
    Commented Feb 28 at 15:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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