cancel
Showing results for 
Search instead for 
Did you mean: 

Passing argument to Blue Prism - Script Execution VBO

Hi All,

I am trying to pa arguments to Blue Prism - Script Execution VBO  but unable to do the same,
Please anyone guide me on the same.

I am just trying below simple code,

29489.png29490.png
Output is appearing blank.
------------------------------
Amlan Sahoo
RPA Consultant
Equinix
------------------------------
Regards,
Amlan Sahoo
1 BEST ANSWER

Helpful Answers

Basically the same thing as you have shown. Only difference is that I'm using Python 3.8, as a dedicated install vs Visual Studio.

29458.png


------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------

View answer in original post

23 REPLIES 23

Hi @ewilson Please help me on that.​

------------------------------
Amlan Sahoo
RPA Consultant
Equinix
------------------------------
Regards,
Amlan Sahoo

EmersonF
MVP
Hi Amlan, i hope you're well, I could give you more information, what kind of error, details.. oh! you could replace \\ with just \.

------------------------------
Emerson Ferreira
Sr Business Analyst
Avanade Brasil
+55081988869544
------------------------------
Sr Cons at Avanade Brazil

Hi @EmersonF thanks for your response.
I am not getting any error but not getting the required script out put. The result should return 11 but it's returning empty values​.
Could you please check if it is working for you or not.

an for python we should give with \\ double back slash not single.

------------------------------
Amlan Sahoo
RPA Consultant
Equinix
------------------------------
Regards,
Amlan Sahoo

I found this information in the VBO documentation, see if it helps you in any way while testing if it works for me

"The output will be all resulting text that your script will have produced from its invocation. It may be necessary to modify the script so that output is delimited in such a way that required results can be easily accessed through string manipulation.
Alternatively, your script could write results to a file and then read those results into Blue Prism with a file access action."



------------------------------
Emerson Ferreira
Sr Business Analyst
Avanade Brasil
+55081988869544
------------------------------
Sr Cons at Avanade Brazil

Hi @EmersonF I too went through the document. Please give a snap of ur code and how you are passing arguments.

See I am not getting output if I am passing arguments from blue prism otherwise it used give out put. Please let me know how you did it.​

------------------------------
Amlan Sahoo
RPA Consultant
Equinix
------------------------------
Regards,
Amlan Sahoo

Hi @ashish.easow @Bruce LiuCould you please help me on this it's bit urgent​​

------------------------------
Amlan Sahoo
RPA Consultant
Equinix
------------------------------
Regards,
Amlan Sahoo

Hi @_Amlansahoo,

Are you testing the VBO from your own process or from the test process that ships with it? If you haven't already, can you try using the test process that comes with it. I just ran it with a simple Hello World! script and it worked fine for me. Below is the script I tested with.
# This program prints Hello, world!

print('Hello, world!')
​

Cheers,

------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------

Hi @ewilson please give one example where I can pass arguments as I mentioned above.
Please see my example in the post.​
I am trying to pass arguments from blue prism to python script but it's not working.
------------------------------
Amlan Sahoo
RPA Consultant
Equinix
------------------------------
Regards,
Amlan Sahoo

There is one oddity I noticed when testing. If I hardcode the values for ScriptEngineFilePath, ScriptFilePath, and ScriptNameAndArguments (as you have in your screenshot) I receive an Access Denied! when trying to execute the script. However, if I place the values in Text data items and pass the data items into the call to Execute Script on the VBO, everything works as expected.

Cheers,

------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------