ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Channel Entries Overwritten

October 15, 2012 7:02pm

Subscribe [2]
  • #1 / Oct 15, 2012 7:02pm

    Bethany Creative

    16 posts

    I had a channel setup with several entries (channel A). I then imported some entries to another channel (Channel B) using datagrab plugin. Later I noticed some entries in Channel A missing. After digging around it seems any entries with the same title that imported into Channel B overwrote channel A entries.

    Is this a glitch? or is this how EE handles Channel Entries? Does every entry Title have to be unique regardless of the channels they are in?


    Jamie

  • #2 / Oct 16, 2012 3:44pm

    Robin Sowell

    13255 posts

    Hi Jamie, this definitely sounds like a glitch in Data Grab.  You can have duplicate titles no problem.  You should NOT have duplicate url_titles in the same channel, but frankly there’s no reason they couldn’t be added via something like DataGrab and still work in the backend.  On the frontend, if you are using category titles- you’ll have a problem, because it won’t know which url_title you’re referring to.  You’d need to go through and make sure those are unique.

    What really really can’t be duplicated is the entry_id- that much be unique and mysql should reject a duplicate. 

    But if it’s an issue of duplicate url_titles?  You should still see all of the entries in the control panel.  It’s only on the frontend things might get confused.  And if the duplicate url_titles are in different channels?  There shouldn’t be a problem.

    Personally- I would roll back to a db from before the import, as I’m not sure I’d trust the integrity of the data at this point.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases