Home › Forums › Calendar Products › Event Aggregator › Duplicate Events ical Import
- This topic has 5 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
February 25, 2016 at 8:01 pm #1082306
Sara
ParticipantHi guys,
I see that this isn’t anything new but I have been reading through other posts and can’t seem to find something that will work for me.
I have a recurring (every 30 minutes) iCal import from another website. Every time it imports, it duplicates events.
I have “the-events-calendar-importer-ical.4.0.3.zip” installed.
Thanks in advance for your help!
February 26, 2016 at 10:19 am #1082582Cliff
MemberHi Sara.
That’s the latest version of our iCal Importer add-on.
Could you please provide me the URL of the iCal file you’re importing?
Also, please provide some links or screenshots to duplicate events so I can inspect them.
Thanks.
February 26, 2016 at 10:45 am #1082607February 29, 2016 at 9:49 am #1083442Cliff
MemberHi Sara. I downloaded that .ics file, imported a single event, and it only imported one copy of it.
One of several things could be going on:
- You have that URL setup as a recurring import and something about the URL’s events get modified to where the iCal Importer is reading each event as a new event (i.e. something in the .ics file is different and is making it look like a brand new event to import). This is something that would require monitoring the URL for changes and not a one-time import test.
- Or you have a theme or plugin conflict that’s causing it to have this issue, in which case, please follow our Testing for Conflicts Guide and see if that helps narrow down the cause of this.
As far as the iCal Importer goes, there’s a meta field added to all posts. You can check out the
_uidpost_meta field in this screenshot: http://cl.ly/0i2o382N123FTo find all Events posts added via import, check out this code snippet that I created for you:
https:// gist. github.com /cliffordp/71a343dd9956b1303dee#file-events_imported_by_ical_importer-php (without spaces in the URL)
Let met know how things go!
Thanks.
February 29, 2016 at 12:41 pm #1083535Cliff
MemberWe looked further into the URL you provided and the UID of each event in that feed changes with every single request/refresh. As such, the iCal Importer isn’t going to know these are duplicate events and should be ignored upon the subsequent import.
The best resolution is to fix the issue at the source — to have that calendar feed not use new UIDs upon each refresh.
If that’s just not possible, you might be able to do something custom. If you need assistance with a custom solution, please reference our list of known customizers.
I hope this helps!
March 15, 2016 at 9:35 am #1089169Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Duplicate Events ical Import’ is closed to new replies.
