Multiple reference field values & Multiple term reference values are failed to import from CSV

Created on 17 September 2018, about 6 years ago
Updated 8 June 2023, over 1 year ago

Hi..
I have tried to import multiple reference filed values & multiple term reference values from CSV, but this module failed to support for this.
I am working for this, once i complete i will update the patch soon.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India kurinjiselvan v

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇹🇼Taiwan typingmonk

    Thanks for kurinjiselvan v's patch 🐛 Multiple reference field values & Multiple term reference values are failed to import from CSV Needs review .
    It helps me to import simple one-to-many text-field with delimiter `|`

  • 🇺🇸United States eahonet

    Hello All. And thank you for all the code in this thread. I'm working on a D10 site and have thousands of news articles with multiple tags (taxonomies) and thousands of users with multiple roles that need to be imported.

    I'm on the latest 8.x.1.x branch and can't get some of these patches to apply. So I made this patch based on #26.

    Some of the changes in the patch were already part of 8.x-1.x and some were more formatting. I grabbed what I think was the required code and made this patch.

    I did have to change up one functional piece

    if (is_string($item_value) && (file_exists($item_value) || file_get_contents($item_value))) {
    to be
    if (is_string($item_value) && file_exists($item_value) && file_get_contents($item_value)) {
    this got images working for me.

    My logs have lots of warnings in them after importing csvs, but they are importing correctly. So I'm feeling goodish about it.

  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    last update over 1 year ago
    3 pass
Production build 0.71.5 2024