cancel
Showing results for 
Search instead for 
Did you mean: 

running process from command line

AlexanderFilip
Level 3
Hello,
when I run my process from Control Room it works fine.
When I run it from command line with automateC.exe I got the following SqlConnection exception:

C:\Program Files\Blue Prism Limited\Blue Prism Automate>automateC /run HelloWorld /user admin BluePrism2019
Database error - Unable to determine whether database exists - The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception.

I've also given all the required permissions to Administrative Tools -> Local Security Policy -> Local Policies -> User Rights Assignment -> Impersonate a client after athentication, but it is still not working.

Why is that if from the control room it works? What is the difference between automate and automateC ???

Thanks in advance,
Alex

------------------------------
Alexander Filip
------------------------------
13 REPLIES 13

jegendra
Staff
Staff
Hi Alex

Automate - GUI version of the Blue Prism application
AutomateC - Command-line version of Blue Prism application

Before executing the Blue Prism Process "HellowWorld" using the command automateC /run HelloWorld /user admin BluePrism2019,
you need to run the GUI version of the runtime resource or Interactive Client first.

------------------------------
Jega Avinasinathan
Customer Support Engineer
Blue Prism
------------------------------
Jega Avinasinathan Customer Support Engineer Blue Prism

Hello Jegendra,
thank you for your reply. With the GUI version my process works fine. No isuess at all. If I use the AutomateC it does not work.
Could you please help me?

------------------------------
Alexander Filip
------------------------------

Hi Alex,

Please find the steps below to execute the process from command prompt

First command
automate /resourcepc /public /user admin BluePrism2019

Second command
automateC /run HelloWorld /user admin BluePrism2019

------------------------------
Jega Avinasinathan
Customer Support Engineer
Blue Prism
------------------------------
Jega Avinasinathan Customer Support Engineer Blue Prism

Hello Jegendra,
thank you for your suggestion but I tried and it didn't work. I'm attaching the output.
Whate else can I do?
31394.png


------------------------------
Alexander Filip
------------------------------

Hello, Alexasander

You can try specifing the connection name with the following parameter.
Something like: automate /resourcepc /public /user admin BluePrism2019 /dbconname "Connection Name"

Cheers

------------------------------
Diogo Furlan
Analyst
Grupo NC
America/Sao_Paulo
------------------------------

Thank you Diogo,
I've tried but same error unfortunately.
What else could be done? 
31396.png


------------------------------
Alexander Filip
------------------------------

If your Blue Prism instance connected via SSO?  If yes, you need to open MSDOS as that user and then try. Please also note that you may want to include the resource switch if you are trying to run it on different machine
If your BP instance is having local users (for example admin), then you may want to include /user and password switches.

------------------------------
Vivek Goel
RPA Architect
Avanade
Asia/Singapore
------------------------------

Thanks Vivekbut I've already did all those tryies: msdos open both with my user and both with admin.
I'm trying to run it on my machine and I always specify /user admin password
What else could be done?

------------------------------
Alexander Filip
------------------------------

Open Blue Prism , Login to BP...

And then try running the simple command 

31406.png


------------------------------
Vivek Goel
RPA Architect
Asia/Singapore
+6594554364
https://www.rpatools.com/
------------------------------