I'm trying to use "Get file path part" and extract just the file name without extension.
I want to send this list of file names to a .txt somewhere on my agency's filestore, but I keep getting the same error when trying to target both the shared drive and local file structure:
Microsoft.Flow.RPA.Desktop.Robin.SDK.ActionException: Invalid directory specified ('Access to the path 'C:\Users\jakso\Desktop\test location\CSV Home' is denied.') ---> System.UnauthorizedAccessException: Access to the path 'C:\Users\jakso\Desktop\test location\CSV Home' 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, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
at Microsoft.Flow.RPA.Desktop.Modules.File.Actions.WriteTextToFileAction.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.File.Actions.WriteTextToFileAction.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)
Can someone explain what I'm doing wrong?
Thank you!