Trying to Execute Catalog SSIS Package using Catalog stored proc by a Master SSIS package inside a Loop

Hi Guys ,
To Execute Packages deployed in Catalog , I have created a wrapper SP  which internally calls  catalog SP  ( below is the code )
ALTER PROCEDURE [Publish].[usp_ExecutePackages]
              @PackageName NVARCHAR(255) 
       ,      @ProjectFolder    NVARCHAR(255) 
       ,      @ProjectName NVARCHAR(255) 
AS    
BEGIN
SET NOCOUNT ON;
DECLARE @Execution_id BIGINT ;
EXEC [SSISDB].[catalog].[create_execution] @package_name
= @PackageName
,   @execution_id
= @Execution_id OUTPUT
,   @folder_name
= @ProjectFolder
,   @project_name
= @ProjectName
,   @use32bitruntime=
True;
EXEC [SSISDB].[catalog].[set_execution_parameter_value] 
@execution_id,  
@object_type=50, 
@parameter_name=N'SYNCHRONIZED', 
@parameter_value=1
EXEC [SSISDB].[catalog].[start_execution]            @Execution_id
Since i have multiple Packages , I am looping through list of PackageName and trying to pass package names to this SP by ExecureSQLTask inside ForLoop Container . But it errors out saying 
 "Cannot access the package or the package does not exist. Verify that the package exists and that the user has permissions to it.
BUt same Execute SQL task , if i keep it outside the ForLoop Container it works perfectly fine . 
I am  clueless , Please Please HELP me ASAP :( 
Question :
How is that possible to execute same SP with same parameter outside Container , But not in SEQUENCE or FORLOOP or FOREACH Container ?
Also 
How to make a master package to execute SSIS deployed packages via TSQL using catalog stored proc ?
Please help me out .
Thanks 
Prasanna Selvaraju

Hi , 
After debugging i am getting parameter values as  
{Extract - ARTL.dtsx\r\n} Unable to evaluate the expression.
Why do i get  \r\n which i dont want in parameters .
Actually i pick the values of package name from a custom table . I check it there are no spaces in the cell.
Any IDEA WHY ? Please help
Finally it worked to call Wrapper Class for EXEC [SSISDB].[catalog].[create_execution]
stored procedure .
Basically , ERROR MESSAGE is culprit
 "Cannot access the package or the package does
not exist. Verify that the package exists and that the user has permissions to it. 
Above Message : causing us to think
its an Access issue , But actually when you pass parameter incorrectly even a " " space or "\n" extra to value, you will get that error .
Nothing related to access problem .
Actually , In the parameter which i was passing :
{Extract - ARTL.dtsx\r\n} --> String with Enter / Carriage Return and Break line was there 
I have removed the Enter in that variable value .
Now its WORKING FINE ! Hurry :D :) 

