I have tried using Taxonomy CSV Import/ Export and its great. Many thnx for building it and maintaining it.

I am having a small issue and I'm hoping you may be able to help me out.

In short, after I import using the module, I try to go to the "list term" page and it is blank white.

In detail:

I tried importing a csv with custom fields into a a taxonomy vocabulary called Topics.

In step 1 , I have Custom Field selecting in the dropdown and this in the input below it:

name, field_grade, field_subject

In step 2, I upload a csv file called resource_load.csv

In step 3, I used the defaults

In step 4, I have selected Import into Selected Vocabulary then I choose Topics below

In 5 I have this radio selected: Ignore existing terms (quicker, but duplicates may be created)

After the upload takes place, I checked phpmyadmin and the new records are in the taxonomy_term_data table

One thing I did notice was that NULL was found in the description field and format field for each new record that had recently been imported by using the module.

So I then deleted the records and redid this process with this in step 1

name, description, format, field_grade, field_subject

Still same blank white result though

Any help or guidance you could provide me would be very much appreciated.

Thnx in advance.

Comments

Daniel_KM’s picture

Hi,

I have no problem when I import items with your process.

In the first process, a NULL for description field and for format field is normal, because you don't provide anything for them. In the second process, there is a blank, because you choose to provide them and because in your input file, you have set a "" (nothing). For Drupal, a NULL and a "" are the same things here.

Note that the "format" field in taxonomy_term_data table is used to set the filter format of the description (do you allow html tags or not in description), and nothing else. Special fields you choose to attach to terms (field_grade, field_subject) aren't saved in taxonomy_term_data table, but in new tables field_data_field_grade and field_data_field_subject.

So I don't understand what you want : import a description and a format, or something else? Could you give me two or three lines of your input files?

Sincerely,

Daniel Berthereau
Infodoc & Knowledge management

Daniel_KM’s picture

Status: Active » Postponed (maintainer needs more info)
jdube’s picture

StatusFileSize
new8.7 KB

I may be experiencing a similar problem. CSV file import appears to work perfectly, all terms in nice hierarchical order - and display properly both in Taxonomy Manager and Views output.

For other vocabularies, e.g. Tags, if I click on "List Terms" - at /admin/structure/taxonomy/tags I see: List - Edit - Manage fields - Manage display - RDF Mappings AND the list of terms displayed below in another table.

However, for my csv imported vocabulary, at /admin/structure/taxonomy/taxonomy_for_dru96300 I see (as per attached) no terms listed, no apparent css formatting, etc.

I'm using Drupal 7.10, Taxonomy CSV import/export 7.x-5.7, Taxonomy Manager 7.x-1.0-beta1, and Views 7.x-3.0.

Daniel_KM’s picture

Hi,

Thanks for your report.

I can't reproduce your bug.
If I understand, your terms are imported twice, one time in your own vocabulary and a second time in the Tags vocabulary ?

Which format do you use for your terms, html or plain text? Could you give me one or two lines of your input file and the list of options?

I continue to seek in the code if vocabularies can be mixed somewhere.

Sincerely,

Daniel Berthereau
Infodoc & Knowledge manager

jdube’s picture

StatusFileSize
new13 KB

Thank you for looking into this. Note: I tried again 3 times with same result. One time I set up a vocabulary first and imported csv into it. I saved one of the process reports (see example, attached)

If I understand, your terms are imported twice, one time in your own vocabulary and a second time in the Tags vocabulary ?

No, the terms were imported only once - from csv file (which was created in Excel).

Which format do you use for your terms, html or plain text?

The terms in my csv file are plain text.

Could you give me one or two lines of your input file and the list of options?

Cinema
(blank cell) Cinema_Culture
(blank cell)(blank cell) Cinema_Aesthetic
...

List of options:
1. What do you want to import?: "hierarchical tree structure or one term by line structure"; (checked) "Keep order of terms"
2. Where are items to import?: "in a local file" (Browse: "taxonomy-for-drupal.csv")
3. How is your source formatted?(active tab): default settings (comma-delimited, etc.)
4. Which vocabulary do you want to import into?: "Autocreate a new vocabulary"
5. When a term exists, what to do with it?: "Update (replace) existing term and items if exist else create"
6. Informations on process: default settings

I continue to seek in the code if vocabularies can be mixed somewhere.

I don't understand you here.

I have one idea: do I need to enter a special character into each BLANK cell of Excel spreadsheet, before saving to csv?

Thanks for your help.

Daniel_KM’s picture

The report indicates that your import is good. Notice on empty items means that your csv is like that:

