What is the syntax to pass a procedure in ‘Execute Query’ step in UI path.Can someone plese guide because I am getting -
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Data.Odbc.OdbcException: ERROR [42000] [Oracle][ODBC][Ora]ORA-00900: invalid SQL statement
I did check this post and configured eveything like it.The place where it is giving SPNAME.I have given my Procedure name in double quotes but Getting the error I mentioned.
I checked my connection string it is fine since I am able to get the result of normal sql queries…and stored procedure also I can execute directly from db…and it is executing…
yes…but in a different way.Below are the things i did-
1.After the start step of flow chart I have included an Invoke Code Activity
2. When you click on edit code of Invoke Activity.You need to write below code-
Dim Oraclecon As New System.Data.OleDb.OleDbConnection(“Provider=MSDAORA;Data Source=your datasource name;User ID=your Id;Password=your pwd”)
Dim SqlString As String =“Some Input String”
Oraclecon.Open()
Using cmd As System.Data.OleDb.OleDbCommand = New System.Data.OleDb.OleDbCommand(“Procedure Name”,Oraclecon)
And also please note:
If it gives some OLE DB error try to import System.Data.OLEDB to fix the error.
If it doesnt fix your issue then download AccessDatabaseEngine.exe and install it, which contains Microsoft OLE DB Provider for Oracle (MSDAORA) which will definitely fix your issue.
Thanks!
I have similar issue and trying my luck to get my PL/SQL script to work in uipath.
May i know what i need to insert on the SqlString as String= “” or can you provide a sample. by the way my stored proc has no parameters required.
here is stored proc I am testing
CREATE OR REPLACE PROCEDURE greetings
AS
BEGIN
dbms_output.put_line(‘Hello World!’);
END;
/