
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.
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:
by just passing an empty string manually to a date field:
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:
Then once the item has been created:
then add the date using the id from the create item:
Running this with "bad_date" empty as "test1":
Then running it again with "bad_date" populated with "12-12-2023" as "test2":