<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Python Code Stage Execution is taking lot of time in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126553#M54826</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;&amp;nbsp;, generally it was 2-4 seconds even for simple things like math or string concatenation.&lt;/P&gt;&lt;P&gt;Here's an example:&amp;nbsp;&lt;A href="https://youtu.be/qmrwQph0_kk?si=h-yEPQDlxsi_agaI&amp;amp;t=601" target="_blank" rel="noopener"&gt;https://youtu.be/qmrwQph0_kk?si=h-yEPQDlxsi_agaI&amp;amp;t=601&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That should take you to a point in the video where I tested the code stage right after. You'll see that it takes around 3 seconds after I pressed F10 to step over the code stage. I tested in various other scenarios as well on a work computer and my home computer, with and without a venv. But in all scenarios it was pretty slow to start and end the code stage. Once it got started, it was plenty fast and then took a second or two to go to the next stage.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Nov 2026 19:13:32 GMT</pubDate>
    <dc:creator>david.l.morris</dc:creator>
    <dc:date>2026-11-02T19:13:32Z</dc:date>
    <item>
      <title>Python Code Stage Execution is taking lot of time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126537#M54816</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;we have started using python in Blueprism 7.5 and python code stages is taking lot of time to execute and come out of code stages.&lt;BR /&gt;&lt;BR /&gt;do we have to do anything to make this fast or this is normal that python always take long time to execute ? or do we have to review anything in our sytems ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;what will be the reason ?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2026 11:20:42 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126537#M54816</guid>
      <dc:creator>naveed_raza</dc:creator>
      <dc:date>2026-10-29T11:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code Stage Execution is taking lot of time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126538#M54817</link>
      <description>&lt;P&gt;My thoughts here are purely based on my experience with this as well and not any understanding of how it works underneath.&lt;/P&gt;&lt;P&gt;It's normal as far as I've experienced. I've been testing Blue Prism 7.5.1 to run Python code stages, and it takes about 2 seconds to start and end for me. I ended up choosing to not use the feature because in my scenario I wanted to repeatedly call the code stages for tiny interactions with the screen, and that led to very long run times. I switched back to using C# since there's no delay in that.&lt;/P&gt;&lt;P&gt;As I understand it, there is some Python bridge activity that has to happen from .NET to Python, and this is what is taking so long since it has to do this each time the code stage is called.&lt;/P&gt;&lt;P&gt;A workaround if you really want/need to use Python is to make your Python calls be in much larger scripts where it does a bunch of stuff in each instance of calling a code stage. Then the few seconds of extra time is not a big deal. Hopefully this gets improved in the future as I would like to be able to use Python code stages for quick operations.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2026 15:39:08 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126538#M54817</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2026-10-29T15:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code Stage Execution is taking lot of time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126541#M54819</link>
      <description>&lt;P&gt;Thanks Dave, looks like i have to switch back to c# or vb.net , python is awesome but performance is not good ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2026 10:47:58 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126541#M54819</guid>
      <dc:creator>naveed_raza</dc:creator>
      <dc:date>2026-10-30T10:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code Stage Execution is taking lot of time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126548#M54822</link>
      <description>&lt;P&gt;real reason for using python is , i have an automation where i have to upload files into SFTP server and long back ago i have build VB.Net and C# code , that is working fine if we pass password , however this time i have to pass password in .pem file and code is not working , i am not sure is this because of Renci DLL version or something else&lt;BR /&gt;then i have written python and its working perfectly fine.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2026 11:29:17 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126548#M54822</guid>
      <dc:creator>naveed_raza</dc:creator>
      <dc:date>2026-11-02T11:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code Stage Execution is taking lot of time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126550#M54823</link>
      <description>&lt;P&gt;Then I'd suggest doing one of two things:&lt;BR /&gt;&lt;BR /&gt;Either (1) Stage all the files to be uploaded in advance in some folder(s), and then have a Python code stage that loops over them all and uploads them rather than calling the stage repeatedly for each one.&lt;BR /&gt;Or (2) Reference a post like&amp;nbsp;&lt;A href="https://community.blueprism.com/t5/Product-Forum/Execute-python-script/td-p/47151" target="_blank"&gt;Execute python script - SS&amp;amp;C Blue Prism Community&lt;/A&gt;&amp;nbsp;and call Python as a process outside of Blue Prism which would probably work faster and enable you to call it repeatedly and more quickly, but I have never done this specifically from Blue Prism before so I can't be sure how fast it is.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;&amp;nbsp;may be able to direct you more on this. I think he has created tutorials on this before (at least iron python), but I can't seem to find that now.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2026 17:32:47 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126550#M54823</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2026-11-02T17:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code Stage Execution is taking lot of time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126551#M54824</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2425"&gt;@naveed_raza&lt;/a&gt;&amp;nbsp;What version of SSH.NET were you using?&lt;BR /&gt;&lt;BR /&gt;With Python, as&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2590"&gt;@david.l.morris&lt;/a&gt;&amp;nbsp;mentioned, there is a translation layer because of the interpreted nature of Python. When you say it's taking a long time to execute, how long are we talking?&lt;BR /&gt;&lt;BR /&gt;Are you actually writing Python inside your BP code stages, or are you invoking Python scripts using something like &lt;EM&gt;&lt;STRONG&gt;Utility - Environment::Start Process&lt;/STRONG&gt;&lt;/EM&gt; action?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2026 18:36:49 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126551#M54824</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2026-11-02T18:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code Stage Execution is taking lot of time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126553#M54826</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;&amp;nbsp;, generally it was 2-4 seconds even for simple things like math or string concatenation.&lt;/P&gt;&lt;P&gt;Here's an example:&amp;nbsp;&lt;A href="https://youtu.be/qmrwQph0_kk?si=h-yEPQDlxsi_agaI&amp;amp;t=601" target="_blank" rel="noopener"&gt;https://youtu.be/qmrwQph0_kk?si=h-yEPQDlxsi_agaI&amp;amp;t=601&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That should take you to a point in the video where I tested the code stage right after. You'll see that it takes around 3 seconds after I pressed F10 to step over the code stage. I tested in various other scenarios as well on a work computer and my home computer, with and without a venv. But in all scenarios it was pretty slow to start and end the code stage. Once it got started, it was plenty fast and then took a second or two to go to the next stage.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2026 19:13:32 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126553#M54826</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2026-11-02T19:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code Stage Execution is taking lot of time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126560#M54830</link>
      <description>&lt;P&gt;i have written python code inside BP Code stage , when we execute its taking around 4mins of time.&lt;BR /&gt;for an example , one of the code will convert saved excel file into CSV and its taking 3mins of time&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2026 12:30:03 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126560#M54830</guid>
      <dc:creator>naveed_raza</dc:creator>
      <dc:date>2026-11-03T12:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code Stage Execution is taking lot of time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126561#M54831</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2425"&gt;@naveed_raza&lt;/a&gt;&amp;nbsp;if you want to stick with Python, the first thing I would do is move that Python code to a regular .py script and try executing it outside of Blue Prism to see how long it takes. After that, I would test the same .py script file from within Blue Prism by calling it from the Utility - Environment VBO and see if there's a significant change in the timing. If there isn't you'd probably need to open a ticket with support to troubleshoot the latency with Python code stages.&lt;/P&gt;&lt;P&gt;Otherwise, I'd switch back to C# or VB.Net for that feature.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Eric&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2026 17:15:43 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126561#M54831</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2026-11-03T17:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code Stage Execution is taking lot of time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126569#M54834</link>
      <description>&lt;P&gt;okay, i will try this and i need small information , SSH.Net blueprism object is there on Digital Exchange , that will work if we pass .pem file as an input to connect to server ?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2026 11:04:32 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126569#M54834</guid>
      <dc:creator>naveed_raza</dc:creator>
      <dc:date>2026-11-05T11:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python Code Stage Execution is taking lot of time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126571#M54835</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2425"&gt;@naveed_raza&lt;/a&gt;&amp;nbsp;the VBO uses the SSH.Net open-source library which does support PEM, so you should be good.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Eric&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2026 14:16:01 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Code-Stage-Execution-is-taking-lot-of-time/m-p/126571#M54835</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2026-11-05T14:16:01Z</dc:date>
    </item>
  </channel>
</rss>

