Python code invoking into UiPath

Hi all, I have written a python script in Pycharm IDE, which will connect to the database, execute the query and will fetch some records, so now I want to execute(invoke) this python script from UiPath. is it possible to do it? when I tried to do this I got an error saying that error in invoking python script. please give suggestions. Thank you.

what is the exact error message?

You can even try directly fetching the records from the database using UIPath Database activities.

Regards,
Karthik Byggari

2 Likes

@KarthikByggari This the error message I am getting. Yes, as you mentioned I tried with database activities directly but the problem is that database (MySQL server) which I am using is in UNIX System. is it possible to fetch records by using UiPath database activities from unix?

Are you giving the space in the Name field - " myquery" . Please remove the space at the starting.

Regards,
Karthik Byggari

1 Like

I tried both the ways adding space and removing spaces still i am getting that error. i am unable to find what exactly gone wrong. why it is not possible to connect to UINIX database directly using database activities?

Still you haven’t posted the entire error you got @Siddu

@HareeshMR @KarthikByggari Sorry for late response, i did mistake in python code, i got the solution for that thank you.

1 Like