web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / An error was encounter...
Power Automate
Unanswered

An error was encountered when parsing a DateTime value in the XML.

(0) ShareShare
ReportReport
Posted on by 39

I'm hoping someone can help me with an issue.

 

I'm running a simple RSS feed that will take posts and put them into a Teams channel.  I seem to have an issue however with parsing DateTime.  Error is below:

 

Failed to read requested Feed information. Details: Error in line 70 position 91. An error was encountered when parsing a DateTime value in the XML.

 

Looking at the feed itself the offending line appears to be this:

 

<pubDate><time datetime="2021-04-26T23:00:00Z" class="datetime">27 Apr 2021 - 09:00 am</time>

 

Any help would be appreciated.

Categories:
  • jinivthakkar Profile Picture
    4,187 on at

    @lfk73 please try this

    jinivthakkar_0-1623073500831.png

    Output:

    jinivthakkar_1-1623073599163.png

    xpath(xml(outputs('Compose_5')),'string(//@datetime)') /*get datetime value*/
    
    xpath(xml(outputs('Compose_5')),'string(/pubDate)') /*get node value*/

    Hope this helps.

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • lfk73 Profile Picture
    39 on at

    Thanks for your reply however I am struggling to figure out how I apply this to my basic flow.  I cant export the flow as I don't have a premuim account but have attached a screen shot.

     

    In short I trigger the flow to read the RSS feed and for every entry in the feed it will post to a MS Teams channel.

     

    Also I have a 3 or 4 other flows each with the same date formatting issue so this could help solve a number of issues I am having right now.  How do I work the suggest solution into this flow? 

     

    Flow.png

  • Ellis Karim Profile Picture
    12,379 Super User 2026 Season 2 on at

    The date for the RSS feed needs to be in the format yyyy-MM-dd (I don't need time). The expression below returns only the current date:

     

     

    formatDateTime(utcNow(),'yyyy-MM-dd')

     

     

    The since field below will return news items published since 2021-07-02:

    ekarim2020_1-1626979146355.png

    Hope this helps.


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard