XSTL-JAVA error Illegal number of arguments or types of arguments in a call
Hi All,
I get this error when invoking my Java function from XSLT.I am passing Strings with global param defined like this .
<xsl:param name="inputparam"/>
<xsl:param name="gid" select="//GENERAL_ID"/>
<xsl:param name="vtype" select="//VESSEL"/>
<xsl:template match="/">
<xsl:call-template name="setfilename">
</xsl:call-template>
</xsl:template>
<xsl:template name="setfilename">
<xsl:variable name="response"
select ="javamap:SetTargetFile( $gid , $vtype , 'bol' , $inputparam)"/>
</xsl:template>
java
public static String SetTargetFile (String id ,String type, String ext,Map InputParam){}
Any idea what is going wrong.
Thanks in advance,
Regards,
Bikram
Hi Stefan,
Type casting $gid and $vtype to string solved my problem.
select ="javamap:SetTargetFile( string($gid) , string($vtype) , 'bol' , $inputparam)".
Thanks for your reply anyway.
Regards,
Bikram
Similar Messages
-
Error: Illegal number of arguments passsed to the function call
HI All,
In our scenario we are using XSLT mapping with java enhancement.Its working fine in Stylus studio but when the same is imported into XI its throwing the below mentioned error:
javax.xml.transform.TransformerException: com.sap.engine.lib.xml.util.NestedException: Illegal number of arguments or types of arguments in a call of function 'Trans:Convert'.
Our requirement is that we are summing up the field "Grant_Amount" which occurs multiple times in the source structure and the sum is mapped to the field "Sum' on the target side.The stylesheet is working fine in stylus studio but whe imported into XI the above mentioned error is being thrown.Can any one one please help me solving this issue.
The XSL, the source XMLand the java class are mentioned below:
<
XSL:
===
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://www.infosys.com/sap/xi/projects/sce/n1" xmlns:Trans="com.company.group.String2Number">
<xsl:template match="/">
<a:MT_TargetXSLJava>
<Record>
<Detailrecord>
<Sum>
<xsl:value-of select="Trans:Convert(//Grant_Amount)"/>
</Sum>
<Flag>
<xsl:text>1</xsl:text>
</Flag>
</Detailrecord>
</Record>
</a:MT_TargetXSLJava>
</xsl:template>
</xsl:stylesheet>
XML:
===
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_SourceXSLJava xmlns:ns0="http://www.infosys.com/sap/xi/projects/sce/n1">
<Recordset>
<DETAILRECORD>
<Grant_Amount>$100.00</Grant_Amount>
</DETAILRECORD>
<DETAILRECORD>
<Grant_Amount>$200.00</Grant_Amount>
</DETAILRECORD>
<summary_record>
<Total>$300.00</Total>
</summary_record>
</Recordset>
</ns0:MT_SourceXSLJava>
Java Code:
========
package com.company.group;
public class String2Number
public static double Convert(String[] a)
double sum=0;
String[] temp = new String100;
for(int i=0;i<a.length;i++)
temp = (a).replaceAll(",
$
sum=sum+Double.parseDouble(temp);
return sum;
Please guide me to the right solution.
Thanks and Regards,
KaranamIf you are using below mentioned java code for Convert method, then see you are passing a String Array, but in below statement:
<xsl:value-of select="Trans:Convert(//Grant_Amount)"/>
This is just a single value i think, you have to pass an array with values 100,200,300. Pls check it.
BR,
Alok -
Errror::Illegal number of arguments or types of arguments in XSLT
HI All,
In our scenario we are using XSLT mapping with java enhancement.Its working fine in Stylus studio but when the same is imported into XI its throwing the below mentioned error:
javax.xml.transform.TransformerException: com.sap.engine.lib.xml.util.NestedException: Illegal number of arguments or types of arguments in a call of function 'Trans:Convert'.
Our requirement is that we are summing up the Field "Grant_Amount" which occurs multiple times in the source structure.PFB the XSL and the source XML:
<
XSL:
===
<Sum>
<xsl:value-of select="Trans:Convert(//Grant_Amount)"/>
</Sum>
XML:
===
<Recordset>
<DETAILRECORD>
<Grant_Amount>$100.00</Grant_Amount>
</DETAILRECORD>
<DETAILRECORD>
<Grant_Amount>$200.00</Grant_Amount>
</DETAILRECORD>
</Recordset>
Java Code:
========
package com.company.group;
public class String2Number
public static String Convert(String[] a)
double sum=0;
String[] temp = new String[100];
for(int i=0;i<a.length;i++)
temp<i> = (a<i>).replaceAll("[,
$
sum=sum+Double.parseDouble(temp<i>);
return sum+"";
>
Please guide me into the right solution.
Thanks and Regards,
KaranamThanq for your response,
But my stylesheet is as below
<
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://www.infosys.com/sap/xi/projects/sce/n1" xmlns:Trans="com.company.group.String2Number">
<xsl:template match="/">
<a:MT_TargetXSLJava>
<Record>
<Detailrecord>
<Sum>
<xsl:value-of select="Trans:Convert(//Grant_Amount)"/>
</Sum>
<Flag>
<xsl:value-of select="//DETAILRECORD/Grant_Amount"/>
</Flag>
</Detailrecord>
</Record>
</a:MT_TargetXSLJava>
</xsl:template>
</xsl:stylesheet>
> -
Direct Database Request Error: illegal number at oci
Hello, all.
In Oracle BI Answers i get an error by building an direct database request: illegal number at oci.....
The reason of error is in expression to_char((date_1-date_2)*24, '9990.99')
The error disappears if i write expression to_char((date_1-date_2)/*24*/, '9990.99')
BI doesn`t understand multiplying in SQl request?Hi,
Couple of suggestions :
1) Run your direct database queries in a SQL editor (SQL Developer, TOAD, SQLplus) etc to confirm the query runs OK - be carefull with Toad or SQL Dev - you want to return the entire dataset, not just the first xxxxK rows these tools tend to bring back, they sometimes hide the problem 'row' which maybe is causing the error.
2) Once the error is returned via straight up SQL , maybe try the database / SQL forum as your problem I think lies there, not with the BI Server.
3) My one stop shop for Oracle date arithmetic : http://www.akadia.com/services/ora_date_time.html
4) assuming the SQL returns correctly, report back to us so we can help with OBIEE specific issues !
what time period are you trying to bring back between your date 1 and date 2 ?
Hope this helps a little,
Alastair -
Range Number Missing for invoice type
Dear Experts,
I am getting an error "Range number missing for invoice type FR01 in Sls Org F2" while creating Invoice
FR01 is my sales Organisation F2 is my billing document type. I couldn't able to understand where exactly i missed the configuration
Number Range is rightly assigned to the Billing Type.
Can anyone help me in finding the solution.
Thanks and Regards
YoganandHi
Standard message is :Range number missing for invoice type &1 in SlsOrg &2
And you are getting: "Range number missing for invoice type FR01 in Sls Org F2"
there is swaping between invoice type and sale Org in your message.
Also In message class only text has been maintain not type. Type will be decided by code written as runtime.
Hence take help of your ABAPer and debugg the program to find out exact location of this error.
try and revert -
Error: Wrong number of arguments in method
Hi all,
I keep getting the above mentioned error when compiling simple JSPs with
only a few lines of codes. Here are the log dump.
Mon Aug 07 20:02:30 GMT+08:00 2000:<I> <ServletContext-General> file: init
Mon Aug 07 20:02:30 GMT+08:00 2000:<E> <ServletContext-General> Cannot find
resource 'language.html' in document root 'C:\weblogic\myserver\public_html'
Mon Aug 07 20:02:30 GMT+08:00 2000:<E> <ServletContext-General> Cannot find
resource 'top.html' in document root 'C:\weblogic\myserver\public_html'
Mon Aug 07 20:02:30 GMT+08:00 2000:<E> <ServletContext-General> Cannot find
resource 'language.html' in document root 'C:\weblogic\myserver\public_html'
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: init
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
verbose initialized to: true
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
packagePrefix initialized to: jsp
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
compileCommand initialized to: C:/jdk1.2.2/bin/javac.exe
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
srcCompiler initialized to weblogic.jspc
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
superclass initialized to null
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
workingDir initialized to: C:\weblogic\myserver\classfiles
Mon Aug 07 20:02:55 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
pageCheckSeconds initialized to: 1
Mon Aug 07 20:02:55 GMT+08:00 2000:<I> <ServletContext-General> *.jsp:
initialization complete
Mon Aug 07 20:02:55 GMT+08:00 2000:<I> <ServletContext-General> Generated
java file: C:\weblogic\myserver\classfiles\jsp\helloworld.java
Mon Aug 07 20:02:59 GMT+08:00 2000:<E> <ServletContext-General> Compilation
of C:\weblogic\myserver\classfiles\jsp\helloworld.java failed:
C:\weblogic\myserver\classfiles\jsp\helloworld.java:54: Wrong number of
arguments in method.
if (sci.isResourceStale("/helloworld.jsp", 933320916000L, "5.1.0
Service Pack 4 06/29/2000 18:18:23 #74560")) return true;
^
C:\weblogic\myserver\classfiles\jsp\helloworld.java:55: Wrong number of
arguments in method.
if (sci.isResourceStale("/dukebanner.html", 933321078000L, "5.1.0
Service Pack 4 06/29/2000 18:18:23 #74560")) return true;
^
2 errors
java.io.IOException: Compiler failed
executable.exec([Ljava.lang.String;[C:/jdk1.2.2/bin/javac.exe, -classpath,
c:\weblogic\lib\weblogic510sp4boot.jar;c:\weblogic\myserver\User.jar;c:\webl
ogic\myserver\Person.jar;c:\weblogic\myserver\TradingAccount.jar;c:\weblogic
\myserver\uniquesequence.jar;c:\weblogic\myserver\stockbroker.jar;;C:\jdk1.2
.2\jre\lib\rt.jar;C:\jdk1.2.2\jre\lib\i18n.jar;C:\weblogic\classes\boot;C:\w
eblogic\eval\cloudscape\lib\cloudscape.jar;c:\weblogic\lib\weblogic510sp4.ja
r;c:\weblogic\license;c:\weblogic\classes;c:\weblogic\myserver\serverclasses
;c:\weblogic\lib\weblogicaux.jar;C:\weblogic\myserver\tmp_deployments\ejbjar
-10126.jar;C:\weblogic\lib\persistence\WebLogic_RDBMS.jar;C:\weblogic\myserv
er\tmp_deployments\ejbjar-10125.jar;C:\weblogic\myserver\tmp_deployments\ejb
jar-10124.jar;C:\weblogic\myserver\tmp_deployments\ejbjar-10123.jar;C:\weblo
gic\myserver\tmp_deployments\ejbjar-10122.jar;C:\weblogic\myserver\tmp_deplo
yments\ejbjar-10121.jar;C:\weblogic\myserver\servletclasses;C:\weblogic\myse
rver\classfiles, -d, C:\weblogic\myserver\classfiles,
C:\weblogic\myserver\classfiles\jsp\helloworld.java])
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
a, Compiled Code)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
7)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:118)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:142)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:744)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:692)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:251)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
Mon Aug 07 20:02:59 GMT+08:00 2000:<E> <ServletContext-General> Servlet
failed with Exception
java.io.IOException: Compiler failed
executable.exec([Ljava.lang.String;[C:/jdk1.2.2/bin/javac.exe, -classpath,
c:\weblogic\lib\weblogic510sp4boot.jar;c:\weblogic\myserver\User.jar;c:\webl
ogic\myserver\Person.jar;c:\weblogic\myserver\TradingAccount.jar;c:\weblogic
\myserver\uniquesequence.jar;c:\weblogic\myserver\stockbroker.jar;;C:\jdk1.2
.2\jre\lib\rt.jar;C:\jdk1.2.2\jre\lib\i18n.jar;C:\weblogic\classes\boot;C:\w
eblogic\eval\cloudscape\lib\cloudscape.jar;c:\weblogic\lib\weblogic510sp4.ja
r;c:\weblogic\license;c:\weblogic\classes;c:\weblogic\myserver\serverclasses
;c:\weblogic\lib\weblogicaux.jar;C:\weblogic\myserver\tmp_deployments\ejbjar
-10126.jar;C:\weblogic\lib\persistence\WebLogic_RDBMS.jar;C:\weblogic\myserv
er\tmp_deployments\ejbjar-10125.jar;C:\weblogic\myserver\tmp_deployments\ejb
jar-10124.jar;C:\weblogic\myserver\tmp_deployments\ejbjar-10123.jar;C:\weblo
gic\myserver\tmp_deployments\ejbjar-10122.jar;C:\weblogic\myserver\tmp_deplo
yments\ejbjar-10121.jar;C:\weblogic\myserver\servletclasses;C:\weblogic\myse
rver\classfiles, -d, C:\weblogic\myserver\classfiles,
C:\weblogic\myserver\classfiles\jsp\helloworld.java])
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
a, Compiled Code)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
7)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:118)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:142)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:744)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:692)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:251)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
I believe that it has got something to do with the configuration of the
server and not the code in the JSPs. Have anyone encountered this error
before? Pls advice thanx!
Cheers,
kianhui
double d[] = new double[300];
getMax(d);Pass the array, not an element in the array. -
Error 306, wrong number or types of argument in call to ADD_OBJECT_ARG
Hello all,
I am trying to install Webutil to Forms 9i, but when compiling the webutil.pll, I am getting the compilation error 306, wrong number or types of argument in call to ADD_OBJECT_ARG(args, a0, 'java/lang/Object').
The problems are in the body of Package Jave_System when some methods of JNI are called.
What is JNI and how i can fix this problem?<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Instructor:
The procedure most likely requires an argument when executed.
To specify the argument in forms, you need to go to BLOCK property QUERY DATA SOURCE ARGUMENTS and if performing DML...use INSERT PROCEDURE ARGUMENTS, UPDATE PROCEDURE ARGUMENTS, and DELETE PROCEDURE ARGUMENTS.
Hope this helps.<HR></BLOCKQUOTE>
thanks, I will check it out !
null -
Argument error; the number of columns does not equal the number of parameters.
I am using the Database Toolkit (Enterprise Connectivity) to check for a network connection and then send information from a local database to a SQL database on the network if needed. In development of the code I continue to receive Error 1 and the Possible Reason(s) is "Argument error; the number of columns does not equal the number of parameters." I am using the DBToolsSelectData.VI to retrieve data from the local MDB file and the DBToolsInsertData.VI to write it to the SQL file. The collection of the data from the MDB file is successful and the connection and validation of the table and columns in the SQL file is also successful. The error occurs when the Insert VI tries to build the query. The number of columns being written (attempted) does match the number of columns in the data, they are both 16 string arrays.
Ok, it's taken a bit, and I have a solution! It took a while to figure out what the DCT is doing, but it seems to be working now.
The reason for the original error is that you were passing into the insert subVI an array of variants - which the input to the VI coerced into a single variant. You were getting the error because as far as the insert VI was concerned you were only passing it a single data value. The way to get around that was to create a cluster with one element for each column value, convert the cluster to a variant and pass the result to the insert VI - see attachment.
In terms of the other modifications, I made a copy of the endurance.mdb file, emptied it and used it as the destination for the copy.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
Attachments:
NetworkCheck.vi 49 KB -
Form Builder. Error 306 wrong number or types of arguments in call to populate_table
Hi ! I'm trying to build a simple form based on a procedure.
the error that i get:
error 306 - wrong number or types of arguments in call to populate_table
When I use the Data block
wizard, I specify the procedure with a ref cursor argument. the procedure code:
open ind_prof for select i.nome, i.idade, p.nome
from individuo i, individuo_profissao ip, profissao p
where i.cod_individuo=ip.cod_individuo
and ip.cod_profissao=p.cod_profissao;
The error that i get 'points' to this procedure. I checked the cursor type, the record
type and everything seems ok.
I'm using a ref cursor to query.
I have the same proble either using a procedure or a function.
There is another method to load the data into the block. That procedure is called
automatically and it has a table of the same record type as the ref cursor as an
argument. What code should I write on it ?
what should I write in both of them ?
Thanks !<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Instructor:
The procedure most likely requires an argument when executed.
To specify the argument in forms, you need to go to BLOCK property QUERY DATA SOURCE ARGUMENTS and if performing DML...use INSERT PROCEDURE ARGUMENTS, UPDATE PROCEDURE ARGUMENTS, and DELETE PROCEDURE ARGUMENTS.
Hope this helps.<HR></BLOCKQUOTE>
thanks, I will check it out !
null -
Error running a procedure in Python: (wrong number or types of arguments)
I am getting the following error when trying o execute a stored procedure in python.
cx_Oracle.DatabaseError: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'LOAD_FILE1'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
When executed from the SQL Plus or sql developer the same procedure runs without any issue. The following is the code of the called procedure:
create or replace
PROCEDURE load_file1 (
P_FILE_NAME in varchar2)* IS
src_file BFILE;
dst_file BLOB;
lgh_file BINARY_INTEGER;
BEGIN
src_file := bfilename('inbox_scnr_dir', P_FILE_NAME);
-- insert a NULL record to lock
the above procedure updates creates and updates a record in the table.
I am calling the above procedure as follows in my python code , see the curs.callproc("load_file1",osfile)
for filename in files:
osfile = doc_number(filename)
curs.callproc("load_file1",osfile)+
db.commit()
As you can see I am giving only one argument and the type is string as well, it passes the filename like 'abx.txt' to the procedure. So I am not wrong there.
Am I calling it in a wrong way or the cx_Oracle have some limitation about procedure callings.
Can the gurus on the forum help me please. Just need a direction to resolve this , if you can guide me.
Thanks
Edited by: user10903866 on Feb 28, 2013 5:54 AM
Edited by: user10903866 on Feb 28, 2013 6:45 AMCREATE OR REPLACE
PACKAGE TESTER AS
TYPE t_ref_cur IS REF CURSOR;
PROCEDURE getRS (p_recordset OUT t_ref_cur);
END;
CREATE OR REPLACE
PACKAGE BODY TESTER AS
PROCEDURE getRS (p_recordset OUT t_ref_cur) AS
BEGIN
OPEN p_recordset FOR
SELECT
name,
value
FROM
Parameters;
END;
END;For this type of procedure call, you should first have the ref cursor declaration like below
declare
cur tester.t_ref_cur;
begin
tester.getRS (cur);
for i in cur
loop
dbms_output.put_line(i.name);
end loop;
close cur;
end;Using sys_refcursor also, your handling will be same as shown above......sys_refcursor and normal weak ref cursor only make difference if it is stand alone procedure -
Error : PLS-00306: wrong number or types of arguments
Hi,
I have created a function :
create or replace procedure Test11 AS
x Test.Emp_No%Type;
Begin
select emp_no into x from Test where name = 'Sud';
x := x + 1;
update Test set emp_no = x where emp_no < 100;
commit;
end Test11;
This has compiled successfully in PL/SQL Developer. Now, I have created an executable of this procedure in Front end - 11i. And then I have created a Program of this executable. Then I have added this program to a request group.
Now that I am running this request and I getting this error in the log :
ORACLE error 6550 in FDPSTP
Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'TEST11'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
.Hi,
Your procedure is a little confusing. By the way, this procedure has no parameters and I supose that maybe you are calling it with some parameter. Could you check this please?
Tip: post your code inside tags (start and end tag are the same) to proper formatting :)
Regards,
Edited by: Walter Fernández on Dec 3, 2008 10:53 AM - Adding tip... -
Error: wrong number or types of arguments
Getting the following error:-
wrong number or types of arguments in call to 'XMLTYPE'
with the following insert statement:-
INSERT INTO com_xml(name,content)
VALUES (V_FILENAME,XMLType(bfilename('EMAIL_ATTACH', 'JobInstructions.xml')));
Any ideas for a fix folks?hi guys
managed a work around with utl_file
DECLARE
V_FILENAME VARCHAR2(20):= 'JobInstructions.xml';
V_PATH VARCHAR2(100):= '/oracle/attachments';
+V_XML CLOB; --HOLDS THE CONTENTS OF THE XML FILE TO BE INSERTED IN TO THE DATABASE+
+VNEWLINE VARCHAR2(200):= ''; --HOLDS THE LINE TO INSERTED IN TO V_xml+
+VSFILE utl_file.file_type; --HOLDS THE FILE+
BEGIN
VSFile := utl_file.fopen(V_PATH, V_FILENAME,'r');
IF utl_file.is_open(VSFILE) THEN
LOOP
BEGIN
utl_file.get_line(VSFILE, vNewLine);
IF vNewLine IS NULL THEN
EXIT;
ELSE
V_XML := V_XML||vNewLine;
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXIT;
END;
END LOOP;
END IF;
--insert the file into com_xml+
--INSERT THE FILE CONTENTS+
INSERT INTO COM_XML(name,content)
VALUES ('STEW',XMLType(V_XML));
end; -
Error PLS-00306: wrong number or types of arguments in call to
I am getting the following Error when calling stored Procedure, I have tried with Last Parameter PRESULT and WITHOUT IT, it fails in both the instance.
=======================================================================
"System.Data.OracleClient.OracleException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'UPDATECOTRACKING'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
=======================================================================
signature of Stored Procedure is as follow
(pmaster_key IN sca_costtrackinglog.master_key%type,
pdoc_master_key IN sca_costtrackinglog.master_key%type,
pfrenumber IN sca_costtrackinglog.fre_number%type,
pnotice1 IN sca_costtrackinglog.notice1%type,
pnotice2 IN sca_costtrackinglog.notice2%type,
padditreceived IN sca_costtrackinglog.additreceived%type,
pfreanticipate IN sca_costtrackinglog.freanticipate%type,
pdateofnot IN sca_costtrackinglog.dateofnot%type,
pdateofmeeting IN sca_costtrackinglog.dateofmeeting%type,
psenttocontractor IN sca_costtrackinglog.senttocontractor%type,
pcouforexecution IN sca_costtrackinglog.couforexecution%type,
pcomments IN sca_costtrackinglog.comments%type,
pcreateby IN sca_costtrackinglog.createby%type,
peditby IN sca_costtrackinglog.editby%type,
presult OUT number) is
This is the Trace of Parameters from actual Call, that fails with above error.
Parameter Name : PMASTER_KEY(Input),Type(AnsiString) Size(26), Value = 000328JYA30008HSWBCK01NYC
Parameter Name : pdoc_master_key(Input),Type(AnsiString) Size(26), Value = 310657KLF30025HSWBCK01NYC
Parameter Name : PFRENUMBER(Input),Type(AnsiString) Size(12), Value = 00015
Parameter Name : PNOTICE1(Input),Type(DateTime) Size(1), Value = 3/25/2010
Parameter Name : PNOTICE2(Input),Type(DateTime) Size(1), Value =
Parameter Name : PADDITRECEIVED(Input),Type(DateTime) Size(1), Value =
Parameter Name : PFREANTICIPATE(Input),Type(DateTime) Size(1), Value =
Parameter Name : PDATEOFNOT(Input),Type(DateTime) Size(1), Value =
Parameter Name : PDATEOFMEETING(Input),Type(DateTime) Size(1), Value =
Parameter Name : PSENTTOCONTRACTOR(Input),Type(DateTime) Size(1), Value =
Parameter Name : pcouforexecution(Input),Type(DateTime) Size(1), Value =
Parameter Name : pcomments(Input),Type(AnsiString) Size(250), Value =
Parameter Name : PCREATEBY(Input),Type(AnsiString) Size(50), Value = NYCSCA\tmpns2
Parameter Name : PEDITBY(Input),Type(AnsiString) Size(50), Value = NYCSCA\tmpns2
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Below is the trace from Data.OracleClient.OracleCommandBuilder.DeriveParameters(Cmd)
Parameter Name : PMASTER_KEY(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PDOC_MASTER_KEY(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PFRENUMBER(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PNOTICE1(Input),Type(DateTime) Size(0), Value =
Parameter Name : PNOTICE2(Input),Type(DateTime) Size(0), Value =
Parameter Name : PADDITRECEIVED(Input),Type(DateTime) Size(0), Value =
Parameter Name : PFREANTICIPATE(Input),Type(DateTime) Size(0), Value =
Parameter Name : PDATEOFNOT(Input),Type(DateTime) Size(0), Value =
Parameter Name : PDATEOFMEETING(Input),Type(DateTime) Size(0), Value =
Parameter Name : PSENTTOCONTRACTOR(Input),Type(DateTime) Size(0), Value =
Parameter Name : PCOUFOREXECUTION(Input),Type(DateTime) Size(0), Value =
Parameter Name : PCOMMENTS(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PCREATEBY(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PEDITBY(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PRESULT(Output),Type(VarNumeric) Size(0), Value =
******************************************************************************************************************In the Oracle database, the body of the package FWA_PRI API, the procedure ValidatePri declares P_PriREc as being :
PAYMENT_REQUEST_IMPORT%ROWTYPE
As you can see above, the DoPri Procedure expects a type p_PriRec as its second argument.
Therefore in my procedure I do the following:
create or replace procedure spMatchPayment is
BEGIN
DECLARE
CURSOR StageCurs IS SELECT * FROM PAYMENT_REQUEST_IMPORT;
p_payment_req_import PAYMENT_REQUEST_IMPORT%ROWTYPE;
BEGIN
OPEN StageCurs();
LOOP
FETCH StageCurs INTO P_payment_req_import;
EXIT WHEN StageCurs%NOTFOUND;
fwa_pri.DoPri(NULL, fwa_pri.DoPri('M',P_PriRec => p_payment_req_import);
END LOOP;
CLOSE StageCurs;
END;
end spMatchPayment;
Now, when I am trying to compile I am getting the Compilation errors for PROCEDURE IMPACT.SPMATCHPAYMENT
Error: PLS-00306: wrong number or types of arguments in call to 'DOPRI'
Line: 16
Text: fwa_pri.DoPri(NULL,P_PriRec => p_payment_req_import);
I don't see what's wrong on my code......HELP!! -
PLSQL Concurrent error: wrong number or types of arguments in call
Hi there,
I've defined a PLSQL Concurrent with 2 parameters:
10) DELIVERABLE_ID using valueset 10/Number (A 10 digit positive number field with no validation)
20) STATUS using valueset 10 Characters (10 Characters free text with no validation)
My request run into error, with parameter values DELIVERABLE_ID = 105367,STATUS=New
Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'EBOARD_WF_START'
ORA-06550: line 1, column 7:
But I ran the the same PLSQL from toad
ADB_PA_BC_WF.EBOARD_WF_START (105367,'New');
I dont have any error, it completed successfully.
Any clue what gone wrong?You need to define package / procedure with RETCODE and ERRBUF arguments to call as concurrent program.
procedure my_cp
( errbuf out varchar2,
retcode out varchar2,
p_arg1 in varchar2,
p_arg2 in varchar2
Regards,
Gareth -
PLS-00306: wrong number or types of arguments in call to . Error Help
I have create a algorithm which The member function at the end, returns xc and yc.
ERROR at line 9:
ORA-06550: line 9, column 63:
PLS-00306: wrong number or types of arguments in call to 'o'
ORA-06550: line 9, column 2:
PL/SQL: Statement ignoredGuess your function has: RETURN NUMBER
If so, the statement RETURN 'True' will give you exactly that error.
Also:
Return xc;
Return yc;
does not work as intended. The function will end by returning xc. (If it ever makes it that far)
Maybe you are looking for
-
SAVE TEXT not updating the database for Recipe Operation Long Texts
Hi, We are trying to update the Recipe Operation long text using the FM SAVE_TEXT. The FM is not throwing any error, but the changes are not reflecting in the database. Text ID: PLPO Text Object: ROUTING Language: EN Text Name: Concatenated string of
-
Profitability and Cost management application not available in workspace
Hi All, I hope somebody in this forum can help me with this. i have built a profitability and cost management application in workspace . I have validated and deployed it sucessuflly. But when i try to open the application , i am not able to see the p
-
Hierarchy node inputs in BEX query
Hi, We have couple of BEX queries that has input variables with hierarchies, users like to type the multiple nodes in the hierarchy directly into the variable screen instead of expanding the hierarchy and picking the required nodes, is it possible, i
-
A orion plugin to enable a private git repository
Hi, I need to build an application flow using orion plugins. I have several plugins to deploy on my application. So I need some help. Here is the statement : When Editing a user file, I want a plugin that saves the content of the editor and check it
-
Intermittent Flashing Question Mark Folder
I've got a iBook g4 that seems to be having an intermittent problem booting. A few months back on boot it came up with a flashing question mark folder. After trying a few things it finally booted OK. For months all was good; until yesterday. The same