Similar Messages

  • Getting error while trying to execute a external job using dbms_scheduler

    Hello,
    I create a job using alpha account.
    begin
    dbms_scheduler.create_job(
    job_name => 'jps_test_executable',
    job_type => 'EXECUTABLE',
    job_action => '/usr/bin/ksh',
    number_of_arguments => 2
    dbms_scheduler.set_job_argument_value (
    job_name => 'jps_test_executable',
    argument_position => 1,
    argument_value => '/tmp/abc.sh'
    and when I execute the job in the schema using alpha account it works fine.
    BEGIN
    DBMS_SCHEDULER.run_job (job_name => 'jps_test_executable',
    use_current_session => FALSE);
    END;
    Works fine.
    But if I try to execute the same job using some other account say beta in the same schema , I am getting error
    ORA-27476 :”SMS.RUN_SMS_JOBS Does not exist ORA-06512 at “SYS.DBMS_ISCHED” line 2793 ORA-06512 :at “SYS.DBMS_SCHEDULER”,line 1794
    even I give the fill qualifier, still I am getting the error.
    BEGIN
    DBMS_SCHEDULER.run_job (job_name => 'alpha.jps_test_executable',
    use_current_session => FALSE);
    END;
    Any help will be appreciated.
    Thank you,
    Raj

    It's the expected behavior:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm#CIHHBGGI
    RUN_JOB requires that you be the owner of the job or have ALTER privileges on that job. You can also run a job if you have the CREATE ANY JOB privilege.So, you need to grant the required privilege:
    aplha@orcl> grant alter on alpha.jps_test_executable to beta;HTH
    Enrique
    PS If your problem was solved consider marking the question as answered.

  • Can't execute OS-level command from java stored proc

    I've written a couple simple java stored procs, the first of which writes an file and the second attempts a chown on it. I can write the file (which is written as the oracle user) just fine. I need to chown it, but can't. Here's the first proc:
    public static String writefile()
    String fileName = "/joetest/test.xml";
    try {
    File f = new File(fileName);
    FileOutputStream out = new FileOutputStream(f);
    PrintStream p = new PrintStream(out);
    p.println("this is only a test");
    p.close();
    return "create file successful!!!";
    } catch (Exception e) {
    return "Exception occurred writing file:"+e;
    Here's the proc I've been stuggling with:
    public static String chown(String inString)
    String[] command = {"/bin/sh", "-c", "/usr/bin/chown notjoe /joetest/test.xml"};
    if (inString != null) {
    command[2] = inString;
    try {
    Process p = Runtime.getRuntime().exec(command);
    return "Ownership change success!! "+p;
    } catch (Exception e) {
    return "Ownership change failure?? err="+e;
    The package is created with:
    CREATE OR REPLACE PACKAGE JOE.THISISATEST AS
    FUNCTION writefile
    return VARCHAR2
    AS
    LANGUAGE java
    NAME 'thisisatest.writefile() return java.lang.String';
    FUNCTION chown(Param1 VARCHAR2)
    return VARCHAR2
    AS
    LANGUAGE java
    NAME 'thisisatest.chown(java.lang.String) return java.lang.String';
    end;
    And I've granted the following privileges:
    begin
    dbms_java.grant_permission('JOE', 'java.io.FilePermission', '/joetest/test.xml', 'read, write, execute, delete');
    end;
    begin
    dbms_java.grant_permission('JOE', 'java.io.FilePermission', '/usr/bin/chown', 'execute');
    end;
    begin
    dbms_java.grant_permission('JOE', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    end;
    begin
    dbms_java.grant_permission('JOE', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    end;
    Here's the error that I'm getting:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Coincidentally, this is the same error that I used to get when I wrote the file without having been granted write privileges. Once I granted myself the proper 'write' permissions I could perform file IO just fine. Is there some runtime permission that I need to grant myself to run chown? I'm just guessing, as I can't find any permission like that in the java documentation. I have 'execute' permission on /usr/bin/chown and the oracle user can execute the command I'm attempting from the command line. ARRRRRGH.
    I am at my wits end with this. I've tried what seems like a thousand different syntaxes for the OS command and ran it from many different directories. Anyone have any thoughts at all as to why this is happening? I'm just clutching at straws now...

    Hmmmm. Granting 'execute' on '<<ALL FILES>>' to user JOE fixes this problem:
    begin
    dbms_java.grant_permission('JOE', 'java.io.FilePermission', '<<ALL FILES>>', 'execute');
    end;
    My security folks will not allow this when I port to production, but at least it is something.
    Message was edited by:
    user603023

  • Different ways to return results using a stored proc to calling application

    Hi, Can someone please suggest me different ways of returning results( set of rows and columns) from a stored procedure to calling application.
    Currently I am using sys_refcursor to return results to front end. Stored proc is executed fast, but cursor access and retrieval of results has some overhead.
    So can you suggest the ways which will be faster than this approach.
    Thanks.

    Currently the procedure executes quickly but the results from the ref cursor are returned slowly, this is because the query is slow, for whatever reason.
    Collecting in all the rows in the stored procedure first before returning them will
    a) Make the stored procedure slower taking the same amount of time to execute as current query takes to complete.
    b) Use more memory.
    c) Put more stress on the network as all rows will be transferred at once instead of using the arraysize/fetchsize to to fetch the rows in smaller packets.

  • Generating CSV file using java/ stored proc

    Hi Folks,
    I am using Oracle 11g DB
    My requirement is that I have to generate a CSV file which has customer details. Each value that is comma separated comes from different set of SQL queries. I want to write a stored procedure along with java code to acieve this. How do I go about it? Should I return multiple cursors from my stored proc and iterate from the java side to create the CSV file? Any other suggestions?
    Thanks
    Vishal

    >
    I am using Oracle 11g DB
    My requirement is that I have to generate a CSV file which has customer details. Each value that is comma separated comes from different set of SQL queries. I want to write a stored procedure along with java code to acieve this. How do I go about it? Should I return multiple cursors from my stored proc and iterate from the java side to create the CSV file? Any other suggestions?
    >
    Other suggestions? Yes - don't reinvent the wheel - it has already been created.
    1. Tom already wrote such a proc and published it many years ago. See this AskTom thread
    http://asktom.oracle.com/pls/asktom/f?p=100:11:::::P11_QUESTION_ID:235814350980
    2. See BluShadow's link from the '5. How do I read or write an Excel file?' question in the FAQ at the top of the sql and pl/sql forum
    SQL and PL/SQL FAQ
    3. Use a sql developer query like 'select /*csv*/ * from emp
    4. Search the sql and pl/sql forum for csv and use of the many threads that already answer this.

  • Ssis 2012 parallel execution of ssis packages using catalog database hangs

    i have a simple ssis package in 2012 where I am executing several data flow tasks in parallel using sequence containers, however very often the sql job just runs forever although all the tables have been loaded or I cant see whats going on, the job neither
    fails nor succeeds, just goes on executing,is there an issue with executing several data flow tasks in parallel, why does the job continue to run forver, how to troubleshoot and fix the error, please guide, are there any issues using the catalog db execution,
    is that the reason this behavior is showing?

    multiple execute sql tasks within sequence containers running to execute the ssis packages deployed in ssisdb in sunchronous mode using the catalog database execution model
    all of the ssis packages that have the data flow taks retrieve data from source to 3 different tables.
    some of them push data into the same table.
    please let me know if you need more information.
    the job just runs forever, looks like all the data flow tasks ran and it is still running, because I don't see an increase in the row count of the tables, I may be wrong, if I check the execution status, 1 task does not show as succeeded, I don't know why
    thanks  a lot for ur help, ur help is much appreciated nik

  • Using Oracle Stored Proc as Data Source for PowerBuilder Data Window Object

    Hi,
    I'm trying to use an Oracle stored procedure as the data source for a PowerBuilder data window object. I'm using the following (which is a variation of an example given on Sybase's web site, with the appropriate database/column name changes and use of %TYPE):
    ======================
    CREATE OR REPLACE PACKAGE pkg_dw_sp_example
    AS
    TYPE typ_example_rec1 IS RECORD(
    v_comcodsa st_sa.comcodsa%TYPE,
    v_comnamsa st_sa.comnamsa%TYPE,
    v_cocitysa st_sa.cocitysa%TYPE);
    TYPE cur_example_cur1 IS REF CURSOR;
    RETURN typ_example_rec1;
    END;
    ======================
    CREATE OR REPLACE PROCEDURE sp_dw_example1
    (arg_teamid IN st_sa.comcodsa%TYPE,
    cur_team IN OUT pkg_dw_sp_example.cur_example_cur1)
    AS
    BEGIN
    OPEN cur_team FOR
              SELECT comcodsa,
              comnamsa,
              cocitysa
              FROM st_sa
              WHERE st_sa.comcodha = arg_teamid;
    END sp_dw_example1;
    ======================
    The package is created okay, but the procedure is saved with compilation errors. Unfortunately, Oracle does not indicate what the errors are (great product), so I have no idea what it is complaining about.
    Questions:
    1) Can anyone point me to/or provide a better example?
    2) The examples in books I have seen all would have declared the procedure in the package specification - is the above valid?
    3) This is a PowerBuilder specific question, but if the package does not show up in the stored procedure list when creating a data window object, how does one use it as a data source?
    Oracle 8.1.7
    PowerBuilder 8.0.1
    Thanks,
    Ed Holloman

    1) Everything looks fine with your code. You did not mention the environment you are compiling your code in, but if it is SQL*Plus, you can type 'show errors' after the compile and it will list the errors and line numbers for you.
    2) You can include the procedure in the package - in which case you would have a procedure declaration in the spec and the actual procedure in the body. You would no longer include the 'create or replace' - the declaration and procedure would just start with 'procedure'. The spec would look include:
    PROCEDURE sp_dw_example1
      (arg_teamid IN st_sa.comcodsa%TYPE,
       cur_team OUT cur_example_cur1);Note the removal of the package reference (since we are now IN the package) and the second parameter is just OUT instead of IN OUT.
    3) Not much, but I know that in PB8, our developers have said they have visibility now to the package when creating a DW - something they didn't have in PB7. Previously, we had to create a dummy standalone procedure that they would select and they would later modify the code to include the package prefix.
    Hope this helps a bit.

  • Populating OBIEE event polling table S_NQ_EPT using Informatica/Stored Proc

    Hi,
    We have successfully setup OBIEE event polling Table S_NQ_EPT; and OBIEE cache purging mechanism is working fine.
    If anybody has done any setup for event polling table which gets updated after/in DAC execution Plan run using informatica/Oracle SP.
    Can anybody suggest pointers on how to insert rows in S_NQ_EPT after DAC run using informatica/DAC/Oracle Stored Procedure?
    Thanks in Advance,

    HI Srini,
    Thanks for reply.. yeah we have setup event polling table and all steps mentioned on site are done.. We want to populate event polling table after ETL run, any pointers?
    Thanks,

  • Error while trying to execute program in OBPM Studio workspace

    Hi All,
    I installed OBPM and tried to execute a sample program using workspace. I could see the below error.
    The Process '/SampleProcess#Default-1.0' is not available.
    The Process '/SampleProcess#Default-1.0' is not available. Caused by: Process '/SampleProcess#Default-1.0' not available. Caused by: Engine 'SampleSepVar' cannot process requests.
    The same is the case, when I tried to work on Expense managenenent(the sample application provided by Oracle).
    Can some one help me?
    Thanks in advance
    Lal
    Edited by: Laloo on Apr 18, 2010 8:10 AM

    You're getting this probably because you have errors in your project. Click the "Problems" tab.
    Dan

  • Problem executing a web service using adaptive web service model

    Hi,<br/>
    I'm trying to execute a web servide using the adaptive web service model. The web service is generated by a java web application using apache axis 1.2<br/>
    I can import the model without problems, but when I try to run the application (containing a form for parameters, a button to execute the web service and a table to show results) it gives the following exception: <br/><br/>
    <code>
    java.lang.IllegalArgumentException: Target role name 'GetProductMaster' not defined for model class 'Request_GetProductMaster'
         at com.sap.tc.webdynpro.model.webservice.base.model.BaseGenericModelClass.retrieveTargetRoleInfo(BaseGenericModelClass.java:93)
         at com.sap.tc.webdynpro.model.webservice.base.model.BaseGenericModelClass.getRelatedModelObject(BaseGenericModelClass.java:388)
         at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass.getRelatedModelObject(WSTypedModelClass.java:66)
         at com.baufest.goe.wstest.model.Request_GetProductMaster.getGetProductMaster(Request_GetProductMaster.java:46)
         at com.baufest.goe.wstest.app.wdp.IPublicTestWS2App$IGetProductMasterNode.doSupplyElements(IPublicTestWS2App.java:529)
         at com.sap.tc.webdynpro.progmodel.context.Node.supplyElements(Node.java:406)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementList(Node.java:345)
         at com.sap.tc.webdynpro.progmodel.context.Node.createMappedElementList(Node.java:498)
         at com.sap.tc.webdynpro.progmodel.context.Node.supplyElements(Node.java:393)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementList(Node.java:345)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElements(Node.java:333)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:615)
         at com.sap.tc.webdynpro.progmodel.context.Paths.followPath(Paths.java:897)
         at com.sap.tc.webdynpro.progmodel.context.Paths.followPath(Paths.java:852)
         at com.sap.tc.webdynpro.progmodel.context.Paths.isValid(Paths.java:612)
         at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField._isValidBindingOfPrimaryProperty(AbstractInputField.java:1167)
         at com.sap.tc.webdynpro.progmodel.view.UIElement.getEnabled(UIElement.java:364)
         at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.Label._isEnabled(Label.java:115)
         at com.sap.tc.webdynpro.progmodel.view.UIElement.getEnabled(UIElement.java:364)
         at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.LabelAdapter.getEnabled(LabelAdapter.java:213)
         at com.sap.tc.ur.renderer.ie6.LabelRenderer.render(LabelRenderer.java:84)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.renderMatrixLayoutCellFragment(MatrixLayoutRenderer.java:790)
         at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.renderMatrixLayoutRowFragment(MatrixLayoutRenderer.java:376)
         at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.renderMatrixLayoutFragment(MatrixLayoutRenderer.java:326)
         at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.render(MatrixLayoutRenderer.java:79)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:619)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:74)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:254)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:210)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:49)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:619)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:74)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.UiWindowRenderer.render(UiWindowRenderer.java:52)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendHtml(HtmlClient.java:1042)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.fillDynamicTemplateContext(HtmlClient.java:455)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:1229)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:252)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRetrieveData(WindowPhaseModel.java:595)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:156)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    </code>
    <br/><br/>
    The model is imported without errors, and gives the following tree:<br/><br/>
    <ul>
    <li>ProdMast</li>
    <ul>
    <li>                                          Model Classes</li>
    <ul>
    <li>                                                   GetProductMaster</li>
    <li>                                                   GetProductMasterResponse</li>
    <ul><li>                                                             GetProductMasterReturn</li></ul>
    <li>                                                   Product</li>
    <li>                                                   Request_GetProductMaster</li>
    <ul><li>                                                             GetProductMaster</li>
    <li>                                                             Response</li></ul>
    <li>                                                   Response_GetProductMaster</li>
    <ul><li>                                                             Fault</li>
    <li>                                                             GetProductMasterResponse</li></ul>
    <li>                                                   WebServiceException</li>
    </ul></ul></ul>
    <br/><br/>
    If you know what could be causing this problem or a way to make it work please let me know<br/>
    Thanks,<br/>
    Guillermo

    The WSDL that I'm using (generated by Apache Axis) is the following:<br/><br/>
    <code>
    &lt;?xml version="1.0" encoding="UTF-8"?&gt;<br/>&lt;wsdl:definitions targetNamespace="http://XXX.XXX.XXX.XXX:9876/axis/services/WebMasterData" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://XXX.XXX.XXX.XXX:9876/axis/services/WebMasterData" xmlns:intf="http://XXX.XXX.XXX.XXX:9876/axis/services/WebMasterData" xmlns:tns1="http://ws.web.test.company.com" xmlns:tns2="urn:Product" xmlns:tns3="urn:WebServiceException" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;<br/>&lt;!WSDL created by Apache Axis version: 1.2<br/>Built on May 03, 2005 (02:20:24 EDT)&gt;<br/> &lt;wsdl:types&gt;<br/>  &lt;schema elementFormDefault="qualified" targetNamespace="http://ws.web.test.company.com" xmlns="http://www.w3.org/2001/XMLSchema"&gt;<br/>   &lt;import namespace="urn:WebServiceException"/&gt;<br/>   &lt;import namespace="urn:Product"/&gt;<br/>   &lt;element name="getProductMaster"&gt;<br/>    &lt;complexType&gt;<br/>     &lt;sequence&gt;<br/>      &lt;element name="sessionId" type="xsd:string"/&gt;<br/>      &lt;element name="language" type="xsd:string"/&gt;<br/>     &lt;/sequence&gt;<br/>    &lt;/complexType&gt;>
       &lt;/element&gt;<br/>   &lt;element name="getProductMasterResponse"&gt;<br/>    &lt;complexType&gt;<br/>     &lt;sequence&gt;<br/>      &lt;element maxOccurs="unbounded" name="getProductMasterReturn" type="tns2:Product"/&gt;<br/>     &lt;/sequence&gt;<br/>    &lt;/complexType&gt;<br/>   &lt;/element&gt;<br/>  &lt;/schema&gt;<br/>  &lt;schema elementFormDefault="qualified" targetNamespace="urn:Product" xmlns="http://www.w3.org/2001/XMLSchema"&gt;<br/>   &lt;import namespace="urn:WebServiceException"/&gt;<br/>   &lt;complexType name="Product"&gt;<br/>    &lt;sequence&gt;<br/>     &lt;element name="num_conv_stat_cs" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="cat_desc" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="prod_typ" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="dst_chan" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="old_prod_nbr" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="slsorg" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="id" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="div" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="nwt_val" nillable="true" type="xsd:decimal"/&gt;<br/>     &lt;element name="sls_uom" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="den_conv_alt_uom" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="nwt_un" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="num_conv_layer" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="prod_grp" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="brn_desc" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="hilgt" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="num_conv_pl" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="den_conv_stat_cs" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="den_conv_layer" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="extl_prod_nbr" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="net_vol_un" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="num_conv_alt_uom" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="den_conv_pl" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="bs_uom" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="net_vol_val" nillable="true" type="xsd:decimal"/&gt;<br/>     &lt;element name="prod_desc" nillable="true" type="xsd:string"/&gt;<br/>    &lt;/sequence&gt;<br/>   &lt;/complexType&gt;<br/>  &lt;/schema&gt;<br/>  &lt;schema elementFormDefault="qualified" targetNamespace="urn:WebServiceException" xmlns="http://www.w3.org/2001/XMLSchema"&gt;<br/>   &lt;import namespace="urn:Product"/&gt;<br/>   &lt;complexType name="WebServiceException"&gt;<br/>    &lt;sequence/&gt;<br/>   &lt;/complexType&gt;<br/>  &lt;/schema&gt;<br/>  &lt;schema elementFormDefault="qualified" targetNamespace="http://XXX.XXX.XXX.XXX:9876/axis/services/WebMasterData" xmlns="http://www.w3.org/2001/XMLSchema"&gt;<br/>   &lt;import namespace="urn:WebServiceException"/&gt;<br/>   &lt;import namespace="urn:Product"/&gt;<br/>   &lt;element name="fault" type="tns3:WebServiceException"/&gt;<br/>  &lt;/schema&gt;<br/> &lt;/wsdl:types&gt;<br/>   &lt;wsdl:message name="WebServiceException"&gt;<br/>      &lt;wsdl:part element="impl:fault" name="fault"/&gt;<br/>   &lt;/wsdl:message&gt;<br/>   &lt;wsdl:message name="getProductMasterRequest"&gt;<br/>      &lt;wsdl:part element="tns1:getProductMaster" name="parameters"/&gt;<br/>   &lt;/wsdl:message&gt;<br/>   &lt;wsdl:message name="getProductMasterResponse"&gt;<br/>      &lt;wsdl:part element="tns1:getProductMasterResponse" name="parameters"/&gt;<br/>   &lt;/wsdl:message&gt;<br/>   &lt;wsdl:portType name="WebMasterData"&gt;<br/>      &lt;wsdl:operation name="getProductMaster"&gt;<br/>         &lt;wsdl:input message="impl:getProductMasterRequest" name="getProductMasterRequest"/&gt;<br/>         &lt;wsdl:output message="impl:getProductMasterResponse" name="getProductMasterResponse"/&gt;<br/>         &lt;wsdl:fault message="impl:WebServiceException" name="WebServiceException"/&gt;<br/>      &lt;/wsdl:operation&gt;<br/>   &lt;/wsdl:portType&gt;<br/>   &lt;wsdl:binding name="WebMasterDataSoapBinding" type="impl:WebMasterData"&gt;<br/>      &lt;wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/&gt;<br/>      &lt;wsdl:operation name="getProductMaster"&gt;<br/>         &lt;wsdlsoap:operation soapAction=""/&gt;<br/>         &lt;wsdl:input name="getProductMasterRequest"&gt;<br/>            &lt;wsdlsoap:body use="literal"/&gt;<br/>         &lt;/wsdl:input&gt;<br/>         &lt;wsdl:output name="getProductMasterResponse"&gt;<br/>            &lt;wsdlsoap:body use="literal"/&gt;<br/>         &lt;/wsdl:output&gt;<br/>         &lt;wsdl:fault name="WebServiceException"&gt;<br/>            &lt;wsdlsoap:fault name="WebServiceException" use="literal"/&gt;<br/>         &lt;/wsdl:fault&gt;<br/>      &lt;/wsdl:operation&gt;<br/>   &lt;/wsdl:binding&gt;<br/>   &lt;wsdl:service name="WebMasterDataService"&gt;<br/>      &lt;wsdl:port binding="impl:WebMasterDataSoapBinding" name="WebMasterData"&gt;<br/>         &lt;wsdlsoap:address location="http://XXX.XXX.XXX.XXX:9876/axis/services/WebMasterData"/&gt;<br/>      &lt;/wsdl:port&gt;<br/>   &lt;/wsdl:service&gt;<br/>&lt;/wsdl:definitions&gt;<br/>
    </code>

  • Crystal Report using Stored Proc in JSP problem

    Hello,
    I am running a simple report using a stored proc(oracle). It runs fine when I run the report through Crystal. But when I tried running it using JSP it gives me this exception -
    com.crystaldecisions.report.web.viewer.CrystalRepo rtViewer
    Error formatting page : Unexpected Query Engine error
    Can some one pls advise why I am not able to run this report through JSP?
    My other reports with simple sql runs fine in my JSP.
    Here is my stored proc --
    PACKAGE BODY MY_TEST
    AS
    PROCEDURE getrecordset
    p_cursor OUT cursor_type
    IS
    BEGIN
    OPEN p_cursor FOR
    SELECT
    FROM
    DSR_CLASS_SET;
    END;
    END MY_TEST;

    Thanks for your comments.
    If I run the same query, report runs fine. So I guess it should also able to run this stored proc.
    Here is the detailed error ---
    Category:     com.crystaldecisions.reports.reportengineinterface
    Message:          failed to process getPage request
    Location:     
    Thrown:
    com.crystaldecisions.reports.reportengineinterface.EngineException: Error formatting page : Unexpected Query Engine error
         at com.crystaldecisions.reports.reportengineinterface.Engine.getPage(Unknown Source)
         at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getPage(Unknown Source)
         at com.crystaldecisions.report.web.viewer.ReportAgent.a(Unknown Source)
         at com.crystaldecisions.report.web.viewer.CrystalReportViewer.goto(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
         at jsp_servlet._crystal.__test._jspService(__test.java:225)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Caused by: com.crystaldecisions.reports.formatter.formatter.c: Unexpected Query Engine error
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.<init>(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.d.j.<init>(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.d.j.if(Unknown Source)
         ... 19 more
    Caused by: com.crystaldecisions.reports.dataengine.k: Unexpected Query Engine error
         at com.crystaldecisions.reports.dataengine.ap.case(Unknown Source)
         at com.crystaldecisions.reports.dataengine.ap.jO(Unknown Source)
         at com.crystaldecisions.reports.dataengine.ap.aC(Unknown Source)
         at com.crystaldecisions.reports.dataengine.ap.aD(Unknown Source)
         at com.crystaldecisions.reports.dataengine.ap.case(Unknown Source)
         at com.crystaldecisions.reports.dataengine.au.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.a0.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.a0.aa(Unknown Source)
         at com.crystaldecisions.reports.dataengine.a0.<init>(Unknown Source)
         at com.crystaldecisions.reports.dataengine.a0.<init>(Unknown Source)
         at com.crystaldecisions.reports.dataengine.a0.a(Unknown Source)
         ... 23 more
    Caused by: com.crystaldecisions.reports.reportdefinition.datainterface.d: Unexpected Query Engine error
         at com.crystaldecisions.reports.reportdefinition.datainterface.b.a(Unknown Source)
         ... 34 more
    Caused by: com.crystaldecisions.reports.queryengine.al: Unexpected Query Engine error
         at com.crystaldecisions.reports.queryengine.driver.l.if(Unknown Source)
         at com.crystaldecisions.reports.queryengine.ao.dZ(Unknown Source)
         at com.crystaldecisions.reports.queryengine.ao.f(Unknown Source)
         at com.crystaldecisions.reports.queryengine.ao.dK(Unknown Source)
         at com.crystaldecisions.reports.queryengine.b0.dB(Unknown Source)
         at com.crystaldecisions.reports.queryengine.bz.a6(Unknown Source)
         ... 35 more
    Any guess why I get this?

  • Calling stored proc from java using ref cursor

    Hi All,
    We have a requirement to display all the records from a table on a JAVA screen. Due to some constraints, we have to write the query in the stored proc. We are trying to return a result set from the stored proc to the java code by using a ref cursor. Please refer to the code below.
    Following is the PL/SQL proc �
    procedure sp_user_course2(v1 OUT ref_cursor, persid in varchar2) as
    begin
    open v1 for
    SELECT lrn_exp_id, crs_name FROM emp_crs
    WHERE personid = persid;
    end;
    Here ref_cursor is of TYPE REF CURSOR declared in the package specification.
    The java code is �
    Callable stmt = conn.prepareCall("call sp_user_course2(?,?)");
    stmt.registerOutParameter(1,OracleTypes.CURSOR);
    stmt.setString(2,emplId);
    stmt.execute();
    OracleCallableStatement tstmt = (OracleCallableStatement) stmt;
    ResultSet rs = tstmt.getCursor (1);
    When I run the program, I get the following error (at stmt.execute()):
    [Oracle][ODBC][Ora]ORA-06553: PLS-306: wrong number or types of arguments in call to 'SP_USER_COURSE2' 6553
    Can anyone tell me what could be the problem with this code? I have read somewhere that REF CURSOR feature is available from Oracle 9i onwards. If so, then, is there any workaround for mapping REF CURSOR to Resultsets in Oracle 8i?

    These may help
    http://www.google.co.uk/search?q=jdbc+OracleTypes.CURSOR+tutorial

  • Using collection as a stored proc. parameter

    I have a requirement of a using a stored proc ('in') parameter as a collection and using it futher in the where clause of a sql query. What are my options here ? I am currently trying with a nested table, getting errors in using with sql query.
    What are my options here ?

    sql>create or replace type NumberTable as table of number;
      2  /
    Type created.
    sql>create or replace procedure p_test
      2    (p_list in NumberTable)
      3  is
      4    v_count pls_integer;
      5  begin
      6    select count(*)
      7      into v_count
      8      from table(p_list);
      9    dbms_output.put_line( 'Count: ' || v_count );
    10  end;
    11  /
    Procedure created.
    sql>declare
      2    v_list NumberTable := NumberTable(1, 2, 3, 4, 5);
      3  begin
      4    p_test(v_list);
      5  end;
      6  /
    Count: 5
    PL/SQL procedure successfully completed.There are some cases where you need to use CAST with the TABLE function:
    table(cast(p_list as NumberTable))

  • Using Stored Proc with CMP - Possible?

    Is it possible for me to use a stored proc for my CMP bean instead of the usual inline SQL?

    sorry, I mean for the ID field.

  • SSIS Package Deployment using Catalog services

    Hello All,
    I have SSIS Package developed using SSIS 2012,now whenever I try to deploy it using catalog service I am getting an error saying Create Master key or Restore master Key.
    Please advice me on this.
    Thanks,
    Santhosh
    Please have look on the comment

    Can you post the exact error message?
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

Maybe you are looking for

  • Missing BOOTMGR Windows Vista No Disk

    Hello, I need some help.  After doing a "Factory Recovery," my laptop won't boot to windows vista.  After booting, it won't finish the "Factory Recovery" process, and it ends with a black screen with the words "Missing BOOT MGR Crtl+Alt+Esc." The lap

  • Saving work part done

    I ran out of time so could not check it myself. If I have done a lot of work on a picture file in PSE9 but not completed it, can I save as a photoshop file to say my picture files then when I call the same file back into PSE9 will it open in the same

  • Twitter notification settings

    Hi there. Despite having my Twitter notification preferences set to 'following' I am still receiving them for 'all users'.  Anyone know if this is a software issue and/or if there is a fix?  I have the latest version, 4.4.0.11 Thank you in advance. D

  • Trouble Compiling links-hacked

    I'm trying to get links-hacked to compile.  Here's my PKGBUILD: pkgname=links-hacked pkgver=030709 pkgrel=1 pkgdesc="An enhanced version of links with support for tabs" pkgurl="http://xray.sai.msu.ru/~karpov/links-hacked/" url="http://xray.sai.msu.ru

  • Logic express serial number

    does anyone know where to find serial # on Logic Express? all I can see is a number on side of box underneath product name- this is on a "sticker". there is no number on printed docs. I saved everything that came in package; want to upgrade to Logic