Others

Fix Power Automate int() Errors When Converting Excel Dates

Aamir Naveed AkramAamir Naveed Akram Nov 13, 2026 870 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Inspect the failed iteration

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.

2
Expose the value before conversion

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.

3
Check the source cells

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.

4
Match the expression to the returned format

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().

A string must still contain a valid number: Converting a value to a string does not make arbitrary text valid for int(). A numeric string such as '45292' can be converted, but a formatted date string, whitespace, or other nonnumeric text requires different handling. Serial values containing time fractions also need handling appropriate to whether you want to preserve the time.
Free Microsoft Office alternative

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.

Review source date columns for blanks and inconsistent cell values.Open and edit Microsoft Excel .xlsx and .xls files.Use familiar spreadsheet controls to inspect date and number formatting.Work with Excel workbooks without replacing your entire document workflow.
microsoft office alternative - wps office

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.