Cinema,,,,,
 Cinema_Culture,,,,
  Cinema_Aesthetic,,,
  Cinema_As_Communication,,,
  Cinema_Censorship,,,
 Cinema_Education,,,,
  Film_Studies_School,,,

and not lilke that:

Cinema
 ,  Cinema_Culture
 , , Cinema_Aesthetic
 , , Cinema_As_Communication

or

,,Cinema_Censorship
,Cinema_Education
,,Film_Studies_School

or

"Cinema"
"","Cinema_Culture"
"","","Cinema_Aesthetic"
"","","Cinema_As_Communication"

or

Cinema ,Cinema_Culture , Cinema_Censorship
Cinema , Cinema_Education
Cinema , Cinema_Education, Film_Studies_School

The first format can be used (without comma), but you need to set a space as a custom delimiter.
The trailing commas are ignored (but terms before them are imported).

Do you see these terms when you use this csv format and delimiter?

You can use the dev release, because it's a cleaned release of 7.x.5.7 with all new patchs (see here). 7.x.5.8 release will be published in some days.

Sincerely,

Daniel Berthereau
Infodoc & Knowledge management

jdube’s picture

Thank you for helping me to understand the report better. I hope that some of this problem-solving will help others as well.
I updated to 7.x-5.x-dev.
You suggested:

The first format can be used (without comma), but you need to set a space as a custom delimiter.

I was not quite certain what you meant by "first format", but I as usual selected "Hierarchical tree structure..." and tried 3 imports:
1) I tried setting the CSV value delimiter to "Custom delimiter" and then I set Custom delimiter (which allows only one character to be entered) to " " (pressing the spacebar)
2) I tried setting the CSV value delimiter to "Custom delimiter" and then I set Custom delimiter to "" (no character entered)
3) I also tried setting the CSV value delimiter to the "<>" selection

The trailing commas are ignored (but terms before them are imported).

When I click on Taxonomy List, settings 1, 2, and 3 there IS a list of terms. It looks like this:
Cinema,,,,,,,,
,Cinema_Culture,,,,,,,
,,Cinema_Aesthetic,,,,,,
,,Cinema_As_Communication,,,,,,
...
However in Taxonomy Manager, the vocabulary output by 1, 2, and 3 is displayed as a FLAT list, and is NOT collapsible as a hierarchy, and the "Select all children" function is not available.

Obviously, I must still be doing something incorrectly. I hope you can see what it is? If not, thanks very much for your help, and I will use the imported vocabulary that works in Taxonomy Manager.

Daniel_KM’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)
StatusFileSize
new47.96 KB
new40.17 KB

In your input, delimiter is a comma:

Cinema,,,,,,,,
,Cinema_Culture,,,,,,,
,,Cinema_Aesthetic,,,,,,
,,Cinema_As_Communication,,,,,,

So, you can reset options (default delimiter is a comma), choose "Hierarchical tree" and it will import fine as you see in first picture.

If your input has only spaces for separation of values, you need to specify that custom delimiter is a space:

Cinema
 Cinema_Culture
  Cinema_Aesthetic
   Cinema_As_Communication

It works fine too.

It's normal that if you choose a space delimiter with first input, the vocabulary will be flat and items will have commas in their name (see second picture), and vice-versa, if you choose comma delimiter with second input, the vocabulary will be flat too, but items will be good (names are trimmed).

Sincerely,

Daniel Berthereau
Infodoc & Knowledge management

DanielJohnston’s picture

Version: 7.x-5.7 » 6.x-5.10
Status: Closed (works as designed) » Active

I have the same issue with a recent import on 6.x-5.10. I can see the terms using Taxonomy Manager, and the log entry claimed the import was successful, but the results page from the import produced an http 500 error, and viewing the taxonomy list using core at /admin/content/taxonomy/16 also gives an http 500 error.

I would be fine with this as I can work around it, *BUT* it also breaks node creation or editing for any nodes using the imported taxonomy with an http 500 error as well.

If I replace the core taxonomy selection with Hierarchical Select then the node creation form displays, but the list of terms is always empty and creating a new term doesn't add anything to the empty list. In short, there appears to be something about the imported taxonomy that breaks Drupal, but which is invisible to me as a site administrator.

I may have misunderstood the previous discussion on this issue, but I can't see the resolution anywhere in the responses so far, and it appears to be a similar problem. I've included the actual CSV below for information, which was imported with polyhierarchy but is a simple tree in actual structure. Apologies for length!

Building Products and Services;
Cleaning Products;
Contract Activities;
Contract Cleaning;
Disability Services;
Electro-mechanical Assembly;
Food and Drink Products;
Furniture;
Healthcare Products and Services;
Catering and Hospitality Services;
Investigation and Security Services;
Laundry Services;
Maintenance and Landscape Services;
Manufacturing and Assembly;
Other;
Outsourced Office Services;
Packaging Materials;
Recruitment Services;
Refurbishment and Recycling;
Signage Manufacture;
Textiles - Manufacture and Supply;
Cleaning Products;Detergents
Cleaning Products;Handwash products
Cleaning Products;Sterilising solution
Cleaning Products;Waste Management Unit
Contract Activities;Collation of kits
Contract Activities;Component assembly
Contract Activities;Contract manufacturing
Contract Activities;Contract packing
Contract Activities;Food packaging
Contract Activities;Supply chain assembly
Contract Cleaning;Graffiti removal
Contract Cleaning;Rubbish removal
Disability Services;Access solutions - supply and installation
Disability Services;Aids to daily living
Disability Services;Disability & Discrimination Act compliance services
Disability Services;Disability web accessibility testing
Disability Services;Education, training and residential care
Disability Services;Practitioner training techniques for people with a learning disability
Disability Services;Rehabilitation aids
Disability Services;Training in Disability Discrimination Act
Disability Services;Translation services - braille
Disability Services;Translation services - large print
Food and Drink Products;Drinks - supply
Food and Drink Products;Food - supply
Food and Drink Products;Fresh Produce - supply
Electro-mechanical Assembly;Electro-mechanical soldering
Furniture;Accommodation Furniture - manufacture and supply
Furniture;Beds and bedroom furniture - manufacture and supply
Furniture;Contract Furniture - manufacture and supply
Furniture;Healthcare Furniture - manufacture and supply
Furniture;Laboratory Furniture - manufacture and supply
Furniture;Library Furniture - manufacture and supply
Furniture;Residential and Care Home Furniture - manufacture and supply
Furniture;School Furniture - manufacture and supply
Furniture;Soft Furnishings - manufacture and supply
Furniture;Turnkey Projects - project design, manufacture and supply
Furniture;Upholstery and Re-upholstery
Healthcare Products and Services;Aids to daily living
Healthcare Products and Services;Detergents
Healthcare Products and Services;Disability equipment
Healthcare Products and Services;Handwash products
Healthcare Products and Services;Hoisting equipment - installation, service and maintenance
Healthcare Products and Services;Incontinence wear
Healthcare Products and Services;Medical equipment - servicing and maintenance
Healthcare Products and Services;Medical loan stores
Healthcare Products and Services;Medical supports
Healthcare Products and Services;Medical textiles products and services
Healthcare Products and Services;Orthotics products and services
Healthcare Products and Services;Podiatry products and services
Healthcare Products and Services;Rehabilitation aids
Healthcare Products and Services;Sterilising solutions
Healthcare Products and Services;Wheelchair products & services
Catering and Hospitality Services;Outsourced catering services
Catering and Hospitality Services;Detergents - supply
Catering and Hospitality Services;Handwash products - supply
Catering and Hospitality Services;Sterilising solutions - supply
Investigation and Security Services;Outsourced CCTV services
Investigation and Security Services;Door entry systems – supply and installation
Investigation and Security Services;Security staff - supply
Investigation and Security Services;Security staff training - supply
Laundry Services;Laundering services
Maintenance and Landscape Services;Decorating services
Maintenance and Landscape Services;Domestic garden maintenance
Maintenance and Landscape Services;Environmental maintenance & teams
Maintenance and Landscape Services;Grounds maintenance
Maintenance and Landscape Services;Landscaping - public spaces
Maintenance and Landscape Services;Manufacture of garden products/equipment
Maintenance and Landscape Services;Plant and shrub sales
Manufacturing and Assembly;Aids to daily living
Manufacturing and Assembly;Collation of kits
Manufacturing and Assembly;Component assembly
Manufacturing and Assembly;Contract manufacturing
Manufacturing and Assembly;Festival light manufacture
Manufacturing and Assembly;Food packaging
Manufacturing and Assembly;Knife blade cutting
Manufacturing and Assembly;Powder coated, plastic injection moulded and plastic extruded products
Manufacturing and Assembly;Supply chain assembly
Manufacturing and Assembly;Vacuum forming
Manufacturing and Assembly;Welding
Other;Children\'s toys
Other;City lights
Building Products and Services;Fencing, shed and trellis
Other;Graphic digital printed vinyl stickers
Other;Picture holders & frames
Other;Wood turned items
Other;Wooden pallet and containers
Outsourced Office Services;Audio services
Outsourced Office Services;Contact centre & fulfilment services
Outsourced Office Services;Corporate & marketing literature
Outsourced Office Services;Digital printing
Outsourced Office Services;Direct mail
Outsourced Office Services;Document management services
Outsourced Office Services;Graphic design services
Outsourced Office Services;Mailing services
Outsourced Office Services;Pad printing
Outsourced Office Services;Print finishing
Outsourced Office Services;Scanning
Outsourced Office Services;Specialist printing
Packaging Materials;Corrugated products
Packaging Materials;Litho laminated corrugated products
Packaging Materials;Solid board packaging
Printing, Publishing, Advertising and Marketing Services;
Printing, Publishing, Advertising and Marketing Services;Design services
Printing, Publishing, Advertising and Marketing Services;Digital printing
Printing, Publishing, Advertising and Marketing Services;Pad printing
Printing, Publishing, Advertising and Marketing Services;Print finishing
Printing, Publishing, Advertising and Marketing Services;Specialist printing
Recruitment Services;Catering staff
Recruitment Services;Decorating staff
Recruitment Services;Gardening staff
Recruitment Services;Recruitment of disabled employees
Refurbishment and Recycling;Furniture - refurbishment and recycle
Refurbishment and Recycling;Medical equipment - refurbishment and recycle
Refurbishment and Recycling;IT, electronic & electric - refurbishment and recycle
Refurbishment and Recycling;Warranty returns - refurbishment
Refurbishment and Recycling;White goods - refurbishment and recycle
Signage Manufacture;Office, hotel and workplace signage
Signage Manufacture;Routed cutout shapes signage
Signage Manufacture;Commercial signage
Signage Manufacture;Rail signage
Signage Manufacture;Road signage
Signage Manufacture;Wooden, brass, stainless and laminate signage
Textiles - Manufacture and Supply;Machine embroidery
Textiles - Manufacture and Supply;Marine equipment - manufacture and supply
Textiles - Manufacture and Supply;Other military garments - manufacture and supply
Textiles - Manufacture and Supply;Protective military garments - manufacture and supply
Textiles - Manufacture and Supply;Soft furnishings - manufacture and supply
Textiles - Manufacture and Supply;Workwear - manufacture and supply
Rubber products;
Packaging Materials;Polyethelyne refuse bags
Rubber products;Disposable gloves
Building Products and Services;Cavity closure
Building Products and Services;Composite doors – supply and installation
Building Products and Services;Curtain walling
Building Products and Services;Door sets – fire rated
Building Products and Services;Double glazing wedges & corner frame protectors
Building Products and Services;Joinery products
Building Products and Services;Kitchen manufacture and supply
Building Products and Services;Pipe/chimney guards
Building Products and Services;PVCu windows and doors – supply and installation
Building Products and Services;Timber windows, doors and screens – supply and installation
Building Products and Services;Training Facility for Survey and Installation Services
Furniture;Bathroom furniture
Furniture;Seating
Waste collection and disposal;
Waste collection and disposal;Paper collection and shredding
Manufacturing and Assembly;Domestic appliances
Furniture;Office furniture
Animal Products and Services;
Animal Products and Services;Animal bedding
Chemical Products;
Chemical Products;Silica
Building Products and Services;Gates and railings
Maintenance and Landscape Services;Garden products
Textiles - Manufacture and Supply;Leather products
Furniture;Screening
Manufacturing and Assembly;Metal fabrication
Electrical Products and Services;
Electrical Products and Services;Festive lighting systems
Catering and Hospitality Services;Disposable catering supplies
Healthcare Products and Services;Toiletries
Cleaning Products;Cleaning products
Furniture;Kitchen manufacture
Furniture;Outdoor furniture and equipment
Packaging Materials;Crates, pallets and boxes
Printing, Publishing, Advertising and Marketing Services;Lithographic services
Textiles - Manufacture and Supply;Protective clothing
Textiles - Manufacture and Supply;Corporate clothing
Textiles - Manufacture and Supply;Leisure clothing
Textiles - Manufacture and Supply;Gloves
Signage Manufacture;Roadside furniture and fixings
Automotive Services;
Automotive Services;Vehicle assembly
Automotive Services;Vehicle parts
Cleaning Products;Mops
Furniture;Picture framing
DanielJohnston’s picture

Status: Active » Closed (works as designed)

OK, found the source of the problem. There's a subcategory called 'Cleaning Products' within the category 'Cleaning Products', and polyhierarchical import assigns the category to be its own parent in consequence, creating a regression that zaps taxonomy handling.