Problems with output of a bpel process

Hi,
I have a process with the following schema:
<schema attributeFormDefault="qualified"
     elementFormDefault="qualified"
     targetNamespace="http://xmlns.oracle.com/BPELProcess1"
     xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://xmlns.oracle.com/BPELProcess1">
     <element name="BPELProcess1ProcessRequest">
          <complexType>
               <sequence>
                    <element name="marca" type="string"/>
               </sequence>
          </complexType>
     </element>
     <element name="BPELProcess1ProcessResponse">
          <complexType>
               <sequence>
                    <element name="carros" type="tns:carros"/>
               </sequence>
          </complexType>
     </element>
<complexType name="carro">
<sequence>
*<element name="DONO" type="decimal"/>*
<element name="MATRICULA" type="string"/>
<element name="MARCA" type="string"/>
</sequence>
</complexType>
<complexType name="carros">
<sequence>
<element name="carro" minOccurs="0" maxOccurs="unbounded" type="tns:carro"/>
</sequence>
</complexType>
</schema>
Then I transform the output data from a DB Adapter to my BPELProcess1ProcessResponse with the following transformation:
<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
<!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
<mapSources>
<source type="XSD">
<schema location="carrosORCL.xsd"/>
<rootElement name="carrosORCLOutputCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/carrosORCL"/>
</source>
</mapSources>
<mapTargets>
<target type="XSD">
<schema location="BPELProcess1.xsd"/>
<rootElement name="BPELProcess1ProcessResponse" namespace="http://xmlns.oracle.com/BPELProcess1"/>
</target>
</mapTargets>
<mapGenType type="ALL"/>
<!-- GENERATED BY ORACLE XSL MAPPER 10.1.3.4.0(build 080718.0645) AT [WED NOV 04 23:56:45 GMT 2009]. -->
?>
<xsl:stylesheet version="1.0" xmlns:tns="http://xmlns.oracle.com/BPELProcess1"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/carrosORCL"
exclude-result-prefixes="xsl xs ns0 tns bpws ehdr hwf xp20 xref ora ids orcl">
<xsl:template match="/">
<tns:BPELProcess1ProcessResponse>
<tns:carros>
<xsl:for-each select="/ns0:carrosORCLOutputCollection/ns0:carrosORCLOutput">
<tns:carro>
<tns:DONO>
<xsl:value-of select="ns0:DONO"/>
</tns:DONO>
<tns:MATRICULA>
<xsl:value-of select="ns0:MATRICULA"/>
</tns:MATRICULA>
<tns:MARCA>
<xsl:value-of select="ns0:MARCA"/>
</tns:MARCA>
</tns:carro>
</xsl:for-each>
</tns:carros>
</tns:BPELProcess1ProcessResponse>
</xsl:template>
</xsl:stylesheet>
The problem is that the element ns0:DONO (type=DECIMAL) from the db adapter is empty so the tag <DONO> doesn't appear in the output! Only if I "Set text = 0" in the transformation which is not a good solution.
Is there a better way to do this?
I already tried the following solution (doesn't do anything!):
"45.3.13 How to Control the Generation of Unmapped Target Elements
There are five options for controlling the generation of empty elements in the target XSL:
* Do not generate unmapped nodes (default option).
* Generate empty nodes for all unmapped target nodes.
* Generate empty nodes for all required, unmapped target nodes.
* Generate empty nodes for all nillable, unmapped target nodes.
* Generate empty nodes for all required or nillable, unmapped target nodes.
Set these options as follows:
* At the global level:
Select Tools > Preferences > XSL Maps. The global setting applies only when a map is created.
* At the map level:
Select XSL Generation Options from the map context menu. Each map can then be set independently by setting the options at the map level.
Empty elements are then generated for the selected unmapped nodes. If the unmapped node is nillable, it is generated with xsi:nil="true"."
My question is: is it possible to return the empty tag with a decimal element? If yes, how?
Kind regards!

I'm using Oracle SOA Suite 10.1.3.4.0.
Yes, I tried this transformation:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
exclude-result-prefixes="xsl xref xp20 bpws ora ehdr orcl ids hwf">
<xsl:strip-space elements="*"/>
<xsl:template match="node()[count(descendant-or-self::*string-length(.)>0])>0]|@*">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
but returned the same error:
Transformation_5.xsl
Line Number:(13) : Error: "xsl:strip-space" XSL Element Currently not Supported
Line Number:(14) : Error: <xsl:template match="/"> and <xsl:template name="..."> are the only permitted <template> elements in the XSL
But I don't want to remove the empty tags. By default the empty tags doesn't appears in output, but I want them to appear.
Regards.

Similar Messages

  • How to change the input and output schema in BPEL process

    hi',
    Please tell me how to change the input and output schema in BPEL process after the process is made.
    thanks
    Yatan

    If your intention is just changing the content you are passing to bpel/returning from bpel
    Here is another way
    just update your default created xsd files with new elements, update wsdl elements in message definition and chnage bpel code to reflect new elements in activities
    Regards,
    Praveen

  • Problem with output string to command

    hey i have no idea why this aint working
    its a simple output string to command.
    what it is supposed to do is make a new directory given by the input string
    e.g. mkdir /home/luke/dep
    thanks for the help
    //methods input save files
         saveFile = JOptionPane.showInputDialog("Save Files To : ");
         //method command for saving files
         //Stream to write file
         FileOutputStream fout;          
         try { Process myProcess = Runtime.getRuntime().exec("mkdir" + saveFile );
          InputStreamReader myIStreamReader = new InputStreamReader(myProcess.getInputStream());
          fout = new FileOutputStream ("file.txt");
          while ((ch = myIStreamReader.read()) != -1) { new PrintStream(fout).print((char)ch); } }
              catch (IOException anIOException) { System.out.println(anIOException); }

    What you fail to understand is that "aint working" and "Problem with output string to command" tells us absolutely squat about what your problem is. This is the same as saying to the doctor "I'm sick" and expecting him to cure you. As mentioned by Enceph you need to provide details. Do you get error messages? If so post the entire error and indicate the line of code it occurs on. Do you get incorrect output? Then post what output you get, what output you expect. The more effort you put into your question the more effort others will put in their replies. So until you can manage to execute a little common sense then the only responses you will get will be flames. Now is your tiny little brain able to comprehend that?

  • Problems with output using html2fo function

    Hello,
    I have a problem with output when using html2fo function.
    My sample xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <RTECODE>
    <![CDATA[
    <table border="1">
    <tr>
    <td>row 1, cell 1</td>
    <td>row 1, cell 2</td>
    </tr>
    <tr>
    <td>row 2, cell 1</td>
    <td>row 2, cell 2</td>
    </tr>
    </table>
    ]]>
    </RTECODE>
    Can anybody explain why the rtf template output is different in pdf, rtf, excel ? It looks ok only in pdf.
    Thanks in advance.

    Check these
    http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_rtf_tmpl.htm#CHDCEEIJ
    https://blogs.oracle.com/xmlpublisher/entry/html_in_xml_support
    If helps mark
    Edited by: Srini VEERAVALLI on Feb 25, 2013 10:04 AM

  • Esb parallel processing problems with jms adapter and bpel

    Hi,
    I have esb project which dequeues from a jms adapter and then the esb router calls a bpel process. This bpel process takes about 10 seconds. The first step this bpel does is to return true ( to the client) to the esb router so the ESB thinks he is ready. This does not work.
    Now if I use in the esb router asyn routing rule to the bpel ws then the esb dequeus all the messages from the queue. All the esb entries are green. But the esb starts one for one the bpel process and then updates the esb entry with a new start time ( very strange) .
    If I use a sync routing rule then it dequeues and call the bpel process one for one.
    How I can parallel proces the jms messages ,because I have 2 quad cores cpu's . Async routing rules looks like the solution.
    How can the esb detects the bpel is still running even with the first action in bpel is to return true. I expected when the esb retrieves true from the bpel ws it ends the current esb entry and goes on with the next. So the total esb time takes a few seconds and not so long as the last the bpel proces finishes.
    And why is he updating the starting time.
    Thanks Edwin
    Message was edited by:
    biemond

    I have esb project which dequeues from a jms adapter
    and then the esb router calls a bpel process. This
    bpel process takes about 10 seconds. The first step
    this bpel does is to return true ( to the client) to
    the esb router so the ESB thinks he is ready. This
    does not work. I am not sure if it can ever work, if you reply and then still proceed with your BPEL process.
    Here is something I would like to suggest:
    Can you try ESB -- (sync) --> BPEL, where BPEL process itself is Async. In that case, esb will consume all the messages very fast and BPEL will get that message and put in Delivery Queue and reply back to ESB. Now BPEL will process them simultaniously based Receiver/Worker threads defined in your env.
    HTH,
    Chintan

  • Invoking Web Service with PKI Authentication from BPEL process

    Hello --
    I am trying to test calling a Web service utilizing PKI-based authentication from BPEL running under the 10.1.2.0.2 Process Manager. When I access the service from a browser I am prompted for Username and Password the first time. When I attempt to access it from BPEL I receive this error:
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
    Is it possible to access this service from BPEL in 10.1.2.0.2? How can I pass the service the required credentials?
    Thank you for your time,
    Paul Camann

    I've gotten past the original error by importing the security certificate of the Web service into my keystore/truststore. I'm also running the process on SOA 10.1.3.1.0. Now when I invoke the Web service from the BPEL process I get this error:
    exception on JaxRpc invoke: HTTP transport error:
    javax.xml.soap.SOAPException: java.security.PrivilegedActionException:
    javax.xml.soap.SOAPException: Bad response: 403 Forbidden
    I've tried passing the credentials every way I can -- partner link properties, Oracle Web Services Manager, whatever -- and still get the same error. I would expect to see a 401 error for problems with credentials, not a 403.
    Any suggestions?
    Thanks for your time.
    Paul Camann

  • Problem with XA Transactions in BPEL?

    Hi,
    I have a problem in using XA Transactions... I have a Sync BPEL Process which insert values into six tables... So i am using six database adapters for inserting the values into the data base...
    While inserting the values into the database if any db adapter fails the all the transactions done have to be rolled back...
    So for this i have created XA Datasource and i have to put all the adapters in a single scope...
    I have also added the property transaction="participate" both at partnerlink level and global level also...
    and i have also added the GetActiveUnitOfWork="ture" in jca:operations in the wsdl of all the adapters...
    But the problem is the values are not getting inserted in the last table in a success case... But if one of the adapter fails then all the transactions done are rolled back...
    The problem is only with the success case and that too only with the last db adapter... the values are not inserted but the instance is created... I feel that the values are inserted but they are being committed
    Can any one suggest me a solution for this problem???

    Hi,
    I have a problem in using XA Transactions... I have a Sync BPEL Process which insert values into six tables... So i am using six database adapters for inserting the values into the data base...
    While inserting the values into the database if any db adapter fails the all the transactions done have to be rolled back...
    So for this i have created XA Datasource and i have to put all the adapters in a single scope...
    I have also added the property transaction="participate" both at partnerlink level and global level also...
    and i have also added the GetActiveUnitOfWork="ture" in jca:operations in the wsdl of all the adapters...
    But the problem is the values are not getting inserted in the last table in a success case... But if one of the adapter fails then all the transactions done are rolled back...
    The problem is only with the success case and that too only with the last db adapter... the values are not inserted but the instance is created... I feel that the values are inserted but they are being committed
    Can any one suggest me a solution for this problem???

  • Problems with Interaction Tab in BPEL Console

    Hello.
    We have just installed Oracle SOA Suite 10.1.3.1.0 and applied Patch 10.1.3.3.0.
    The problem is as follows:
    When we are debugging an BPEL Process instance, and try to see the interactions, the following error appears:
    Mensaje de Excepción:
    [javax.servlet.ServletException] Cannot find work items. An attempt to fetch the work items using the where condition "cikey = ? and ( node_id like 'BpInv%' or node_id like 'BpRcv%' or node_id like 'BpOMs%')" from the datastore has failed. The exception reported is: Invalid column name Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid. sql statement: SELECT * FROM admin_list_wi WHERE ci_domain_ref = 0 AND cikey = ? and ( node_id like 'BpInv%' or node_id like 'BpRcv%' or node_id like 'BpOMs%') ORDER BY wi_creation_date

    I guess you installed the 10.1.3.3 patch for bpel?
    Did you missed the post installation steps. Inhere you need to execute a sql-script. If im not wrong, the objects in this script have some relation with your errormessage.

  • Dunning as PDF - Problem with output

    Hi experts,
    I have a problem with the dunning as email.
    Everything works fine here with the dífferent threads (BTE 1040) - but the output is not in PDF-format. When I look at SOST, the attachment ist in *.EXT format...
    Does anybody know what's the problem?
    Thanks
    Michael
    Additional information: The file is an .pdf file - when I save it as .pdf, I can open it normally...

    Hi,
    In transaction SCOT, check the format for Sapscript/Smartforms. Double click on the node for email. e.g .SMTP. In the pop-up window there is a section for supported address types. Beside 'Internet', click on the button SET. In here select PDF as the output format for Sapscript/Smartforms and for ABAP lists.
    Also in SCOT, check Setttings -> Device types for Format Conversion, ensure that PDF is the target format.
    Regards,
    Aidan

  • Problem calling different versions of BPEL process from an ESB

    We are currenlty having a problem calling a BPEL process from an ESB service.
    We initially developed the solution and the two communicated correctly, however it was necessary to make some changes to the BPEL process and we subsequently redeployed the BPEL process incrementing the version number.
    However the ESB service when initiated was still calling the initial version of the ESB service.
    Is there any way of making the ESB call the default BPEL process version as configured from the BPEL console.

    You can accomplish this task by invoking SOAP Service in ESB that points to current WSDL of BPEL process, for example:
    http://localhost:8888/orabpel/default/SOAOrderBooking/SOAOrderBooking?wsdl
    instead of
    http://localhost:8888/orabpel/default/SOAOrderBooking/1.0/SOAOrderBooking?wsdl
    This information is accessible in Metalink Note: 430206.1

  • Problem with output in smart forms

    Hi All,
    I am getting some problem with the field list in smartforms. When i tried to drag and drop some fields its not allowing me drop in text editor. So i hard code some of the fields and some systems fields. But in ouput i am getting every thing like in the top its showing "Print Preview of page 001 of 007. Its showing all the Filed descriptions and every thing. But its displaying all the field values and system values as &wtab-vebln&  &wtab-erdat&  &wtab-ernam&
                   &wtab-vebln&  &wtab-erdat&  &wtab-ernam&
                   &wtab-vebln&  &wtab-erdat&  &wtab-ernam&
    Untill end of loop for all pages. In the same way for each end of the page i am trying to print out &sy-pagno& but for evry page i am getting only the &sy-pagno& but not the page number.
    When i debug the internal table itab is populated with the data.I dont know why the field list is not allowing me to drag and drop fields and when i hard code why i am getting output like that.
    Some where i read that the we have to change in cofiguration of smartform in order to drag and drop is it right?
    Suggest me how to correct this error.

    Hi Ben..
    You cannot drag&Drop the Fields into Text Editor ..
    You have to do this in Graphical PC Editor (This will be the default editor Generally)
    Otherwise you have to use the Icons INSERT FIELD(+) DELETE FIELD ( - )
    On the Toolbar above the PC Editor.
    Remember your field should be displayed with Gray shade. then only the Value of the Symbol is displayed. Otherwise it will be displaying the Symbol name as it is.
    For page no You have to use the System field of Smartforms &SFSY-PAGE&
    not &sy-pagno&.
    <b>Reward if Helpful</b>

  • Problem with output server service credentials

    I am having a peculiar problem with regards into the output service starting.  I created a username and password in AD for this service for one of our programs to use this to print.  So I set this up and associated the service to use this account to login, but whenever I reboot the server the service never starts even though it is setup as auto, so I looked and in the login tab it has the username that I setup, but i always have to re type in the password to allow it to start.
    Does anyone have any ideas about this and how to fix this problem that i am having?

    Hi Vishal,
    Kindly use /XMII/Illuminator?service=logout
    Illuminator has to be in same case as shown above and not in caps.
    Further, this kind of error generally comes when you miss including some mode or service name in the URL.
    Kindly recheck your URL that you are navigating to post logoff.
    It should generally go to: http://<Server>:<Port>/XMII/Illuminator?service=Personalization
    Thanks,
    Swaroop

  • Problem in deploying a migrated bpel process from 10.1.2 to 10.1.3

    Hi,
    I had migrated a bpel process developed 10.1.2 to 10.1.3. After migration I had modified a bpel process flow and tried to deploy it.
    But I am facing a following error:
    <B>Error: Failed to compile classes.Failed to compile the generated BPEL classes for "RoutingBpel".</B>
    Can modify the bpel process flow once we migrate from 10.1.2 to 10.1.3?
    Thanks,
    -Vidya

    You can modify the process after migration, it shouldn't be a problem. Can you post the complete error message? Are you using any java embeddings?

  • Help with jsp page and bpel process

    I learnt BPEL process is a web service and it could be invoked.
    I want to write a jsp page to do it.
    I read about Locator, Idelliveryservice,normalizedmessage...
    The method addPart of normalizedmessage class take only one string (other than payload) or an element.
    If i have 2 or more variables in payload, have i to use
    normmessage.addPart(...,var1)
    normmessage.addPart(...,var2)
    normmessage.addPart(...,var3)
    or have i to put all the variable in an element and use only once addPart?
    Thanks
    Ema
    PS-Is there a precise example about this problem? i read only "loandemo" process and "helloworld" process.

    Here's how I built mine:
    String xml = "<EmailControlProcessRequest xmlns=\"http://xmlns.oracle.com/EmailControl\">"
    + "<input>" + input + "</input>" + "<changeType>" + changeType + "</changeType>" + "<days>" + days + "</days>" + "</EmailControlProcessRequest>"
    Basically, look inside JDev to see the how your whole variable is formed. Then, build your xml string according to how it's built.
    My variable is built like this:
    <EmailControlProcessRequest>
    <input>input info</input>
    <changeType>changeType info</changeType>
    <days>days info</days>
    </EmailControlProcessRequest>
    Then, after that, I do this:
    NormalizedMessage nm = new NormalizedMessage();
    nm.addPart("payload", xml);

  • Problem with output from  report to excel, calling the report from form 10g

    Hi everyone, I'm having a problem generating a excel from a report, which is called from a form, I'm using Forms 10g. The problem is this: My report has a variable number of columns. These columns appear according to data obtained from the database, these columns are dates, In vesion 6 excel file generated shows the columns one after another starting in column A1 to column CP. I mean that the dates are correlative. But in version 10g the excel file generated shows the same report starting in column A to column T, only shows the 20 dates correlative corresponding to this columns, the rest of the dates are down the excel sheet in groups of 20 dates, it's something, the file in 6i grows across and in 10g grows down the excel sheet. The report (rdf file) is the same in 6i and 10g, I compiled the 6i version to obtain the 10g version. The excel sheet generated in 10g looks like the report was in pdf format, because PDF format, cuts the report in pages and the file grows down, if I generate the report in PDF format it has the same structure excel file in 10g has. I hope yo can help because I have days trying to solve this but I have no succes. If someone could help I could email the excel files generated in two versions. Here I put the code I use to generate the files in 6i and 10g. I have tried with DESFORMAT=SPREADSHEET in 10g but the result is the same. Thanks for your help. Greetings for all.
    Code for version 6i (Works Very well)
    PROCEDURE GUARDAREXCEL IS
    pl_id ParamList;
    nom_rep varchar2(20);
    cla_rep varchar2(20);
    cod_dis varchar2(4);
    nom_arch varchar2(100);
    fec date;
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    IF :BK_PARAMETROS.LI_COD_DIS IS NOT NULL THEN
    cod_dis := :BK_PARAMETROS.LI_COD_DIS;
    END IF;
    IF :BK_PARAMETROS.TI_COD_CLI IS NOT NULL THEN
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,:BK_PARAMETROS.TI_COD_CLI||'%');
    ELSE
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,'%');
    :BK_PARAMETROS.TI_COD_CLI:='%';
    END IF;
    IF :BK_PARAMETROS.CLAS_REP=1 THEN
    cla_rep := '001';
    ELSE
         IF :BK_PARAMETROS.CLAS_REP=2 THEN
              cla_rep := '002';
         ELSE
              IF :BK_PARAMETROS.CLAS_REP=3 THEN
              cla_rep := '003';
         ELSE
              cla_rep := '004';
         END IF;
         END IF;
    END IF;
    Add_Parameter(pl_id,'P_COD_DIS',TEXT_PARAMETER, cod_dis);
    Add_Parameter(pl_id,'P_FECHA',TEXT_PARAMETER,to_char(:BK_PARAMETROS.FECFIN, 'DD/MM/YYYY'));
    Add_Parameter(pl_id,'P_CLASE',TEXT_PARAMETER, cla_rep);
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'File');
    Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'Character');
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED' );
    select sysdate into fec from dual;
    IF :BK_PARAMETROS.TIPO_REP=1 THEN
         BEGIN
    nom_rep := 'tdvenrli1577.rep';
    nom_arch := 'c:\windows\temp\RepCobranzaPlanos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
    END;
    ELSIF :BK_PARAMETROS.TIPO_REP=2 THEN
              BEGIN
              nom_rep := 'tdvenrli1578.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaLargos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              END;
    ELSIF :BK_PARAMETROS.TIPO_REP=3 THEN
         BEGIN
                        Add_Parameter(pl_id,'P_XLS',TEXT_PARAMETER, '1');           
              nom_rep := 'tdvenrli1576.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaDetallados' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';      
              END;
    ELSE
              BEGIN
                        nom_rep := 'TDVENRLI1545.REP';
              nom_arch := 'c:\windows\temp\RepCobranzaTodos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              END;
    END IF;
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,nom_arch );
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, nom_arch);
    standard.commit;
    Run_Product(REPORTS, nom_rep, SYNCHRONOUS, runtime, FILESYSTEM, pl_id,'');
    EXCEPTION WHEN Run_Product_Failure THEN
    message('Error');
    END;
    Code for version 10g
    PROCEDURE GUARDAREXCEL IS
    pl_id ParamList;
    nom_rep varchar2(20);
    cla_rep varchar2(20);
    cod_dis varchar2(4);
    nom_arch varchar2(100);
    fec date;
    --byt12122007.sn
    repid REPORT_OBJECT;
         vURL VARCHAR2(500);
         rep_status VARCHAR2(20);
         vJobID VARCHAR2(100);
         v_rep VARCHAR2(100);
    VAR NUMBER;
    w_name_repserv VARCHAR2(30);
    --byt1212007.en
    BEGIN
         --w_name_repserv:=F_OBTIENE_SERVREP;
    w_name_repserv:='repserv';     
    pl_id := Get_Parameter_List('mytmp_params');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('mytmp_params');
    IF :BK_PARAMETROS.LI_COD_DIS IS NOT NULL THEN
         cod_dis := :BK_PARAMETROS.LI_COD_DIS;
    END IF;
    IF :BK_PARAMETROS.TI_COD_CLI IS NOT NULL THEN
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,:BK_PARAMETROS.TI_COD_CLI||'%');
    ELSE
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,'%');
    :BK_PARAMETROS.TI_COD_CLI:='%';
    END IF;
    IF :BK_PARAMETROS.CLAS_REP=1 THEN
    cla_rep := '001';
    ELSE
         IF :BK_PARAMETROS.CLAS_REP=2 THEN
              cla_rep := '002';
         ELSE
              IF :BK_PARAMETROS.CLAS_REP=3 THEN
              cla_rep := '003';
         ELSE
              cla_rep := '004';
         END IF;
         END IF;
    END IF;
    Add_Parameter(pl_id,'P_COD_DIS',TEXT_PARAMETER, cod_dis);
    Add_Parameter(pl_id,'P_FECHA',TEXT_PARAMETER,to_char(:BK_PARAMETROS.FECFIN, 'DD/MM/YYYY'));
    Add_Parameter(pl_id,'P_CLASE',TEXT_PARAMETER, cla_rep);
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    /*Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'File');
    Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'Character');
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED' );*/
    select sysdate into fec from dual;
    IF :BK_PARAMETROS.TIPO_REP=1 THEN
    BEGIN
         repid := find_report_object('tdvenrli1577');
    --nom_rep := 'tdvenrli1577.rep';
    nom_arch := 'c:\windows\temp\RepCobranzaPlanos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1577');
    END;
    ELSIF :BK_PARAMETROS.TIPO_REP=2 THEN
    BEGIN
         repid := find_report_object('tdvenrli1578');      
              --nom_rep := 'tdvenrli1578.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaLargos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1578');
              END;
    ELSIF :BK_PARAMETROS.TIPO_REP=3 THEN
    BEGIN
         repid := find_report_object('tdvenrli1576');
                        Add_Parameter(pl_id,'P_XLS',TEXT_PARAMETER, '1');           
              --nom_rep := 'tdvenrli1576.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaDetallados' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1576');     
              END;
    ELSE
    BEGIN
         repid := find_report_object('tdvenrli1545');
                        --nom_rep := 'TDVENRLI1545.REP';
              nom_arch := 'c:\windows\temp\RepCobranzaTodos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1545');     
              END;
    END IF;
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,nom_arch );
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, nom_arch);
    standard.commit;
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESNAME,nom_arch);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, 'File');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, 'DELIMITED');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, w_name_repserv);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_OTHER, 'paramform=no');
         v_rep := RUN_REPORT_OBJECT(repid, pl_id);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')     LOOP
              rep_status:= report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' THEN
              vJobID := SUBSTR(v_rep, INSTR(v_rep, '_', -1)+1);
              vURL:='/reports/rwservlet/getjobid'||vJobID||'?'||'server='||w_name_repserv;
         END IF;
         WEB.SHOW_DOCUMENT(vURL, '_blank');
         IF NOT form_success THEN
              MESSAGE('Error: PL/SQL held against Button failed to execute');
              RAISE FORM_TRIGGER_FAILURE;
         END IF;
    /*Run_Product(REPORTS, nom_rep, SYNCHRONOUS, runtime, FILESYSTEM, pl_id,'');
    EXCEPTION WHEN Run_Product_Failure THEN
    message('Error');*/
    END;

    There are two problems with your VI.  First, the basic logic of writing/appending to a file (Excel, TDMS, anything) should go something like this:  Open the file, position yourself at the end of the file, then, in the loop, acquire data and write it to the file until you are finished with data acquisition.  When you exit the acquire/write to file loop, then close the file.  In particular, the opening and the closing of the file should not be inside the loop.
    As others have pointed out, writing to Excel might not be optimal, particularly if you are acquiring data at a high rate (and would therefore be writing a lot of data). We actually use Excel in our data acquisition routine, mainly reading from a WorkSheet to get the parameters of a particular stimulus, but also writing the outcome of the response to the stimulus.  As it happens, our "acquisition rate" in this example is on the order of several samples per minute, so there's no problem using Excel (we also sample 16 channels of analog data at 1 KHz -- this gets written as a binary file).
    Second, if you really do want to use Excel, use the (existing) Excel file to which you want to append as the "template" argument of the New Report function.  Then use the Excel Get Last Row function to position yourself at "end of file", as noted above.
    Good Luck.
    Bob Schor

