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 / Custom Connector Expre...
Power Automate
Answered

Custom Connector ExpressionEvaluationFailed

(0) ShareShare
ReportReport
Posted on by 45

I'm developing an app connection with Microsoft Flow.

My app is a document management app (created by me) and the goal is foir example to upload a file from my app to One Drive, using flows.

 

I've already crated a connector ( I submited my Web API and tested it successfully).

 

When I tried to create a flow with my connector it returns me the following errror: 

 

ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerBody()?['value']' is of type 'Null'. The result must be a valid array.

 

What I must do to fix it?

Categories:
  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Fvamaro,

     

    The error message means the Value Content inputted under the Apply to Each has no values.

    What is the data returned by your custom connector?

    In addtion, would it be available for you to share a screenshot of the flow configuration details?

    Which should be helpful for me to share a further suggestion.

     

    If the returned type is an array, then we could take use of the empty() function to check if it has value first.

    Formula under the condition Advanced option should be something like:

    @empty(Body()?['value'])

     

    Then under the No part, add the Apply to Each.

     

    Regards,

    Michael

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard