Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I've set up a CSV importer using the Feeds module. My CSV is not a drupal file but one that i have, of my own. I've mapped the name of the coupon(a column in my CSV file) onto the title of my content type "coupon". This is just a test run. On importing the same data twice, it's being duplicated. I want the repetitive data to be deleted. Can someone help please?

enter image description here enter image description here enter image description here enter image description here enter image description here enter image description here enter image description here enter image description here

share|improve this question
    
It is not really possible now, because Feeds does not respect any kind of universal data ID to know when to update and when to add. There was requests to add UUID to feeds, but until then, you will be forced to fall back to less reliable methods. Some discussion is also here. I know that's not an answer, I hope it'll push you in right direction, or help somebody to answer. Too big task for me now. –  Mołot Sep 2 at 8:35
    
thanks @Mołot My problem is a bit different as my file is not a drupal file. I just added that bit of info into my question. But thanks anyway! It sure has given me a way forward =) –  Mehak Jamal Sep 2 at 8:56
    
Oh, sorry for misunderstanding. If you have a column that is unique key, it should be possible to do "on duplicate key, update". But I cannot remember how. If I'll recall, I'll answer. –  Mołot Sep 2 at 9:21
    
Oh okay. Please do! –  Mehak Jamal Sep 2 at 9:39

1 Answer 1

Use Target configuration as unique to avoid duplication

Title as unique

share|improve this answer
    
Thanks alot @Rituraj Kumar I did try that earlier on- didn't work, but just now, it did! –  Mehak Jamal Sep 2 at 11:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.