Database Error : Only one of the connections can be used

Hi All,

I’m trying to connect UiPath to Sql server using database activities. but I’m facing error as shown below.

FYI : In first project, it is connected successfully without any issues. In second project, I’m facing this issue.

Can someone please correct me.

Thanks in Advance :slight_smile:

Hello @Vaishnav_Tej
I think you are using the same connection for both processes.
Use Connect to database activity and pass the connection string variable to the run query and use the disconnect from database activity at end of the process in both projects. The same connection can be used by one bot at a time.
image

Hey

as you can see

you have two connection methods used, you cannot do that, you just can use one of them
image

please remove one on them and try again

Regards