25-08-23 04:56 PM
Hi
I am trying to send an email with an attachment but I am getting the following error.
The folder in question was created by Blue Prism in the same process using the Utility File management create directory. So there should be no security checks on it, only the standard ones .
Does BP require a special user to be added so that it can access folders?
Thank you
Answered! Go to Answer.
03-09-23 07:54 AM
Hi @RSHERRY
Please check the length of your attachment name, if it is greater than 64 characters including spaces this might result in the error that you've shared also I cannot see any extension in the filename which might be causing the issue.
25-08-23 11:00 PM
Hi Rachael Sherry,
Are you able to create the file with the same name by manually navigating the path ?
25-08-23 11:03 PM
According to File.Delete Method...
An UnauthorizedAccessException
means one of 4 things:
Reference from stack overflow(https://stackoverflow.com/questions/8821410/why-is-access-to-the-path-denied)
03-09-23 07:54 AM
Hi @RSHERRY
Please check the length of your attachment name, if it is greater than 64 characters including spaces this might result in the error that you've shared also I cannot see any extension in the filename which might be causing the issue.
03-09-23 09:56 AM
Copy the same path and try to open it manually and check whether your able to access it. Based on the outcome we will proceed further.
04-09-23 08:44 AM
Hi Babjee , well spotted that was exactly what the error was . I had left out the file extension .
The email has now sent with the attachment.
Thanks 🙂