Experienced programmer. Fairly new to Drupal. I seem to be missing something basic.
I've been banging on this for a couple of hours and can't seem to get it to parse anything.
On Win XP, running Xampp, Drupal 6.13. Have feedapi.6.x.19.beta2, parser_csv 6.x-1.0-alpha2, feedapi_mapper 6.x-1.0.
Followed the steps in Create a feed of iCal events using Date, FeedAPI, and iCal parser and substituted CSV Parser where appropriate. I created a new content type for the feed I wanted, then created content of that type.
My CSV file is of the format:
title;date;body
"T4 Practice";"10/23/09-23:15";"Practice"
"T4 Game";"10/30/09-22:00";"vs Nordiques"I've attached a screenshot showing the feed item example it gives me. It's completely ignoring my field names at the top. It looks like it's parsing an HTML file from somewhere, because it has doctype info in one of the fields.
When I go ahead and Refresh, I'm told it has created 50 items from a 12-line file. Apparently it's taking each field and turning it into a node.
I've tried several variations. With quotes and without. Comma vs semicolon delimiter. With field names at the front and without. Various formats for the date field.
I think if I had some known-good example CSV files that show how to import a schedule into date nodes, then I could tweak one of those to my needs. Partly because I need to see what format the date/time needs to be in, also. Albeit, I don't think the date format is what is causing the problem right now.
I'm sure I've overlooked something obvious. I hope someone can point me at it.
Thanks,
Drake
| Comment | File | Size | Author |
|---|---|---|---|
| CSVParserFeedExample.jpg | 24.67 KB | Mighty |
Comments
Comment #1
Mighty commentedFYI, I found a workaround.
When the source was a "File" apparently it wasn't loading. I did not see an error message. Just the odd Feed Example.
Switching it to "URL" works. It now loads. I put field descriptors on the first line and I can map them.
Obviously, this module needs to produce a useful error message when it can't read the source.