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 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)
  • eliotcole Profile Picture
    4,385 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 ...
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,712 Super User 2025 Season 2 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

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
David_MA Profile Picture

David_MA 258 Super User 2025 Season 2

#2
trice602 Profile Picture

trice602 205 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 204 Most Valuable Professional

Last 30 days Overall leaderboard