Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Power Automate Flow Filter Array step stopped working today

(0) ShareShare
ReportReport
Posted on by 2
I have had a flow running for the last 10 months with no issues, the same flow worked yesterday, has not been modified but failed today with error: 
 
The execution of template action 'FilterArrayTable' failed: The evaluation of 'query' action 'where' expression '@and(equals(addDays('1899-12-30', int(item()?['Date Raised']), 'dd/MM/yyyy'), formatDateTime(utcNow(), 'dd/MM/yyyy')),equals(item()?['Time Raised'],'AM'))' failed: 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.
 
The flow connects to an Excel table and the Date Raised column is populated with the date and is correctly formatted.  What could have changed to stop my filter expression working suddenly?
Categories:
  • PR-25101134-0 Profile Picture
    PR-25101134-0 2 on at
    Power Automate Flow Filter Array step stopped working today
    Update - 10:00 - Ok so this is a very strange one.  I edited my flow, removed and recreated the Filter Array step with the exact same expression and it now works!  At a total loss as to why it stopped working but recreating the step fixed it, can you shed any light on why this happened?


    Reply - 08:30 - Thanks for the quick response and I will check out the links. 
     
    Here is the screenshot of the flow, yes I am using List rows present in a table and I have pagination turned on and set to 5000.  I am getting the output from that step ok.  The failure occurs at the filter array step now and the expression has not been changed since it went live 10months ago.  The flow returns the rows in the Excel table and the Filter Array finds the rows where the Date Raised = today's date (in UK format - dd/MM/yyyy) and the Time Raised = AM, with the expression @and(equals(addDays('1899-12-30', int(item()?['Date Raised']), 'dd/MM/yyyy'), formatDateTime(utcNow(), 'dd/MM/yyyy')),equals(item()?['Time Raised'],'AM'))
     
     
    The flow fails at the Filter Array step as I've explained 
     
     
  • creativeopinion Profile Picture
    creativeopinion 10,064 on at
    Power Automate Flow Filter Array step stopped working today
    @PR-25101134-0 It's hard to offer any recommendations without seeing your full flow and the logic behind it. If you are using the new designer, toggle it off and click each action to expand it. Upload a screenshot of your flow in edit mode.
     
    If your flow is using the List Rows Present in a table action and you have more than 256 rows in your table you'll need to ensure you have toggled on pagination. By default, this action will only return a max of 256 rows.
     
    In the meantime, you might be interested in these YT Tutorials:
     

    In this video tutorial I’ll show you 3 practical ways to use the Filter Array action and how to use it properly.
    1️⃣ Cross-Referencing Data
    2️⃣ Filtering by Key
    3️⃣ Substring Matching

    Did you know that the Condition action has a limit of 10 conditions? Although it might look like the Filter Array action can only accept one condition—this is not true. By using the advanced mode you can enter multiple conditions into a Filter Array action with an expression.

    IN THIS VIDEO:
    ✓ 3 Ways to Use the Filter Array Action
    ✓ How to use the Scope Action to Group Actions
    ✓ How to Check the Number of Items returned from a Filter Array Action
    ✓ How to Cross-Reference Data in Excel with a SharePoint List
    ✓ How the Filter Array Action Works
    ✓ How to Access the Dynamic Content from a Filter Array Action
    ✓ How to Filter Items by a Key
    ✓ How to Filter Items by Matching a Substring
    ✓ How to Use Multiple Conditions in a Filter Array Action

    ---

    In this tutorial—I’m going to show you a quicker way to get the dynamic content from your Filter Array action—and it doesn’t require writing an expression.

    IN THIS VIDEO:
    ✓ How to Loop Through Filter Array Results in Power Automate
    ✓ Using Apply to Each with Filtered Arrays
    ✓ The Easiest Way to Access Dynamic Content from Filter Array
    ✓ Fixing Nested Apply to Each Actions
    ✓ When to Use Value vs. Body Dynamic Content
    ✓ Simplifying Power Automate Flows with Filter Array
    ✓ Troubleshooting Filter Array and Apply to Each Issues

    ---

    In this video tutorial I’ll go over how to avoid these common mistakes when using the Apply to Each action in a Power Automate flow:
    1️⃣ Looping through a Single Item
    2️⃣ Creating Unnecessary Nested Loops
    3️⃣ Looping through an Unfiltered Array

    At the end of the video I share a few helpful insights when it comes to using the Apply to Each action in your flow.

    IN THIS VIDEO:
    ✓ How to avoid the Apply to Each action with a single item array
    ✓ How to use the item() function to access dynamic content in an array
    ✓ How to prevent unnecessary nested Apply to Each action loops
    ✓ How to use the Select action
    ✓ How to convert an array to a string with the Select action
    ✓ How to use the Filter Query field
    ✓ How to count the number of items in an array
    ✓ How to use a condition control
    ✓ How to use the concurrency control
    ✓ How to set a top count
    ✓ How to use Compose actions for troubleshooting
     
     
     
    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard