web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error with parameter "...
Power Automate
Unanswered

Error with parameter "emailMessage/Attachments/0/ContentBytes"

(0) ShareShare
ReportReport
Posted on by 11
The 'inputs.parameters' of workflow operation 'Enviar_correo_electrónico_(V2)' of type 'OpenApiConnection' is not valid.
Error details: The API operation 'SendEmailV2' is missing required property 'emailMessage/Attachments/0/ContentBytes'.
 
This is the message i'm receiving when testing a flow. I have an action to send emails througout Outlook 365. It's specially amazing because there are several flows in this same environment that are doing exactly the same and they have no errors.
 
I think it's possible that the trouble is actually in the property 'ContentBytes'. The parameter "Attachments" for the email message is being conformed from an array variable. This array variable is populated from a "For Each" action that loops through a collection of files obtained from OneDrive and, in every step of the loop, it's added the file name and its content like this:
{
"Name": XXXX,
"ContentBytes":XXXXX
}
 
Where it can be the problem? Have there been any recent updates on any of these Power Automate actions?
 
Thanks
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
     
    Should the attachment format for each should be like this ?
     
     
    {
    "Name": "XXXX",
    "ContentBytes":"XXXXX"
    }
     
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard