Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Tom Coene
2015-06-08T09:50:36Z
I have the following function in package TCN in my Oracle database:
function test4(i_test in varchar2) return varchar2 is
begin
    return 'test4';
end;

When trying to execute this function in a task, i get the following error message:
Error in SQL query: ERROR [HY000] [Oracle][ODBC][Ora]ORA-06550: line 1, column 7:
PLS-00221: 'TEST4' is not a procedure or is undefined
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

Is it not possible to call a function?
Sponsor
Forum information
Support
2015-06-16T15:32:42Z
Have you tried to execute using the Stored procedures tab instead of SQL Text tab?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Tom Coene
2015-06-17T06:33:57Z
Yes, that's how we try to call the function.
I added an attachment with the content of the tab.
2015-06-17_08h29_07.png
Tom Coene
2015-06-17T06:39:02Z
And we are also wondering how we could capture the value of an output variable of a procedure.
Is this possible?
We tried to add a user variable as parameter, but I guess it doesn't work that way?
2015-06-16_17h23_48.png
2015-06-17_08h37_46.png

EDIT: I found the correct way to do this, by selecting the correct VisualCron variable:
{TASK(a0675b81-d499-4775-bc68-9b84d5ddc805,Result.Parameter.Value,o_out)}
Support
2015-06-17T08:40:40Z
Great, thanks for the feedback!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top