web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Filter ...
Power Automate
Suggested Answer

Power Automate Filter Array error to get yesterday's records

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I am trying to automate a daily production report email using Power Automate.

 

My setup:

 

• Operators submit production details through Microsoft Forms (QR code)

• Responses are stored automatically in an Excel file (OneDrive)

• Power Automate flow runs daily and should send yesterday’s production report by email

 

Flow structure:

 

  1.  

    Recurrence (Daily)


  2.  

    List rows present in table (Excel)


  3.  

    Filter Array – filter yesterday’s records


  4.  

    Create HTML Table


  5.  

    Send Email



  6.  
 

The problem is that the Date / Start time column from Excel sometimes appears as an Excel serial number like:

 
45747.4894560185
or sometimes like:
 
3/16/2026 10:12:02 AM
Because of this, the Filter Array step fails or returns empty results.
 

Example error:

In function 'formatDateTime', the value provided for date time string '45747.4894560185' was not valid. The datetime string must match ISO 8601 format.
 
 

My goal:

Filter only yesterday's production entries and include them in the email report.

Example expression I tried:

 
@equals(
formatDateTime(item()?['Start time'],'yyyy-MM-dd'),
formatDateTime(addDays(convertTimeZone(utcNow(),'UTC','India Standard Time'),-1),'yyyy-MM-dd')
)
 

But it fails when the value is stored as an Excel serial number.

Question:

What is the best way to reliably filter yesterday’s rows when the Excel column contains serial datetime values from Microsoft Forms?

Any guidance would be appreciated.

Thank you.

Categories:
I have the same question (0)
  • Suggested answer
    JakubPitner Profile Picture
    6 on at
    Hi,
    Excel connector often returns data as serial numbers instead of ISO string. To solve this you can try:
     
    1. Configure the List Rows and under advanced options set DateTime format to ISO 8601
    2. Check if excel column is formatted DateTime
    3. If you still get the same error, you might need formula for conversion. I would recommend this formula:
    Left side: formatDateTime(item()?['Start Time'], 'yyyy-MM-dd')
    Operator: is equals to
    Right side: addDays(convertFromUtc(utcNow(), 'India Standard Time'), -1, 'yyyy-MM-dd')
     
    Let me know if this solves the error.
     
    Best Regards,
    Jakub
    Snímek obrazovky 2026-03-16 075836.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 815

#3
Haque Profile Picture

Haque 630

Last 30 days Overall leaderboard