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.
Problem/Motivation
I have Feeds Alpha 6 Version 2.0 for Drupal 7. I have enabled the Feeds main module and the UI and Feeds News modules. I created a Feeds node and saved the node. Drupal imported the feed and created 30 nodes. I then deleted all the Feed Item nodes. I then tried to reimport all those nodes by deleting the Feeds node and re-creating it. Drupal reports that there are no new nodes. Drupal seems to remember somehow that the Feed Item once existed and refused to re-import that item.
Comments
Comment #1
g089h515r806 CreditAttribution: g089h515r806 commentedIt is not a bug.
You could change your csv a little and upload it again. then you could reimport your items.
Feeds could cache your uploaded csv file, if you upload it again, Feeds will check whether it is the same with previous file, it will skip import process if your csv do not have any change.
Comment #2
1mundus CreditAttribution: 1mundus commentedTry with changing the options to update nodes.
Comment #3
jacobson CreditAttribution: jacobson commentedI am not importing a CSV. I am pulling in an RSS feed from another web site. Using update nodes does not make a difference. Updating Feeds to the latest dev version seemed to solve the problem.
Comment #4
jpstrikesback CreditAttribution: jpstrikesback commentedMy understanding is that Feeds only clears the feeds-import table of entries when they are deleted thru feeds. If you delete an imported item thru drupal methods it knows nothing about that and still considers it's own mapping table as the master of what has been imported. Makes sense as you may import 100 items, delete 10 and not want them to get re-imported, I think currently this is the only way that this is possible.
Comment #5
Dennis Cohn CreditAttribution: Dennis Cohn commentedI've got this problem too!
I've delete all items in the content admin and I want to reimport the items.
But that's impossible because I keep getting the message "There are no new nodes."
No my website is blank...
How can I reimport all those items?
Comment #6
lyricnz CreditAttribution: lyricnz commenteddelete the rows from {feeds_item} table that you want to re-import.
Comment #7
Dennis Cohn CreditAttribution: Dennis Cohn commentedAlready deleted them but he's keep saying: "There are no new nodes".
Very Strange!
Comment #8
twistor CreditAttribution: twistor commentedhmm... this is strange.
Just to clarify a few things. If you delete, Feeds knows that it was deleted and removes it from the feeds_item table.
I would check your feed. Try downloading the file, and looking at it.
Comment #9
hvasconcelos CreditAttribution: hvasconcelos commentedThis is happening to me too. I was working altering/editing some values from the original feed before it was saved into a node by using
hook_feeds_presave()
. I wanted to test my code again so I deleted everything and when I went to re-import it it wouldn't work. Good thing the database was backed up!After looking into it, in my case, I found that the quickest route was to simply modify the nodes that were already created (since their information already existed in drupal) and then let the new code - in a custom module - act on the feeds to be imported in the future.
Who knows maybe this will help someone wanting to change feeds that were already imported. (and not yet deleted, since we all know what happens when you try to re-import them!)
Comment #10
hvasconcelos CreditAttribution: hvasconcelos commentedI found out what the issue was for me!
I imported the nodes before I implemented a feeds hook. I was using the hook_feeds_presave() and as you can see in the link I provided, the code includes a
$entity->feeds_item->skip = TRUE;
. I made the mistake of simply copying and pasting the code in the documentation and never realized that even though it was being called, that line was making the node not be saved! Amazing how simple things go through unnoticed sometimes.Comment #11
markabur CreditAttribution: markabur commentedSame thing is happening for me. I've even disabled and uninstalled Feeds module altogether, and I still get "no new nodes" when trying to re-import.
Edit: nevermind, turns out we hadn't enabled our custom module that implements hook__feeds_after_parse() to massage the data into the proper format. Works now!
Comment #12
MegaChriz CreditAttribution: MegaChriz commentedIt seems that this works as designed.
For others running into this problem: