Error? on Example 16-7 XMLFOREST: Generating Elements with Attribute and Ch

Error in example on page http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#i1028612
Example 16-7 XMLFOREST: Generating Elements with Attribute and Child Elements
Example appears as
SELECT XMLElement("Emp",
                  XMLAttributes(e.first_name ||' '|| e.last_name AS "name"),
                  XMLForest(e.hire_date, e.department AS "department"))
AS "RESULT"
FROM employees e WHERE e.department_id = 20;
1. employees table not qualified as hr.employees
2. e.department as "department" should be e.department_id as "department"
corrected would be
SELECT XMLElement("Emp",
                  XMLAttributes(e.first_name ||' '|| e.last_name AS "name"),
                  XMLForest(e.hire_date, e.department_id AS "department"))
AS "RESULT"
FROM hr.employees e WHERE e.department_id = 20;albert

It was subreport-related, though I still do not know the exact root cause.
I was having trouble with both the built-in export as well as a custom process.
Removing the subreports as suggested, I isolated the failure to one of the three subs and rebuilt this subreport from scratch (it was only three fields) and now the report has no trouble with the pdf export. I am not sure if it had a resolvable technical issue or if it was just corrupted, as it is now working, I am not going to expend much energy on finding out.
Thanks for the suggestion.

Similar Messages

  • Issue with working on a webservice that has  xml elements with attributes

    This is  a branchout of Thread: Some more complex sample of invokin WS needed_
    We are working on a project that involves a outbound SALT Web service call that includes complex elements with attributes..We are looking for options of how to use FML API's to pass these attribute values from the application code.
    We opened a ticket with oracle where we were suggested to frame the entire xml and pass the xml using the FML32 of the complex element. But when we framed the xml for Service and put the entire XML which includes the attributes using the FML ID of Service.
    Please find a sample Schema and XML similar to the one we are working on...its associated code
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="Service" type="Service_Type" nillable="true">
              <xs:annotation>
                   <xs:documentation>Comment describing your root element</xs:documentation>
              </xs:annotation>
         </xs:element>
         <xs:complexType name="Service_Type">
              <xs:sequence>
                   <xs:element name="DateTime" type="xs:dateTime" nillable="true">
                   </xs:element>
                   <xs:element name="UUID" nillable="true">
                   </xs:element>
                   <xs:element name="Status" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded">
                   </xs:element>
              </xs:sequence>
              <xs:attribute name="Version" type="xs:string" use="required">
              </xs:attribute>
              <xs:attribute name="Name" type="xs:string" use="required">
              </xs:attribute>
         </xs:complexType>
    </xs:schema>
    The sample XML is :
    ___<?xml version="1.0" encoding="UTF-8"?>___
    ___<!--Sample XML file generated by XMLSpy v2010 rel. 2 (http://www.altova.com)-->___
    ___<Service Name="TestService" Version="1.1" xsi:noNamespaceSchemaLocation="Untitled6.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">___
    ___     <DateTime>2001-12-17T09:30:47Z</DateTime>___
    ___     <UUID>text</UUID>___
    ___</Service>___
    wsdlcvt generated the mif file with Service as a FML32 type and all its child elements as "mbstring". We tried to leave as it is and we also tried to replace all the child elements and just had a mif entry for "Service" as a mbstring neither produced a different output...Tried to dump using Ferror32 which did not dump any..._
    The sample C/C++ code as per suggestions were to do the following...
    _1) Have a string with the entire XML for Service_
    xmldata="<Service Name=\"TestService"\ Version="1.1\"_ xsi:noNamespaceSchemaLocation=\"Untitled6.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">_
    _     <DateTime>2001-12-17T09:30:47Z</DateTime>_
    _     <UUID>text</UUID>_
    _</Service>";_
    _2) Use Fmbpack32 to create a mbstring data_
    _memcpy(reqmbptr, (char*)xmldata.data(),xmldata.length());_
    _len=xmldata.length();_
    _Fmbpack32(mbcodeName,reqmbptr,len, packdata,(FLDLEN32 *)&packedlen,0);_
    userlog("Size of packedlen is %d",packedlen);
    3) Add the packed data to the output buffer
    Fadd32(fmlbuffer,Service, packdata,packedlen );
    But we do not see the Service tag populated in the GWWS outbound request.Everything else makes it....any help on how to move ahead would be appreciated...

    It seems you switch to the 10gR3 GA and now the whole XML data is mapped to FLD_MBSTRING.
    I will forward my sample to you by mail, but this sample is not offical sample, it is just QA test case. You can refere it and check what's the difference.
    Please let me know your mail address.
    Regards,
    Xu he

  • How to solve the error "The specified resource is reserved" when running with DAQmx And LabVIEW?

    How to solve the error "The specified resource is reserved" when running with DAQmx And LabVIEW?

    I hate "J term"
    OK I love the learning the students get.   And, I like helping them out!  But, as a former man who's got the varicose viens to prove he's spent time "behind the podium" (yeah, "behind the podium" puts 'em to sleep- songs and dances for the young'uns) come on! USE the tools you teach!
    Instructors invited to engage in the forums
    Jeff

  • Generating XML with attributes using XSU

    Oracle document claims if the sql is:
    select empno as @empno from employee
    Using XSU to generate XML will produce and XML document with EMPNO as an attribute instead of element name. But this does not seem to work. There is an exception:
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Character '&' is not allowed in an XML tag name.</ERROR
    Is there anything wrong or is there a work around

    Oracle document claims if the sql is:
    select empno as @empno from employee
    Using XSU to generate XML will produce and XML document with EMPNO as an attribute instead of element name. But this does not seem to work. There is an exception:
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Character '&' is not allowed in an XML tag name.</ERROR
    Is there anything wrong or is there a work around

  • Controling heating/cooling element with labview and usb 6008 DAQ card

    Greetings All
    I'm looking for a heating/cooling type of element that I can control with labview and my usb-6008 card. Heating/Cooling will just be for clean water and the temperture range will be from 0 C to 100 degree C.
    Thanks
    The heating and cooling elements can be seperate products. Any recommendations

    A simple kettle element will of course be sufficient for upto 100°C
    To get the temperature down you need a cooling system, what springs readily to mind of course is a refrigerator.
    Just a note of warning, water and electricity are dangerous bed fellows.
    On that note perhaps one of those vortex air units would be safer - they blow hot in one direction and cold in the other, nominally to 100°C
    see: -
    http://www.airtxinternational.com/how_vortex_tubes_work.php

  • Auto Generated No with Date and year

    I m using this method to create a auto generated no.
    in pre-insert trigger
    declare
              v_l varchar2(10);
         begin
              select max(doc_no) into v_l from Table ;
              if v_l is not null or v_l<>0 then
                   :table.doc_no:= v_l+1;
              else
                   :table.doc_no:=1;     
              end if;
         exception
              when no_data_found then
              :table.doc_no:=1;
         end;I want to generate auto generate no|| month||year
    please guide me

    Kame wrote:
    I want to generate auto generate no|| month||year
    please guide meYou can get an auto-generated number using SEQUENCE in Oracle.
    Do you have a specific date column in your table from which you need to get the MONTH and YEAR Data?
    To get MONTH, you can use something like:
    TO_CHAR(your_date_column, 'MONTH')To get YEAR, you can use
    TO_CHAR(your_date_column, 'YYYY')your_date_column should contain data of date datatype.
    Examples:
    SQL> CREATE SEQUENCE SEQ
      2     MINVALUE 1
      3     MAXVALUE 999999999
      4     START WITH 1
      5     INCREMENT BY 1
      6  /
    Sequence created.
    SQL> SELECT SYSDATE FROM Dual
      2  /
    SYSDATE
    10-JUN-09
    SQL> SELECT TO_CHAR(sysdate, 'MONTH') FROM Dual
      2  /
    TO_CHAR(SYSDATE,'MONTH')
    JUNE
    SQL> SELECT TO_CHAR(sysdate, 'YYYY') FROM Dual
      2  /
    TO_C
    2009
    SQL> SELECT      TO_CHAR (SEQ.NEXTVAL)
      2           || TO_CHAR (SYSDATE, 'fmMONTH')
      3           || TO_CHAR (SYSDATE, 'YYYY')
      4              auto_gen
      5    FROM   DUAL
      6  /
    AUTO_GEN
    1JUNE2009
    SQL> /
    AUTO_GEN
    2JUNE2009
    SQL> /
    AUTO_GEN
    3JUNE2009
    SQL> /
    AUTO_GEN
    4JUNE2009
    SQL>Hope this helps.
    Regards,
    Jo
    Edit: Corrected Query

  • Generating PDF with XML and XSL

    Hi, quick basic question...
    I'm trying to generate pdf doc from xml with xsl.
    I'm using following sample code from xml.apache.org
    response.setContentType("application/pdf");
    Driver driver =new Driver();
    driver.setOutputStream(response.getOutputStream());
    driver.setRenderer(Driver.RENDER_PDF);
    Transformer transformer=TransformerFactory.newInstance()
    .newTransformer(new StreamSource("foo.xsl"));
    transformer.transform(xmlsource, new SAXResult(driver.getContentHandler()));
    xmlSource is my regular xml that wants to be pdf.
    is foo.xsl any regular xsl that I use to coonvert xml into html?
    or is it some special xsl that is tailored for pdf.
    Is this what is called xsl-fo?
    Thanks
    IL

    Hi IL,
    XSLT can translate XML to something else. It is most suited to transforming to another tree-like format (XML, HTML, etc.) but can be 'asked' to produce other kinds of output, flat text for example.
    It is driven by an XSL file which is a series of patterns to match and output to produce.
    This XSL file can be used to generate another XML document in which the nodes come from the Formatting Object namespace. These describe, in generic terms the format of an output document based upon the contents of the original XML.
    The formatting object XML document can then be used as input to a formatting object XML processor which can generate PDF output from it.
    You may want to check out:
    www.w3c.org
    for all the stuff on XML, XSL, XSLT, Formatting Objects, etc., and:
    xml.apache.org
    for imformation on Xalan, which is an XSL processor and FOP, which is a formatting object processor.
    Hope that helps,
    Peter.

  • Lync 2013 - Generate CSR with EKU and additional SANs?

    Hi,
    I'm in the middle of setting up both an Edge server and Reverse Proxy (Which will be on an F5 appliance). According to
    this article, I have to generate the CSR using powershell to retain interoperability with AOL. After reading
    this article it looks like I can use the same cert on both the Edge and Reverse Proxy, so long as I specify all the SANs in the CSR.
    The problem is, I can't figure out how to generate the CSR in powershell and add additional SANs, like I can in the GUI. But I can't use the GUI because it won't add the client EKU needed for AOL. What's the syntax to add additional SANs via powershell?
    I have read that using powershell will inherit the SAN configuration, but I have found no way to confirm what SANs it is actually requesting, since the CSR is encrypted text.
    EDIT: I should add that our org already has an existing wildcard certificate that we use for other sites, but its SN is *.domain.com (which I believe is not supported) and does not have the additional needed SANs. I assume that this cert cannot be used but
    please let me know if I'm mistaken.
    Thanks in advance.

    Matt,
    Depending on how many of these clients you have will dictate your solution. If you don't have many then you can simply install the Cert chain manually on each PC in the Local Computer > Trusted Root Certificate Authority store.
    If you have tons though you are possibly best getting a public cert which covers your internal namespace also.
    So as long as you are not using some internal name like .local or .internal and you are using the same namespace as your public domain then you are ok.
    You would however need to specify the names you would be using on your reverse proxy server for meetings and dialin and lync discover for mobility on this cert which may be costly!!!!
    So your cert would then have the following for example:
    Subject name:
    sip.mydomain.com
    SAN:
    sip.mydomain.com
    mydomain.com
    lyncfe01.mydomain.com -- INTERNAL Front End Server Name(s)
    lyncpool.mydomain.com -- (If using Enterprise Edition)
    meet.mydomain.com -- Internal users will require this for connecting to the meeting from internally, unless you are forcing them out and back in through your reverse proxy server.
    dialin.mydomain.com -- As above for meet
    lyncdiscover.mydomain.com
    etc.....
    To be honest, if it was me then i would go with manually installing the cert (or use SSCM or whatever you use for client management if possible)
    good Luck
    Martin

  • Issue in generating Invoice with standard and service material

    There is one scenario where along with standard material (i.e Tube bending machine) they charge the customer for the Design and Development of a machine (which is a service). Is it possible to make a standard order with the standard material(with excise and cst/vat) and service material (with service tax only) in one single order?
    I have tried with both the material in a single order but while making invoice system is taking only the standard material as in  item category we have mentioned Billing relevance from delivery document. And service material will not have the delivery.
    I would be thankful if you could spare some time and check the exact problem.

    Hello,
    Yes.. this is a common problem when you use Delivery relevent material and service material in the same order. Why don't you use the service material in differnt order and invoice it? or do you have any restriction like the delivery relevent material and the service material should be billed in one invoice?
    Prase

  • When i open itunes it comes up with an error message saying: "The software required for communicating with ipods and mobile phones was not installed correctly.

    It also askes me, if I want itunes to try to repair this for you? I've hit yes but it does not fix the problem, i've also tried to uninstall and reinstall itunes and it still says the same thing. PLEASE HELP ME!!!!!

    See the second box of  Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Formatting a number element with commas and decimals.

    I have a dataset with numbers.  I already set the column type to "number".
    I want to format the number data with commas and decimals.  I found a way to add decimals, but I'm still very confused how to do commas and to combine that with the decimal formatting.
    Also, how do I apply that to a repeat region in my spry region?
    Any help would be appreciated.  Thank you very much.

    I found this on one of the forum questions.
    Excel dont preserve the trailing zeros.
    try opening the xcel and type 5.0000 and tab out, it wont preserve the trailing zeros after decimal.
    try finding out how to disable the option in excel. if you do that, you will see what you send out from the report.
    But you can try to convert the number into a text by trying to append a space at the beginning. See if that would work.
    Thanks
    Swarna

  • ORA-30951: Element or attribute at Xpath /AC//Doc[@] exceeds maximum length

    Hi All,
    I am trying to load the XML Files into a Table using the SQL Loader and i am getting the Error
    Record 1: Rejected - Error on table COMMONASSETCATALOG.
    ORA-30951: Element or attribute at Xpath /AC/T[1]/T[1]/T[1]/T[1]/T[1]/Doc[@] exceeds maximum length
    The <Doc> Element which is child of the <T> contains an XML Schema inside it..
    The Doc Element is declared in Schema as
    <xs:complexType name="AsDocType">
              <xs:annotation>
                   <xs:documentation>A (Doc)ument, a container for any type of file</xs:documentation>
              </xs:annotation>
              <xs:sequence minOccurs="0" maxOccurs="unbounded">
                   <xs:any namespace="##any" processContents="lax"/>
              </xs:sequence>
              <xs:attributeGroup ref="AsDocAtts"/>
         </xs:complexType>
    The Size of the XML Content that <Doc> Node has is around 34Kb.
    Could you pls let me know how to resolve this..
    Thanks
    Sateesh

    Hi All,
    I am trying to load the XML Files into a Table using the SQL Loader and i am getting the Error
    Record 1: Rejected - Error on table COMMONASSETCATALOG.
    ORA-30951: Element or attribute at Xpath /AC/T[1]/T[1]/T[1]/T[1]/T[1]/Doc[@] exceeds maximum length
    The <Doc> Element which is child of the <T> contains an XML Schema inside it..
    The Doc Element is declared in Schema as
    <xs:complexType name="AsDocType">
              <xs:annotation>
                   <xs:documentation>A (Doc)ument, a container for any type of file</xs:documentation>
              </xs:annotation>
              <xs:sequence minOccurs="0" maxOccurs="unbounded">
                   <xs:any namespace="##any" processContents="lax"/>
              </xs:sequence>
              <xs:attributeGroup ref="AsDocAtts"/>
         </xs:complexType>
    The Size of the XML Content that <Doc> Node has is around 34Kb.
    Could you pls let me know how to resolve this..
    Thanks
    Sateesh

  • How can I generate tones with usb 6008 using analog out?... tia sal2

    Greetings All
    I've been looking at the example Sim Phone.vi that comes with labview and would like to generate similar tones out of our usb 6008 device. I can get a very faint sound out of our usb 6008 using the example Gen Multi Volt Updates-SW Timed.vi Does anyone know the best way to alter Sim Phone.vi to have the sound come out of the Analog output of our usb 6008 device. ( I have a small speaker connected to the Analog out on our USB 6008)
    PS: we are using labview 7.1
    Does anyone know the Analog output frequency range of the usb-6008? Is this possible?
    TIA
    Attachments:
    Gen Mult Volt Updates-SW Timed.vi ‏78 KB

    Hi sal2,
    As stated earlier you could most certainly use the USB device to generate sound, but that would be at a max update rate of 150 Hz. While according to Nyquist theorem you could get frequency information for signals below 75 Hz, you may notice that the quality of the data in that spectrum to be very low due to having so few samples.
    While technically possible to produce you really should look for a device with a faster Analog Output update rate. I would look for a device that supports Analog Output at least 10x the maximum frequency that you want the user to hear. Some great, yet lower cost products, would be the M-Series line of products. They would give you the performance that is really needed in the type of application that you are talking about.
    If you still want to use the USB Device, then you would need to use code similar to that found in the example Gen Mult Volt Updates-SW Timed (Found here: C:\Program Files\National Instruments\LabVIEW 7.1\examples\daqmxbase\Dynamic\ao).
    Best of luck getting your system together,
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • Can I use AWT elements in a JSP, and so could I generate events with them?

    This is because I�m doing a simple JSP that showing a button, my JSP is:
    <html>
    <%@ page import="java.awt.*" %>
    <%! Button b = new Button("Hola!!!"); %>
    <% add(b); %>
    </html>
    But when I tried to see the button in the browser, my JSP generates the following:
    Compilation of '/RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java' failed:
    /RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java:79: cannot resolve symbol
    probably occurred due to an error in /gep/alterno/23_mayo/mr4.jsp line 7:
    <% add(b); %>
    Could somebody help me please?.....
    Can I use AWT elements in a JSP, and so could I generate events with them?
    Thanks!!!

    There are 2 ways to run a web page dynamically:
    1) Reload the page via use of javascript or some other scripting language.
    2) Use an applet to regularly check a URL for the data
    Remember, as Paul pointed out, JSP's only generate HTML output. AWT components need to run inside a JVM not a just the browser.
    I could recommend an applet but you may have problems with IE6 not supporting java. Otherwise there shouldn't be too much of a prob.
    If you prefer to use an AWT/Swing setup (for example an application) rather than a JSP setup, Webstart is good for delivering online applications which operate standalone or remotely.
    When you consider that the Java-Plugin and the Webstart puligin are about the same size it's just a matter of weighing up who your target clients are and whats easiest.
    Cheers,
    Anthony

  • Error in File Adapter: no alert generated

    Hi folks,
    I have a problem with monitoring our file adapters.
    In one scenario we occasionally get the following error:
    Fehler bei der Konvertierung des Dateiinhalts in XML an Position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'eTSFlatDetailStructure':java.lang.Exception: ERROR in configuration / structure 'eTSFlatDetailStructure.': More elements in file csv structure than field names specified!
    So I have build an alert category with me as recipient and an alert rule in Runtime Workbench with the following attributes:
    - Rule active
    - Alert-category as I have created above
    - Bound to Message: no
    - Error occures in Adapter Engine -> File Adapter
    I have tested the Category... it works... but the rule does not fire any alert.
    Has anyone an idea how to solve this problem?
    Thanks
    Greetings
    Habib Sarbas

    Hi,
    the report generates following output:
    20090507072803,7018210          0  07.05.2009    09:28:03      0AFE24F09F47460132CAD06697A18964
    *Error records received from AF on host rd-srxt0_RXT_00 (sysid: RXT client:  ). Try to send Alert...
    20090507072803,7045260          0  07.05.2009    09:28:03      0AFE24F09F47460132CAD06697A18964
    *Find rule for (From:vkeTSFlatBPM:vkeTSFlatBPM_var01_eTSSender:mi_eTSFlat_var01_out_asyn:urn:rsd-de:xi:ZRSD_XI_01:vkeTSBPM To::::)
    20090507072803,7063530          0  07.05.2009    09:28:03      0AFE24F09F47460132CAD06697A18964
    *No matching rule found
    I also tried to specify the conditions with service, interface and namespace, but this is only possible if i switch bound to message to yes...
    but the error occurs in file adapter... there is no message generated...

Maybe you are looking for