Hi all,

I try to import all events from a public calendar from outlook.com via ical.

However a recurring event is only imported once.

I tried it with a google calendar and I have the same problem: an individual event is imported fine, but recurring events are not imported correctly.

My mapping is the following:
Date: Start -> Event Date and Time: Start
Summary/Title -> Title
Location-> Event Location
Description -> Event Description
UID -> GUID (set as unique)

Why is it not working?

Comments

coredumperror’s picture

Do you have the Date Repeat module enabled? It's a submodule of Date, which you need to enable to make repeating events work properly.

When it's enabled, you'll see an additional mapping source called "Date: Repeat Rule", which you need to map to "YourDateFieldName: Repeat Rule".

If it is enabled and you're still not getting proper imports, please include a sample of the ical feed you're importing, so I can see how its date repeat code looks.

Tsjippy’s picture

Thank you!

That helped a lot.
For google it is working now, but for outlook.com not completely: I have an event recurring the first Wednesday of the week. It is imported as if it occurs every week. (webcal://sharing.calendar.live.com/calendar/private/22045f66-980a-4634-a...)

Another question I have is this: when I change an event in the google calendar it works fine.
But if I delete an event, it will not be deleted in my site. How can I enable this?

coredumperror’s picture

There's so many VEVENTs in that ical feed you provided that I'm not sure which one you're having trouble with. Could you tell me the title of the recurring event that you're having issues with? Also, I'm assuming that you meant "first Wednesday of the month"?

Your second problem, with the event not being deleted on your Drupal site, is a limitation with Feeds. Feeds doesn't delete nodes when it does imports. You can apparently configure Feeds to delete "expired" nodes, but I've never had it do that before. I'd suggest looking that up in the Feeds documentation, or on Google.

Tsjippy’s picture

one title is "smallgroup"

thank you!

MegaChriz’s picture

Feeds doesn't delete nodes when it does imports

The dev version of Feeds does support deleting nodes on imports. Condition is that the item was imported before with Feeds but no longer exists in a next import.
Note that if you want to use the dev version of Feeds, you need to apply the patch from #2206109: Repeat rule no longer being imported. in order to for importing repeat rules to keep working. This is due to an API change in Feeds. The patch should be backwards compatible with Feeds 7.x-2.0-alpha8.

Michael_Lessard_micles.biz’s picture

It is not just recurring/repeating events, some events that last more than one day are not shown on my Google Calendar/Agenda.

One-time events are shown.

Why / Cause : I am at a lost. Some events that last many days are shown, others are not. Some shown use the 0:00 start time, while others have a specific start time. So I don't know.

For example, I currently (Dec. 21, 2015) have 3 events that last 3 to 5 days, but they are invisible as you can see on the Google calendar here:
https://calendar.google.com/calendar/embed?src=2vj0t4k1dg19no1vtdtbdpgco...

Yet, if you move forward a month or two, you'll see some events that last many days.

coredumperror’s picture

Please provide the .ics file of your iCal feed that's feeing your Google Calendar. That's the only way I can begin to diagnose this problem. To download it, change the "webcal://" in the URL to "http://", and save it. Then attach it to this issue.

Michael_Lessard_micles.biz’s picture

Thank you @coredumperror (awesome name btw),

Unfortunately or fortunately, I can't reproduce the issue. Future events that last many days currently show up fine in the Google Agenda for March and May 2016, etc. Note that my ical feed only shows upcoming events (passed events are not included).

After double checking, only two events near the end of December were not shown. My best theory is that my feed auto-excluded events where the starting date was passed. Which would be something to fix in my View feed and not with this module. Therefore, all in all, the ical feed seems to be imported fine in Google Agenda.

If you wish to double-check, here is the live D7 ical generated.
webcal://media.reseauforum.org/calendrier/ical/*/calendar.ics
The actual site calendar URL (media.reseauforum.org/calendrier) shows the Google Agenda link, etc.

coredumperror’s picture

Status: Active » Closed (works as designed)

Glad to hear that your problems subsided!

joseph.olstad’s picture

Hi @coredumperror , comment #1 helped me out , thanks !