Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have an xml import with a field that contains comma separated values. Each of these correspond with a taxonomy (which I reference using entity reference). Using tamper I comma explode this field. However this does not work - now I am rather stumped going on 3 hours.
Now if I remove explode, and the import field only has one value (no comma separated values) then the lookup happens just fine and all goes well.
Help!
Comments
Comment #1
alibama CreditAttribution: alibama commentedsome here - the explode in my case does load the first value - but then none of the other ones... not certain what's up
fwiw tested with labels and IDs - neither work
Comment #2
alibama CreditAttribution: alibama commentedhi - found this functionality built in https://drupal.org/project/uif_plus - works well
Comment #3
tedbowCould the problem be that there are spaces in the list of ids. i.e. "123, 456, 567"
If so then you would need to trim the values after you explode them. This won't work now but there is patch that will make it work.
see #2119745: Fields converted to arrays during import are not processed as arrays by subsequent plugins
If this fixes your problem please reply on that issue so we can get it in this module.
Thanks,
Comment #4
twistor CreditAttribution: twistor commentedGoing to tentatively mark this as fixed.
If some is still having this problem with the latest dev, please feel free to-reopen.