cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ianroseman
Level: Powered On

Unable to use RSS Feed as Trigger - Same Error on First Step in Trigger

Any Flow with starts with the RSS Trigger When a feed item is published" fails on the trigger with the below error. Help!

 

  • Failed to read requested Feed information. Details: 'Text' is an invalid XmlNodeType. Line 2, position 307. clientRequestId: 0d09a767-c63e-4362-a007-79e70716ef1c

5 REPLIES 5
Community Support Team
Community Support Team

Re: Unable to use RSS Feed as Trigger - Same Error on First Step in Trigger

Hi @ianroseman,

 

Would you please share the flow configuration i na screenshot?

 

Just from the error message, the error should be related with file type not match.

" 'Text' is an invalid XmlNodeType. "

The RSS feed only has the RSS feed URL as input, so I don't think the fail is caused by RSS trigger (if it has been well configured).

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ianroseman
Level: Powered On

Re: Unable to use RSS Feed as Trigger - Same Error on First Step in Trigger

Here is a bit more information to diagnose issue.  Seems to only happen with the Associated Press (AP) RSS feeds

 

1. "When a feed item is published" RSS Trigger

INPUTS - The RSS feed URL

http://hosted.ap.org/lineups/BUSINESSHEADS.rss

 

2. Error: BadRequest

OUTPUTS - Status code 400

Body

{
"status": 400,
"message": "Failed to read requested feed because the content returned is not valid XML format. Details: The element with name 'HTML' and namespace '' is not an allowed feed format.\r\nclientRequestId: 145b2e2f-440f-45c3-9bfc-20bb3d5fe020",
"source": "rssconnectionprovider-westus.tip0-westus.p.azurewebsites.net"
}

Error Details:
Failed to read requested feed because the content returned is not valid XML format. Details: The element with name 'HTML' and namespace '' is not an allowed feed format. clientRequestId: 145b2e2f-440f-45c3-9bfc-20bb3d5fe020

 

 

******

Headers (if required for debugging):

{
"Pragma": "no-cache",
"x-ms-request-id": "145b2e2f-440f-45c3-9bfc-20bb3d5fe020",
"X-Content-Type-Options": "nosniff",
"Timing-Allow-Origin": "*",
"Cache-Control": "no-cache",
"Date": "Sun, 20 Aug 2017 14:24:57 GMT",
"Set-Cookie": "ARRAffinity=1c9e178b01a7edf5c61dddca8a1b25611827b36b00452aca3fbb81b8878998b1;Path=/;HttpOnly;Domain=rssconnectionprovider-westus.tip0-westus.p.azurewebsites.net",
"Server": "Microsoft-IIS/8.0,Microsoft-HTTPAPI/2.0",
"X-AspNet-Version": "4.0.30319",
"X-Powered-By": "ASP.NET",
"Content-Length": "342",
"Content-Type": "application/json; charset=utf-8",
"Expires": "-1"
}

***

Issue also occurs with RSS Feed URL: http://hosted.ap.org/lineups/TECHHEADS.rss

ianroseman
Level: Powered On

Re: Unable to use RSS Feed as Trigger - Same Error on First Step in Trigger

Here's a different example, but I'll give more details.  Just to recap, for the Associated Press (AP) RSS feeds,  Using the below RSS URL, you should be able to easily reproduce.  I can also reproduce with other AP News RSS feeds.

 

INPUTS

1. TRIGGER - "When a feed Item is published"

The RSS feed URL:  http://hosted.ap.org/lineups/BUSINESSHEADS.rss

 

OUTPUTS

2. ERROR: BadRequest.

 

  "status": 400,
  "message": "Failed to read requested feed because the content returned is not valid XML format. Details: The element with name 'HTML' and namespace '' is not an allowed feed format.\r\nclientRequestId: 3f362344-2fd3-4f59-b872-ad0df82f90a3",
  "source": "rssconnectionprovider-westus.tip0-westus.p.azurewebsites.net"

 

ONLY ONE STEP, initial trigger with the RSS URL provided above.  That's the entirety of the workflow.

jewelden
Level: Powered On

Re: Unable to use RSS Feed as Trigger - Same Error on First Step in Trigger

When I look at a network trace when requesting that RSS URL using a popular RSS reader, it looks like that AP RSS link is redirecting to an HTML page via a 302 Moved Temporarily response instead of returning RSS XML in the response.  That is definitely not compliant with the RSS spec.

 

It might require specific user agents to get the RSS XML feed or something else about the request, but that is not compliant with the RSS spec.

 

Here is a terse summary copy of a network trace when using rss feed reader chrome extension:

 

HTTP Request:

GET http://hosted.ap.org/lineups/BUSINESSHEADS.rss

 

HTTP Response:
302 Redirect to http://hosted.ap.org/specials/bluepage.html

 

Even though the "Accept" request header has a value of "*/*" that means accept all content types, it looks like AP is deciding that it's a browser so it redirects to a browser-friendly HTML page,

    http://hosted.ap.org/specials/bluepage.html

 

I will send a mail over to the team that owns the RssFeedReader connector and see what they say about this one.

It did work using Digg online RSS reader service for me, so Digg must be doing something to ensure it gets RSS XML instead of it thinking it's a browser.

 

jewelden
Level: Powered On

Re: Unable to use RSS Feed as Trigger - Same Error on First Step in Trigger

 

Based on analysis from the feed reader connector team, the .rss URL that you provided is a collection of RSS feeds, customized based on the state/sources you select in the browser, which get saved in the browser cookie.  For example

Cookie: SITE=WABEJ; SECTION=HOME

 

Anyways, you can make this work by selecting the state you want by adding it to the query string :

http://hosted.ap.org/lineups/BUSINESSHEADS.rss?SITE=WABEJ&SECTION=HOME

 

To figure out the query string, you can also interactively click on the state and source you are interested in a browser, which will redirect you to a URL like this:

    http://hosted.ap.org/dynamic/fronts/HOME?SITE=NWCN&SECTION=HOME

 

This may work, or else replace everything before the ? such as this:

    http://hosted.ap.org/lineups/BUSINESSHEADS.rss?SITE=NWCN&SECTION=HOME

 

HTH

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 300 members 5,498 guests
Please welcome our newest community members: