Skip to main content

Notifications

Community site session details
Power Automate - Power Automate Desktop
Answered

Access to path for PDF Merge is denied

Like (0) ShareShare
ReportReport
Posted on 28 Apr 2022 19:05:47 by 24

When attempting to merge PDFs, I am getting the error pasted below when the flow reaches the step with the merge. I thought it was an issue with where the folders were located so I moved them to the desktop from instead of a network drive but still received the error. 

 

I'm not too sure what could be the issue because I am able to access the folder earlier in the flow to save files to and access files from.

 

Any help would be greatly appreciated. Thank you!

 

Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Failed to merge PDF files: 'C:\Users\IG-LabOpenTrons\Desktop\merge pdf test\files to combine\order272553.pdf', 'C:\Users\IG-LabOpenTrons\Desktop\merge pdf test\files to combine\order272553_res.pdf' ---> System.UnauthorizedAccessException: Access to the path 'C:\Users\IG-LabOpenTrons\Desktop\merge pdf test\combined files' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at Microsoft.Flow.RPA.Desktop.Modules.PDF.Actions.MergePDFFilesAction.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.PDF.Actions.MergePDFFilesAction.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

  • Verified answer
    David-Immuno Profile Picture
    24 on 29 Apr 2022 at 14:53:06
    Re: Access to path for PDF Merge is denied

    I think I figured out what the problem was. I did not define a full path for the merge to be saved to. Previously I only included a folder but once I defined a full file name it worked. 

     

    Thanks for the help!

  • VJR Profile Picture
    7,635 on 29 Apr 2022 at 04:15:42
    Re: Access to path for PDF Merge is denied

     

    Different File paths from the error message:

    C:\Users\IG-LabOpenTrons\Desktop\merge pdf test\files to combine\order272553.pdf'
    C:\Users\IG-LabOpenTrons\Desktop\merge pdf test\files to combine\order272553_res.pdf

    Access to the path:
    'C:\Users\IG-LabOpenTrons\Desktop\merge pdf test\combined files' is denied.

     

    Hope these are the paths that you are looking for, and have the right access, and that you have checked for both of them.

     

    Also check if the Id through which you are signing-in to Power Automate has the right access.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 11 Super User 2025 Season 1

#2
KO-05050229-0 Profile Picture

KO-05050229-0 4

#3
stampcoin Profile Picture

stampcoin 2

Overall leaderboard
Loading started
Loading started
Loading complete