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 / BadRequest. The reques...
Power Automate
Unanswered

BadRequest. The request failed. Error code: 'InvalidAttachmentName'. Error Message:

(0) ShareShare
ReportReport
Posted on by 10

Hi, 

 

I have a approval flow for form response, where i am requesting for attahment, however when i run the flow i am getting this error: BadRequest. The request failed. Error code: 'InvalidAttachmentName'. Error Message:

Any idea how to solve it?

 

Thanks! 

 

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    on at

    Hi @ON13,

     

    If the error is "InvalidAttachmentName", it may be caused by the extension of the file is incorrect, please make sure it is a valid extension.

    You could share the error information and your Flow configuration.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • ON13 Profile Picture
    10 on at

    Hi @v-litu-msft 

     

    the error was showing because i was trying to add attachment in the email notifications that should go for the assigned to. however once i just added the attachment link (using parse json). the issue was resolved. i already updated the flow, so i can not show it to you. 

    however does that mean that adding attachment as an item and sending it to an emailcannot be done? as there was no problem with the extension.

     

     

  • Verified answer
    v-litu-msft Profile Picture
    on at

    Hi @ON13,

     

    Send a notification email with attachments is available, however, you should convert it to base64 code, for example:

    Annotation 2020-04-08 182422.png

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Uday21 Profile Picture
    27 on at

    Hi,

    I am facing the same issue.  And the the solution given to use "base64(body('get_file_content_using_path'))" from the expression is not available there.  Only base64(value), base64ToBinary(value) and base64ToString(value) are only available.  I have created a multi level approval flow and I wanted attachments to be part of the email.  And when i run I am getting the above error.  I wanted to attach the snapshot but I am not able to attach the same here as the interface for insert/edit image is bit confusing as it not taking any path.

     

    Regards

    Uday

  • Uday21 Profile Picture
    27 on at

    Please find the screenshot. 

    PA error.png

     

  • Uday21 Profile Picture
    27 on at

    This is the error in the flow.

     

    Error PA1.png

     

  • Uday21 Profile Picture
    27 on at

    Hi,

     

    This is resolved by adding "Get File Content".  So please don't bother. 

     

    Thanks,

    Uday

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard