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 / String/date in flow 'c...
Power Automate
Unanswered

String/date in flow 'create item'

(0) ShareShare
ReportReport
Posted on by

I am creating a flow that links a Microsoft form to a Microsoft list. I have a question on the form that has a date answer. My form has 4 different branches depending on what the applicant presses. If the applicant goes down the branch that includes the date question then the flow works, but if they go down the other 3 branches then the flow fails. Screenshot (37).png 

Categories:
I have the same question (0)
  • Codesidian Profile Picture
    33 on at

    Your list item has date field that you're trying to populate with what's coming from the form, however, looks like when the date field on the form isn't populated a blank string is passed. So it can't parse "" as a date. 

    I've recreated the problem here:

    Codesidian_0-1702389615826.png

     

    by just passing an empty string manually to a date field:

    Codesidian_2-1702389685662.png

    There's a couple posts on getting around this, here's an example. However, I couldn't get these to work. You may have better luck.

     

    So failing that, you can try this:

    Update the date field after you know it's valid. 

    Omit the date field when creating the list item:

    Codesidian_4-1702391561403.png

     

    Then once the item has been created:

    Codesidian_5-1702391638879.png

    Codesidian_6-1702391676142.png

    Codesidian_7-1702391684254.png

     

    then add the date using the id from the create item:

    Codesidian_8-1702391717794.png

    Running this with "bad_date" empty as "test1": 

    Codesidian_9-1702392061367.png

     

    Then running it again with "bad_date" populated with "12-12-2023" as "test2":

    Codesidian_10-1702392202856.png

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard