Closed (duplicate)
Project:
Feeds
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2011 at 00:43 UTC
Updated:
13 Jan 2016 at 18:38 UTC
Jump to comment: Most recent
Hi,
I installed feeds module and import few nodes by using CVS file(node import). It works great. However, after searching all the documents, I still dont know how to use GUID (or some unique id) to be unique target.
I know that I can set GUID as an unique target in the mapping setting. But there is no GUID field in the node. Should I just put one column (GUID) in the CSV file and it will be added into the database of feeds (that is no need to add anything in the node)?
If GUID is not the best way for me, How to create a CCK field to be the unique target? On the other hand, is it possible to use Title as the unique target?
Thanks.
hosais.
Comments
Comment #1
johnvThis should work:
- choose again one of your fields as a source;(1st column)
- choose GUID as a target;(2nd column)
- now you'll find a checkbox in the 3rd column. Set this, and the combination nid-guid is stored in a special table, to be referenced during the next import.
Comment #2
smscotten commentedI have the same question.
The thing is, I have existing nodes. Those nodes have no GUID. So if I do an import, there is no way to determine whether they are duplicates.
I'm thinking that what I'll have to do is import just one record, then look for the "special table" and manually add a whole lot of rows to that table (one for every node) before attempting to bring in the feed.
Is there a better way?
I have no doubt that this works as designed.
Comment #3
johnvsmscotton, What you want is a wish of mine, too. I think there is a patch in the issuequeue which allows you to you a 'normal 'node field as GUID, but I cannot find it back. If you find it, or have an alternative solution, please post it.
Comment #4
upupax commentedI'm looking for the same feature in D7 version.
I want to manually create a node and update just some value with feeds using the title as unique ID.
Any advice?
Comment #5
EvanDonovan commentedI think that using custom fields as a unique target is covered by #661606: Support unique targets in mappers.
Comment #6
EvanDonovan commentedBy "custom fields" I mean any field besides nid, url, or guid.
Comment #7
Lirkun commented+1
The same feature is needed...
Comment #8
johnbarclay commentedfor 7.x-2.x, try this:
If this works, comment on if the patch works for you and with what version you used it.
Comment #9
Lirkun commentedThnx,
It worked fine for me. I have also found this patch today =)
My versions are:
Drupal | 7.7
Unique Field | 7.x-1.0-rc1
Feeds | 7.x-2.x-dev
Comment #10
johnbarclay commentedI added this to the documentation also: http://drupal.org/node/1307732#field_as_unique_id_7
Comment #11
gaurav.pahuja commentedIs there any patch available for Drupal 6 also?
Comment #12
sja1 commented@gaurav The following works for me in 6.x to update nodes using a CSV parser (no additional modules or patches needed):
Using this set-up I am able to update nodes even if they were not created using the feeds module. Hope this helps someone!
Comment #13
marktheshark commentedIs this the same process necessary to update products by SKU in Drupal Commerce using Commerce Feeds?
Currently I get a uniqueness violation whenever I try to update the stock levels of a preexisting product...
Comment #14
arunattupurath commentedThe import doesn't seem to consider some settings of content type . I installed the unique field module and set two fields as unique .
This setting is not considered by the feeds module . It imports and creates duplicate entries for the unique fields also.
Comment #15
megachrizPlease continue in #661606: Support unique targets in mappers.
Comment #16
ragmont commented#1 worked for me