I'm using a csv file to import feeds, using the feed node processor. I can successfully import new feed nodes when the option for "Replace existing feed nodes" is unset. However, without this option I'm unable to update existing feed nodes.
But when the option "Replace existing feed nodes" is set, no matter what changes have been made to the contents of the csv file (to either update existing feeds or add new feeds), I keep getting the response "There is no new content."
There are previous issues related to this "There is no new content." message but those are about line format endings which this isn't about, because I can get the feeds created when "Replace existing feed nodes" is unset.
So, is this a bug, anyone else experience the same?
Can anyone help?
cheers
scotjam
Comments
Comment #1
scotjam commentedCan anyone help here?
Any ideas why when using the option "Replace existing feed nodes", I keep getting "There is no new content."?
I can add new feed nodes, but I can't update them.
cheers
scotjam
Comment #2
scotjam commentedComment #3
scotjam commentedComment #4
nicolash commentedHave you tried this with other CSV files? Maybe use one of the ones in the feeds/tests/feeds folder to see whether it has anything to do with the particular file you are trying to import.
Comment #5
scotjam commentedThe test which I've done is to use the same csv file with and without the 'Replace existing feed nodes' option set.
Without the option set, I'm able to import the feeds, but with the option set, the batch runs as you'd expect but the response is 'There is no new content'.
So, from that I taken it that the csv file is fine.
Is this a bug then?
Comment #6
imclean commentedJust to check the obvious, have you set a "unique target" on the mappings screen?
Comment #7
scotjam commented...checked. 'unique target' is set.
Next, I've just installed drupal using the feeds profile, created a feed node importer, and set the options as I normally would. But still no joy! I've attached the export of the test feed node importer, and a test csv file with dummy data.
I must be doing something really silly here, but I can't tell what!
Comment #8
k3n3dy commentedSubscribing
Comment #9
jgreidy commentedNice to know that it's possible to get Feed Node Processor to work with CSV files at all. The 'unique target' switch works with OPML files.
Comment #10
scotjam commentedSo, its a bug then. Hope to be proved wrong :)
Bug is, CSV files don't work when using Feed Node Processor with 'unique target' set.
Comment #11
lookatthosemoose commentedsubscribe....
Comment #12
__Sander__ commentedIt's a bug.
Look at this line:
if (!$nid = $this->existingItemId($batch, $source) || $this->config['update_existing']) {replace it with
if ((!$nid = $this->existingItemId($batch, $source)) || $this->config['update_existing']) {instead
It's the priority of operators. In the existing form (without brackets) it first does || and then !
Comment #13
__Sander__ commentedHowever it still does not work properly after fixing and recreates duplicates
Comment #14
__Sander__ commentedFalse alert. Works ok. I forgot about unique targets
Comment #15
Kman2123 commentedThis is not working for me either. I am getting same message but running 6.x-1.x-beta10
Comment #16
Kman2123 commentedI updated to the latest dev version that was posted on 6/22 and that fixed the issue.
Comment #17
twistor commented