Skip to main content

Notifications

Community site session details

Community site session details

Session Id : aZV8RTKves1HxlQLxJ/ghJ
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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,011 Most Valuable Professional

Leaderboard
Loading started
Loading complete