Fix Power Automate Create Item Invalid Date and Time Errors
Question details
The user needs to fix an error where a Power Automate flow fails due to an invalid date or time value when transferring responses from Microsoft Forms to a SharePoint list.

- Product
- Power Automate
- Device & OS
- not provided
- Scenario
- Automating the process of saving Microsoft Forms responses into a SharePoint list using a Power Automate flow.
- Observed behavior
- The Power Automate flow fails to create the list item, returning an invalid date and time error because of mismatched formats or empty date fields.
Ensure you have the necessary permissions to edit the affected Power Automate flow and access the target SharePoint site settings.
Validate Formats and Handle Empty Values Using Expressions
Configure your flow to process empty date responses accurately and verify that SharePoint's regional settings match the incoming data format.
When a Microsoft Form submits a blank date field, Power Automate often passes an empty string instead of a true null value. Because SharePoint requires a valid date format, this empty string triggers an invalid date and time error. Applying a simple expression can intercept empty strings and convert them to null values acceptable by SharePoint.
Navigate to Power Automate, go to 'My flows', and select the failing flow to open the editor.
Find the 'Create item' step in your flow where the Microsoft Forms responses are mapped to the SharePoint list columns.
Click on the problematic date field, remove the existing dynamic content, and switch to the 'Expression' tab. Enter an expression such as if(empty(outputs('Get_response_details')?['body/Date']), null, outputs('Get_response_details')?['body/Date']) to prevent the error.
Go to your SharePoint site, navigate to Site Settings > Regional settings, and ensure the date format aligns with the data structure generated by Microsoft Forms.

Manage Data Effectively with WPS Spreadsheet
If you need a reliable alternative for organizing exported form data or managing complex lists without relying on automated flows, WPS Office is an excellent choice. It is lightweight, completely free, and features a familiar interface to keep your workflow seamless.

Frequently Asked Questions
Why does Power Automate throw an invalid date error when a form field is skipped?
When a respondent skips a date question in Microsoft Forms, Power Automate receives an empty string instead of a null value. SharePoint attempts to read this empty string as a date, fails, and triggers the invalid date error.
How can I format a date in Power Automate before saving it to SharePoint?
You can use the formatDateTime() expression in your flow to convert the incoming date string into an ISO 8601 format ('yyyy-MM-dd') which SharePoint accepts natively.
Can regional settings cause date and time errors in SharePoint lists?
Yes. If your SharePoint regional settings expect dates in DD/MM/YYYY format but the data from Power Automate is supplied as MM/DD/YYYY, SharePoint will reject it as invalid for certain days of the month.




