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

alibama’s picture

some 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

alibama’s picture

hi - found this functionality built in https://drupal.org/project/uif_plus - works well

tedbow’s picture

Could 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,

twistor’s picture

Status: Active » Fixed

Going to tentatively mark this as fixed.

If some is still having this problem with the latest dev, please feel free to-reopen.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.