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: “Filte...
Power Automate
Suggested Answer

Power Automate: “Filter array” fails during automatic runs but succeeds when resubmitted

(1) ShareShare
ReportReport
Posted on by 98

Problem description

 
My flow reads Excel data where the date fields are stored as Excel serial numbers, e.g.:
 
"Startzeit": "45930.706412037"
 
I’m converting these values to real dates using an expression inside a Filter array action.

The expression already includes additional logic (trim(), replace(), match(), etc.) to catch:
 

  • decimal commas (, instead of .)

  • leading/trailing spaces

  • empty values

  • values without - or T (Excel numeric dates)


  •  
 
 

The strange behavior

 

  • When the flow runs automatically (triggered), or when it runs under the Primary Owner’s context, the Filter array action fails

    (e.g. with errors like: The template language function 'int' was invoked with a parameter that is not valid…)

  • But if I open the failed run and click Resubmit, the exact same step works perfectly.


  •  
 
So the flow fails automatically, but works when resubmitted manually.
 
 

What I have already checked

 

  • Both variables (Verfassen and Verfassen_1) produce valid yyyy-MM-dd dates.

  • The Filter array expression has already been updated to a fully robust version (regex, trim, replace, split, etc.).

  • Changing the UI language of Power Automate (EN/DE) has no effect.

  • The resubmitted run uses the same input data, but succeeds anyway.


  •  
 
 

What I suspect

 
This might be related to:
 

✔️ Different user connections (Primary Owner vs. me)

 
Maybe the flow uses different connectors or permissions depending on who runs it.
 

✔️ Different expression evaluation between automatic run and resubmit

 
Resubmit executes the current version of the expression, even for an old run.
 

✔️ Different handling of utcNow() between original run and resubmit

 
Dates like yesterday or start of week are recalculated when resubmitting.
 

✔️ Cached old expression used in original run

 
While resubmit uses the updated one.
 
 

My question to the community

 
👉 Why does Filter array fail during normal (automatic) execution, but succeed when the same run is resubmitted manually?

👉 Has anyone experienced similar issues with:
 

  • connections running under different user contexts,

  • Excel date conversions,

  • expression caching,

  • or Filter array behaving differently between run types?


  •  
 
Any ideas or insights would be greatly appreciated.

Thanks in advance!
Categories:
I have the same question (0)
  • Suggested answer
    Expiscornovus Profile Picture
    33,891 Most Valuable Professional on at
     
    I have a question for you. Aren't you using the ISO 8601 format in your List rows present in table action? 
     
    That might make the flow setup a bit easier (this way you don't have to convert the number to a ISO 8601 format yourself). You can select that option in your List rows present in table action.




     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • CU05080900-1 Profile Picture
    98 on at
    Good Afternoon. Yes I am using ISO 8601 and in the Table the column also is formate withe Date. If I run the flow the date will translate correct.
  • Expiscornovus Profile Picture
    33,891 Most Valuable Professional on at
     
    Ok, good to know. Can you share the configuration of your flow? 
     
    Would be good to see if we can reproduce your issue and find the root cause.
     
    It would also be good to see the expressions as well.


     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
     
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard