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 / Unable to attach sever...
Power Automate
Answered

Unable to attach several attachments to Outlook

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello all,

 

I am trying to attach three files in an email when I am sending it. One is the Current Item in the loop and the others are two static files that go along with the email.

 

I have tried multiple ways of attaching them:

1. Get Files in Folder and using %CurrentItem% and %Files2%

2. Using the "Select a File" tool near the attachment

3. Using the "Select a Folder" tool near the attachment

 

All of the options give me the same error: "Attachment Not Found"

 

Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Attachment not found ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: File name or directory name is not valid.
--- End of inner exception stack trace ---
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
at Microsoft.Flow.RPA.Desktop.Modules.Outlook.Actions.OutlookActions.InvokeMethod(Object o, String methodName, Object[] methodArgs)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at Microsoft.Flow.RPA.Desktop.Modules.Outlook.Actions.OutlookActions.SendEmailThroughOutlook(Variant outlookInstance, Variant account, Variant from, Variant to, Variant cc, Variant bcc, Variant subject, Variant body, Variant attachments, Boolean isBodyHtml, Int32 sendEmailFrom)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.Outlook.Actions.SendEmailThroughOutlook.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    SharedScreenshot.jpg

  • Verified answer
    VJR Profile Picture
    7,635 on at

    Make sure you are giving the right formats as mentioned

     

    VJR_0-1659499835870.png

     

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 997

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 642

Last 30 days Overall leaderboard