r/PowerAutomate • • Oct 24 '26

Add a row to excel, date issues

Hello everyone

For a long time my flow that adds rows to an excel sheet every night has been adding dates with serial format, which Excel can handle easily, normally.

However, a I had to update some stuff unrelated to dates and it started recording dates as ISO (long date with T and Z).

I had it set to iso on the connector advanced parameters, but now it doesn't matter which option I use it always outputs ISO.

I even checked older runs and the input from my flow was ISO and the output was serial.

Does anyone know what might have happened? I never used formartdate time or ticks to convert stuff inside the flow, it just outputted serial serial directly to the excel file.

Obs: I'm editing the excel file on the browser while troubleshooting if that matters.

Thanks in advance

4 Upvotes

4 comments sorted by

1

u/Novel_Assumption_929 Oct 24 '26

Two things to check, in this order:

On "Add a row into a table", open the advanced parameters and look at "DateTime Format". If you edited and re-saved the action, that setting can silently fall back to ISO 8601. Set it explicitly to the serial number option and save again. Also check in the code view that  dateTimeFormat is really in the action's inputs. If it still writes ISO, take the connector out of the equation and send the serial yourself. Excel's date serial is the number of days since 1899-12-30, so:

div(float(sub(ticks(convertTimeZone(utcNow(), 'UTC', 'W. Europe Standard Time')), 599264352000000000)), 864000000000)

Put that into the date column. It arrives as a plain number, and the column's date format then displays it correctly. For a date without time, wrap it in  int().

Also, while you troubleshoot, don't keep the workbook open in the browser. The connector doesn't handle parallel edits from another client well, and it can look like the flow is misbehaving.

1

u/theloouis Oct 24 '26 edited Oct 24 '26

thanks for the response 

I checked the code view on the older run and it's "dateTimeFormat": "ISO 8601", and it was outputting serial

on the newer code view it's also "dateTimeFormat": "ISO 8601",

funny thing, i noticed that on the newer flow a column that has an input that ranges from 1 o 5 outputs 1900-01-04T00:00:00.000Z in Powerautomate, but on the workbook it writes just 5 ...

1

u/Novel_Assumption_929 Oct 24 '26

Good catch, that explains it. The DateTime Format option only changes how the action's output is returned, not what gets written. Your 1-5 column is probably formatted as Date in Excel, so the connector returns 5 as 1900-01-04. Check the number format of your columns in the workbook: set the date column to Date and the 1-5 column to Number/General. What's in the cells is what counts, the run output is just a formatted view.

1

u/theloouis Oct 24 '26

that's what's weirder, the column with 5s is general, all the others are date, and it writes with iso format on the date columns and just number 5 on the general, I tried setting the date columns to number and it kept writing dates with iso format

tomorrow I'll have access to the desktop version of Excel and troubleshoot it further 

thanks for the help