Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: RSS feed errors when using XML option

Status Resolved
Add-on / Version DataGrab 4.0.2
Severity
EE Version 6.3.4

Eric Nelson

Jun 22, 2022

I keep getting the error “Cannot parse the XML from file/url” when trying to import an RSS feed as XML.

This happens whether I use the /rss/channel/item or leave it blank.

I am guessing its specific to the import URL’s RSS formatting but not sure what, it looks basic. (I X’d out the details)

<rss xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel>
<title>XXX</title>
<link>https://www.xxx.com</link>
<description>XXXXXXX</description>
<pubDate>Wed, 22 Jun 2022 13:38:46 GMT</pubDate>
<lastBuildDate>Wed, 22 Jun 2022 13:38:46 GMT</lastBuildDate>
<item>
<title>xxx</title>
<p>etc.</p>
</item>
</channel>
</rss>

 

#1

BoldMinded (Brian)

That error message is b/c it can’t find the file, not because the file format is incorrect. Make sure the full path is valid.

#2

BoldMinded (Brian)

Actually never mind that is a parse error. Try removing xmlns:media=”http://search.yahoo.com/mrss/” version=”2.0” so it’s just <rss>

#3

BoldMinded (Brian)

Also, did you try to use the simplified example above as an actual import file?

#4

Eric Nelson

Its a URL provided by a news resource so I can’t change it there. But I can try to save the file and edit that out and see if it imports that way. But I really need it to be able to work with what they provide because they won’t alter their system just for us. 😊

#5

Eric Nelson

It works fine from a file, but not with URL

#6

Eric Nelson

Comment has been marked private.

#7

BoldMinded (Brian)

I wouldn’t say you can’t use the old RSS import. Deprecated just means I won’t be putting any additional effort into supporting it or making changes to it. If it works for you then go ahead and use it.

I’ll try to create an import of this feed locally in xml and see if I can tell what the real issue is. Did you check your DataGrab.log file noted in the docs? It might reveal an error message.

#8

BoldMinded (Brian)

On what screen exactly do you get that error message? Can you share screenshots or a video?

#9

BoldMinded (Brian)

Comment has been marked private.

#10

Eric Nelson

Comment has been marked private.

#11

BoldMinded (Brian)

Edit ticket and upload images, or put things on Dropbox or similar service and link to the file in a private comment.

#12

Eric Nelson

Comment has been marked private.

#13

BoldMinded (Brian)

In the video you didn’t enter the XML Path value…

#14

Eric Nelson

Comment has been marked private.

#15

BoldMinded (Brian)

I had https for the feed URL. Have you tried that?

#16

Eric Nelson

I didn’t even notice that was http.. UGH!!! That was it! Thanks, sometimes its the smallest details!

#17

BoldMinded (Brian)

😊 Glad it was an easy fix!

Login to reply