Closed (duplicate)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Feeds Import
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2011 at 10:56 UTC
Updated:
26 Mar 2012 at 15:23 UTC
When importing a csv file into a standalone form, all mapped fields with alphanumeric data import into correct fields, whether the fields are taxonomy or data fields, but if the mapped fields are only numeric, these fields only import into the data fields, the taxonomy fields are left empty.
To test if the mappings were correct, I added text to these fields and all imported correctly.
Is there an way of tagging this numeric data as text, so this data can be imported to the taxonomy field?
Comments
Comment #1
johnvI think the patch in this issue resolves your problem: #1019688: Taxonomy mapper options: term name +tid, term name, tid, guid (avoids mapping error for Numeric taxonomy term, too)
Comment #2
taxicab221 commentedHaving checked out the patch you refer to #1019688: Split taxonomy mapper in two variants: term name +tid (avoids mapping error for Numeric taxonomy term, too) against the code in the taxonomy.inc file on my site, there are differences:
As you can see the line:
is different to the patch:
So the file that ships with the latest feeds module is not the same as the one in the patch link you referenced in your post.
Because of this difference, I did not patch my taxonomy.inc file, and the issue of importing numeric data into a free tagging taxonomy field within a node import is still a problem.
As stated in my original post, numeric data, eg. 1, 2, 200, etc. dose not import into a:
field :Term reference, with
Widget : Autocomplete term widget (tagging),
and when I list terms on the taxonomy page, the page is empty, but if I add any text to the number e.g. t1, t2, t200 etc. then these values are imported.
Comment #3
johnvIndeed, the patch is outdated, but still valid. You can try applying the patch by hand. The result will be:
Comment #4
taxicab221 commentedMany thanks Johnv.
Applied the patch by hand and ran my import.
All worked fine. Node and Taxonomy both updated. Brilliant!!!
This is a great community. Must learn more about coding.
Again many thanks.
Comment #5
STNyborg commentedI have a similar problem. I have tried the patch, but it does not work.
Any suggestions?
Comment #6
johnv@STNyborg , what is your problem? you cannot apply the patch from #1019688? or you did apply it and importing still doesn't work?
Anyway, let's close this, and use the following issue to discuss: #1019688: Taxonomy mapper options: term name +tid, term name, tid, guid (avoids mapping error for Numeric taxonomy term, too)
Comment #6.0
johnvmis-spelt a word