Fix Power Automate int() Errors When Converting Excel Dates
Question details
The user needs to convert Excel date values into dates for SharePoint list items without Power Automate int() failures.
- Product
- Microsoft Power Automate, Microsoft Excel, and SharePoint
- Device & OS
- not provided
- Scenario
- A flow reads Excel table rows and uses addDays with an Excel serial date to populate a SharePoint date column.
- Observed behavior
- Only some SharePoint list items are created because int() fails on one or more values returned from the Excel date column.
Open a failed flow run and identify the Excel row and date value passed to int(). Check whether the Excel connector returns a numeric serial date, an ISO 8601 date string, a blank value, or other text.
Inspect the connector output and standardize the Excel date values
Use this first to determine why particular rows fail and whether serial-date conversion is appropriate.
In Power Automate, open your flow, select a failed entry under Run history, and expand the failed action inside Apply to each. Inspect the Excel action's outputs and locate the exact Date_column value for that row.
Edit the flow and add a Compose action inside Apply to each, before the date conversion. In the Expression tab, enter item()?['Date_column'], replacing Date_column with the actual column name. Run a test and inspect the Compose output.
Open the source workbook in Excel and locate the affected rows in the table. Temporarily display the date column using Home > Number Format > General to distinguish numeric date values from text. Correct text dates and invalid entries; changing the display format alone does not convert text into a numeric date.
For a valid whole-number Excel serial date using the usual 1900 date system, use addDays('1899-12-30', int(item()?['Date_column']), 'yyyy-MM-dd'). If the connector instead returns a valid ISO 8601 date string, use formatDateTime(item()?['Date_column'], 'yyyy-MM-dd') rather than int().
Handle blank dates before calling int()
Use a separate Condition when the source allows empty date cells, so those rows do not enter the serial-date conversion action.
Review Excel Date Columns with WPS Spreadsheet
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Excel files, making migration straightforward. Use WPS Spreadsheet to review source date cells before your flow runs; Power Automate expressions and connector settings must still be fixed in Power Automate.

Frequently Asked Questions
Why do some Excel rows work while others fail at int()?
The rows may contain different underlying values, such as numeric serial dates, blanks, formatted date text, or serial values with time fractions. Open the failed run in Power Automate's Run history and compare the actual connector output for a failing row with a successful row.
Does formatting the Excel column as Date fix the conversion?
Not necessarily. Home > Number Format changes how a cell is displayed, but text can remain text. Inspect the connector output and correct the underlying values before using int().
What if the Excel connector returns an ISO date instead of a serial number?
Do not pass that value to int(). For a valid ISO date string, use formatDateTime(item()?['Date_column'], 'yyyy-MM-dd'). If your Excel action exposes a DateTime Format setting, check it in the action's advanced parameters and keep the conversion expression consistent with the selected format.
Can I leave a SharePoint date field empty when the Excel cell is blank?
Yes, if the SharePoint column is optional. Add a Condition before conversion and omit the date field from Create item in the blank-value branch. If the SharePoint field is required, correct the source date or route the row for review.
Can WPS Office fix the Power Automate expression?
No. WPS Spreadsheet can help you inspect and edit the source Excel workbook, but you must change the Condition, conversion expression, and connector settings in the Power Automate flow editor.




