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 / Error Action 'Send_an_...
Power Automate
Suggested Answer

Error Action 'Send_an_email_(V2)' failed

(0) ShareShare
ReportReport
Posted on by
I am receiving an error that my flow has failed: 
 
The 'inputs.parameters' of workflow operation 'Send_an_email_(V2)' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'emailMessage/To' is required to be of type 'String/email'. The runtime value '"Firstname.Lastname@mass.gov\n"' to be converted doesn't have the expected format 'string/email'.
 
I have built and used this exact same flow in the past for a different MS Form to email respondents without issue.  What am I doing wrong and what can I do to correct it?
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
     
    The issue is you have 
    Firstname.Lastname@mass.gov\n
     
    that is not a valid email since you have \n
     
    Either thats text and you can use replace('Firstname.Lastname@mass.gov\n', '\n', '')
     
    putting in your variable not the hard coded email
     
    Or you have to remove the carriage return by use decodeUriComponent to remove the encoded value that we can see.
     
    replace(yourvalue, decodeUriComponent('%0A'), '' )

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • eliotcole Profile Picture
    4,390 Moderator on at
    It's the bit at the end ... it's somehow got a carriage return in there.
    This is likely not your fault, both new and old designers put stuff in that you didn't type all the time.
    Just have a few tries at resetting it and check the 'code view' of any trigger/action that you get this with. :-)
     
    So that you know, "\n" is a new line ...
     
    It looks like you also have speech marks / quotes in there, too, perhaps ... hard to tell ...

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