Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Flow - keeps failing - but still runs

(0) ShareShare
ReportReport
Posted on by 4

Can any one help (i am very new to Flow)- i have a flow that keeps failing, however the flow Runs as expected and the emails are sent. So i guess it is a false positive.  

 

The flow is very simple - it checks the date in a column and if 30 days before the Renewal date or expiry date it will send a email to the Group. 

 

The below is the Error message i am getting - However the Flow Works

ActionFailed. An action failed. No dependent actions succeeded.

 

Unable to process template language expressions for action 'Check_product_expiry_date' at line '1' and column '2901': 'The template language function 'formatDateTime' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#formatdatetime for usage details.'.

 

Steps taken to Resolve and Flow Test  complete Successfully   - However the Flow DOES NOT Work

In the 'Check product Expiry Date' i have changed the Dynamic Content to the actual column Name (rather than the expression-

formatDateTime(item()?['jl0n'], 'dd/MM/yyyy'). the test passes but the flow does not find the any dates. my logic is that that there might be a mismatch of date formats and as such the expression puts them in all the same date format... but then i get the error, but it still works

 

Any help would great attached is the pictures 

 

ralph

Flow1.PNGFlow2.PNGFlow3.PNGFlow4.PNGFlow1-1.PNG

 

 
  • Verified answer
    DeepakS Profile Picture
    2,301 Most Valuable Professional on at
    Re: Flow - keeps failing - but still runs

    Hi @RalphC 

     

    Apply to each action is error handled, so if it fails in one item it move to next, and this is what happening in your case. if you click on "Next Failed" you know for witch item your condition is failing.

    Now the error that you are getting is because for few of the items (item()?['jl0n'] ) is empty.  so should  check if it is null before  format expression.

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,957 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow