ICS Imports Duplicates Events
When an update is made to our online calendar, we export that calendar as an .ics file. When uploading this .ics file using Event Aggregator, the events on the .ics file that were unchanged were re-uploaded and duplicated, that is to say, instead of only adding events which were changed or events which were not already on the calendar, it simply added every event in the .ics file leading to many duplicated events. I’ll attach the calendar in question in a follow up if you’d like to take a look.
Sorry to see you’ve run into troubles. Before I test the issue myself, can you send over your System Information as a private reply?
It might also be best you set up a fresh WordPress installation where you can fully troubleshoot the issue. Make sure you have only the default WordPress theme and The Events Calendar installed and activated on the test site. Please review our Using One License for Live and Dev Sites for more information.
Please make sure WP_DEBUG and WP_DEBUG_LOG are enabled on your site’s wp-config.php file. Any errors will display at the top of your page as you try to reproduce the conflict. Note what you find and please include it in your reply.
Between your extensive testing and testing on my end, we’ll be able to identify the conflict quickly and take the necessary steps to resolving it. Thanks and take care!
I followed your instructions and imported the HunemeSharepoint.ics file, then the HunemeSP.ics file. I did not experience any duplicate events or any issues for that matter. I also tested using test calendars and .ics files and didn’t experience any issues, so at this time I’m confident saying there doesn’t appear to be a bug. Please see screenshots below confirming my reports.
Import #1 (HunemeSharepoint.ics):
Import runs successfully, importing a total of 401 events:
Import #2 (HunemeSP.ics):
Import runs successfully, importing a total of 1 event:
I created a new category titled ‘Puneet’ to help organize the events. As you can see, a total of 402 events were created and assigned to the category:
All my testing was done using the most recent version of The Events Calendar, so you might want to try updating to the same version and retesting to see if the events are still duplicating. It’s best you have the default WordPress theme active and all plugins other than The Events Calendar deactivated while going through the testing process.
I wish I could do more in this instance but without the ability to reproduce the behavior and seeing no logged bugs resemble your issue, my hands are tied. Please let me know if updating makes a difference and have a great weekend ahead 🙂
The ICS file you linked to has over 300 events. Can you clarify why you are expecting this to import only 105 events? If you are using specific date or category filters on the import, what filters are those specifically? Reply back and I will try to replicate. Do you have another file and URL you can test this issue out on?
Thanks for your patience while we continue investigating. Cheers!