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 / Action 'Send_each_adap...
Power Automate
Answered

Action 'Send_each_adaptive_card' failed

(0) ShareShare
ReportReport
Posted on by 8
Hi ,
 
I use a webhook from a template called "Send webhook alerts to a channel". The workflow URL is then used in a python script to push notifications to the specific channel in MS Teams. Since today this doesnt work anymore (was working before), error message is: Action 'Send_each_adaptive_card' failed . 
 
What could be the reason?
 
Thanks,
Gunar
Categories:
I have the same question (0)
  • Tomac Profile Picture
    4,079 Moderator on at
    Please post the full error message from the failed action, otherwise we won't know enough about this problem to help resolve it.
  • GD-21081422-0 Profile Picture
    8 on at
    Here is the full error message:
     
     
    Error
    Action 'Send_each_adaptive_card' failed
    The execution of template action 'Send_each_adaptive_card' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body']?['attachments']' is of type 'Null'. The result must be a valid array.
  • Verified answer
    Tomac Profile Picture
    4,079 Moderator on at
     
    This issue is with your inputs for the Apply To Each action. You're running it against the attachments from your trigger, but that's not returning an array (in fact it's not returning anything in your test). You'll need to check your value for Attachments from the trigger to ensure it's not null before running your loop.
  • GD-21081422-0 Profile Picture
    8 on at
    Thanks, that solved the error message. I have just added a attachment array to the message (was only text before). Now the flow succeeded but the message is still not visible in the channel, no error message.
  • GD-21081422-0 Profile Picture
    8 on at
    Seems that only the attachment is used to fill the adaptive card, so I added the missing content to the attachment array and now everything works as expected.

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 796

#2
Valantis Profile Picture

Valantis 671

#3
Haque Profile Picture

Haque 551

Last 30 days Overall leaderboard