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)
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!
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.
eetuRobo
11
Super User 2025 Season 1
KO-05050229-0
4
stampcoin
2