Maybe you are looking for

  • R12 Accounts Payable Manager

    Hi, I am using Oracle R12 Accounts Payable Manager.  Currently when a payment is made to our suppliers a remittance file is produced in PDF format.  I would still like to have this but at the same time I would really like to be able to set up e-mail

  • Q: If you never initiate iBooks for Mac conversion...

    can you keep using (latest) iTunes under Mavericks to manage your ebook/pdf collections? Reason I am asking is that I have also experienced the problems with new, standalone iBooks described here and elesewhere. I have since reverted back to Mountain

  • Wifi authentication: RADIUS or LDAP?

    I'm planning on installing an Aruba 2400 WLAN switch in our Netware 6 network, for purposes of providing wireless network connectivity. The Aruba supports authentication via RADIUS or LDAP. Both are available to me (LDAP in NW6, RADIUS in BMgr 3.7, w

  • After login UI is not loaded completely

    Hi Team, I have done a publishing (real time publishing) from one of the instance however there are few page attribue i am not able to publish due to some error, but when i login to destination server i am just not getting complete UI(only admin and

  • Nokia 500 WLAN issue

    Hi Like in subject, I'm new user of Symbian Anna on Nokia 500. There was no problem to set WLAN connection to my router. The problem is to disconnect. After I turning off WLAN connection, and use option to not looking for networks, device shows what