Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Text based date arriving in 2 formats is breaking a flow... (2022/01/13 & 13-01-2022)

(0) ShareShare
ReportReport
Posted on by 116

Hi, i've inherited a flow that's suddenly started to fail. Some other system is adding text dates to a SP list

 

The_blue_0-1650441137498.png

 

Currently there's a set variable: 

split(items('Problem_Date')?['Effective_x0020_Start_x0020_Date'], '-')
 
Followed by a compose:
formatDateTime(concat(variables('DS')[0], '-', variables('DS')[1], '-', variables('DS')[2]), 'yyyy-MM-dd')
 
This is failing out on the dates with slashes. 
 
How can i get the output of the compose to be correct for both variants? 

 

  • v-xiaochen-msft Profile Picture
    on at
    Re: Text based date arriving in 2 formats is breaking a flow... (2022/01/13 & 13-01-2022)

    Hi @The_blue ,

     

    1\ Is the first date April 9th or September 4th?

    2\ Do you have dates in other formats?

     

    Best Regards,

    Wearsky

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow