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.
Sorry, maybe I'm missing something very obvious here:
I have a couple of hundreds html files in public:/oldsite (those are downloaded, cleaned with script and tidy'ed).
I'm trying load them with: Attached to: [none] / Periodic import: off / Import on submission
Fetcher: File upload / Parser: XPath HTML parser / Node processor
When I run importer, I get only one new node created and xxx-1 updated (xxx is the number of files in oldsite directory).
Comments
Comment #1
twistor CreditAttribution: twistor commentedDo you have a field marked as unique? And is it unique per item?
Comment #2
veskimees CreditAttribution: veskimees commentedEhh... Thank You very much!
(Actually, it was little more complicated, but my mistake anyway -- I had GUID as unique in first position.)
Comment #3
littledynamo CreditAttribution: littledynamo commentedI had a similar problem and just wanted to note it here in case anyone else runs into the same issue.
- Importing 19 nodes from CSV
- Column named row_guid is mapped to GUID and set as a unique field.
After running the import I got the message:
Created 1 node
Updated 18 nodes
But only 1 node gets created. In the status box it says:
Last import: 1 sec ago.
1 imported items total
Solution
There was an blank row at the bottom of my .csv file. I opened the file in notepad and removed that line and all 19 nodes imported correctly.