Dealing with importing Source Unique Identifiers
Pro PlusEvents Manager I/ORequires an Events Manager Pro Plus license. Compare plans
When an import runs for the second time, Events Manager I/O has to work out which items it has seen before. It does that with the ID each item carries at its source. This page explains what goes wrong when a source's IDs are unreliable, and what the Ignore Source IDs? setting does about it. The setting's help text in wp-admin links here.
It applies to iCal, CSV, Excel and Google Sheets imports. Google Calendar, Meetup and Facebook always supply stable IDs, so the setting is not offered for them.
How an item is recognized
Every import keeps a record of the items it created, and each record holds two things:
- the item's ID at the source: the
UIDof an event in an iCal feed, or the column you mapped to Event Unique ID (Import Source) in a spreadsheet - a fingerprint of its content: name, description, image, categories, tags, dates, timezone and location
On the next run, an item whose ID is already on record is the same event. If its fingerprint has changed it is updated (following the import's Import Updates setting), and if not it is skipped. An item whose ID is not on record is new.
When the source provides no ID, I/O builds one from the event's name, start and end. For a location it uses the name and address.
When the source's IDs are stable
This is the case you want, and most calendar software behaves this way. The organizer can rename the event or move it to another day, and your site updates the event it already has. Leave Ignore Source IDs? on No.
When the ID changes every time the feed is read
Some feeds generate a new ID for each event on every request. Each run of your import then sees nothing but new events and creates them all again.
To check, download the feed twice a few minutes apart and compare the UID line of the same event in both files. If they differ, this is your problem.
The fix:
-
Open the import at Events I/O then Import and go to its Settings tab.
-
Set Ignore Source IDs? to Yes.
-
Click Save and Preview. The source's IDs are now discarded, and each event is identified by its name, start and end instead.
Events already duplicated by earlier runs stay on your site. Delete the extra copies by hand.
When the ID changes whenever the event is edited
Other feeds build the ID from the event's date and time, so the ID holds steady until someone reschedules the event. After a reschedule, the import sees a new event and creates it, and the old one stays on your site with the old date.
Turning on Ignore Source IDs? does not help here, because the ID I/O builds also depends on the start and end. There is no setting that prevents this. What you can do:
- ask whoever publishes the feed whether it can offer stable IDs
- set Import Status to Draft or Pending Review, so a rescheduled event arrives for review instead of going public next to its old copy
- delete the outdated event when you approve the new one
Spreadsheets without an ID column
A spreadsheet with no column mapped to Event Unique ID (Import Source) behaves like the last case: an event is matched by its name, start and end, and editing any of the three in the sheet creates a second event on the next run. If you plan to import the same sheet repeatedly, add a column with a fixed ID for each row and map it. See Spreadsheets.
The same event from two imports
IDs are recorded for each import separately. If two imports read the same source, or two sources list the same event, each import creates its own copy. Set Ignore Duplicate Events? to Yes on both imports to skip an item when an event with exactly the same name, start and end already exists on your site.