cancel
Showing results for 
Search instead for 
Did you mean: 

Send an email with an attachment

RSHERRY
Staff
Staff

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 

19598.png



------------------------------
Rachael Sherry
------------------------------
1 BEST ANSWER

Helpful Answers

Babjee24
Level 7

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.



------------------------------
Babjee Vangipurapu
Senior RPA Developer
Wonderbotz
India
------------------------------
Babjee Vangipurapu
Senior RPA Developer
India

View answer in original post

5 REPLIES 5

Hi Rachael Sherry,

Are you able to create the file with the same name by  manually navigating the path ?



------------------------------
-----------------------
If I answered your query. Please mark it as the "Best Answer"

Harish Mogulluri
Lead developer
America/New_York TX
------------------------------
-----------------------
If I answered your query. Please mark it as the Best Answer

Harish Mogulluri

According to File.Delete Method...

An UnauthorizedAccessException means one of 4 things:

  • The caller does not have the required permission.
  • The file is an executable file that is in use.
  • Path is a directory.
  • Path specified a read-only file.

Reference from stack overflow(https://stackoverflow.com/questions/8821410/why-is-access-to-the-path-denied)



------------------------------
-----------------------
If I answered your query. Please mark it as the "Best Answer"

Harish Mogulluri
Lead developer
America/New_York TX
------------------------------
-----------------------
If I answered your query. Please mark it as the Best Answer

Harish Mogulluri

Babjee24
Level 7

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.



------------------------------
Babjee Vangipurapu
Senior RPA Developer
Wonderbotz
India
------------------------------
Babjee Vangipurapu
Senior RPA Developer
India

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.



------------------------------
Best Regards,
Devendran Venkatesh
RPA - Technical Architect |
Riyadh 11413, Kingdom of Saudi Arabia
Phone. +966-556784162
------------------------------
Best Regards, Devendran Venkatesh RPA - Technical Architect | Riyadh 11413, Kingdom of Saudi Arabia

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 🙂 



------------------------------
Rachael Sherry
------------------------------