Blue Prism Product

 View Only
last person joined: 10 hours ago 

This community covers the core Blue Prism RPA product.

  • 1.  Could not execute code stage because exception thrown by code stage: Access to the path is denied.

    Posted 01-04-2021 12:14
    Hi Team,

    I have code stage which will create an xml format and  save in common shared folder. It works well in test environment and in prod it failed with the below error msg.

    Could not execute code stage because exception thrown by code stage: Access to the path(shared folder) is denied.

    Note : This code was working almost an year now but now I m facing this issue. Weird.


    System.Xml.XmlDocument xdoc = new System.Xml.XmlDocument();
    string Formatted_XML="";
    Formatted_XML = XDocument.Parse(XML).ToString ();
    xdoc.LoadXml(Formatted_XML);
    xdoc.Save(File_Name);

    steps taken:

    1)Indeed I checked the access to the path " the bot has all the access to save the file in shared folder" but did not work
    2)I cleared all the temp files and restarted the machine by using login agent but did not work 
    3)Both user have access to the same VDI? Does it cause the issue .. However I tried to work only on the bot  machine even though the same problem
    What could be the other issues causing this error? Please share your insights on this.

    Regards,
    Dilip K

    ------------------------------
    Dilip K
    Consultant
    HCL Technologies
    UTC
    ------------------------------


  • 2.  RE: Could not execute code stage because exception thrown by code stage: Access to the path is denied.

    Posted 01-04-2021 12:41
    Hi Dilip

    How is the shared folder stored in your bot is it for example T:\my folder\my files\

    Does your bot access the folder fine if your run it manually but cant access if its run through the scheduler? 

    If so then change your folder address to look like this \\my folder\my files\ and try running it from the scheduler again and this should hopefully resolve the issue. If not then check the level of access hasnt changed to the folder your are trying to access.

    Hope this helps :)

    ------------------------------
    Michael ONeil
    Technical Lead developer
    Everis Consultancy
    Europe/London
    ------------------------------



  • 3.  RE: Could not execute code stage because exception thrown by code stage: Access to the path is denied.

    Posted 01-04-2021 13:10
    ERROR: Internal : Could not execute code stage because exception thrown by code stage: Access to the path 'M:\case_data\p\scp\capture\buddyOnly\XXXXXX_01012021055444.xml'(time stamp now is enabled at end of the file name) is denied

    M:\case_data\p\scp\capture\buddyOnly\ is the default path folder which is stored in environment variable 

    The bot is not able to access the file either manually or scheduler

    Do you want me to change the folder structure to  M:\\case_data\p\scp\capture\buddyOnly\ ?

    Regards,
    Dilip K


    ------------------------------
    Dilip K
    Consultant
    HCL Technologies
    UTC
    ------------------------------



  • 4.  RE: Could not execute code stage because exception thrown by code stage: Access to the path is denied.

    Posted 01-04-2021 13:53
    Hi dilip

    If you remove the drive letter completely so it looks like this \\case_data\p\scp\capture\buddyOnly\

    ------------------------------
    Michael ONeil
    Technical Lead developer
    Everis Consultancy
    Europe/London
    ------------------------------



  • 5.  RE: Could not execute code stage because exception thrown by code stage: Access to the path is denied.

    Posted 01-20-2021 15:20
    Hi ,

    There was some problem in bot account  and after the windows updates ,the error is gone. Thanks for all your help

    ------------------------------
    Dilip K
    Consultant
    HCL Technologies
    UTC
    ------------------------------



Welcome to the Blue Prism RPA Product Community!

Whether you’re looking to manage a complex infrastructure, maintain security and compliance, bring new products to market faster, or gain operational speed and agility in an uncertain economy, Blue Prism delivers — with the flexibility you need to create the business you want. From deployment on-premise, through a cloud service provider or as SaaS, to a skillful and adaptable digital workforce that continually expands to meet your enterprise needs, you can gain enhanced operational insight and control while your people reclaim the time they need to focus on great work.

Product PageKnowledge BaseBlue Prism Training Offering
Product Research Programv6 End of Life

FAQs

Blue Prism is intelligent automation — business-developed, no-code automation that pushes the boundaries of robotic process automation (RPA) to deliver value across any business process in a connected enterprise.

A combination of RPA with expanded cognitive and AI capabilities, Blue Prism is different than other automation technology on the market. With one Blue Prism license, you gain instant access to an already AI equipped digital workforce, along with the tools you need to build and delegate automations. Click here for more information on Blue Prism and Intelligent Automation.
To learn more about how Blue Prism RPA can help your organization and how much it will cost to get started, please Contact our Sales department.
Blue Prism RPA can be downloaded from our customer portal. If you would like to consume or download any material it is necessary to create an account on the Portal. Once you have registered, you can access the download options for Blue Prism here.
Yes! Installed on your own machine and supported by our training materials and product documentation, you can use all the features of the full enterprise product for free with our Blue Prism Trial – giving you the opportunity to learn the basics before moving to a full production implementation. Click here for more information and to download the trial.
Yes! You can access our known issue list for Blue Prism from our Support Portal.
Regardless of your industry, Blue Prism’s Digital Workforce can adhere to strict governance and compliance standards without limiting productivity. Click here for more information on how your industry can benefit from Blue Prism.