I need a way to import some items from a CSV with a repeating date, so I found this module. But when I try and import it doesn't do the repeat, and I get these errors in the log. I know there have been a few issues for this, but they are all marked as fixed. I assume I'm just importing something incorrectly.

These are the modules I'm using:
Feeds 7.x-2.0-beta3
Date 7.x-2.9
Date iCal 7.x-3.9+8-dev
iCalcreator 2.20.2

Here are my mappings:

Date Opportunity Starts is mapped to field_date_of_opportunity:start
Date Opportunity Closes is mapped to field_date_of_opportunity:end
Date Repeat is mapped to field_date_of_opportunity:rrule

And my CSV

GUID Date Opportunity Starts Date Opportunity Closes Date Repeat
12 02/05/2015 02/15/2015 RRULE:FREQ=YEARLY;INTERVAL=1;BYMONTH=4;BYMONTHDAY=15;UNTIL=20170323T045959Z;WKST=SU

The errors I'm getting are

Warning: array_combine(): Both parameters should have an equal number of elements in date_ical_feeds_set_rrule() (line 274 of /sites/all/modules/date_ical/date_ical.module).
Notice: Undefined offset: 1 in _date_ical_parse_repeat_rule() (line 138 of /sites/all/modules/date_ical/date_ical.utils.inc).

Comments

chrislabeard created an issue. See original summary.

chrislabeard’s picture

Issue summary: View changes
chrislabeard’s picture

Status: Active » Closed (works as designed)

Alright well after more digging through the issues I found the solution. The array_combine is expecting some '|' in it. So following advice from another issue. I just appended those to my repeat.

[date_repeat]|||

And it works now.

coredumperror’s picture

Glad to hear that you solved your problem!