XMLPARSER.parseClob(v_parser, w2_data_clob); returns ORA-20100: Error

I have a script that calls an output file and reads it into a clob. this portion seems to work fine. I next try to do a XMLPARSER.parseClob(v_parser, w2_data_clob);, but I get the following error:
ORA-20100: Error occurred while parsing: Expected 'EOF'.
I am attaching script and output file data. Any and all help is greatly appreciated:
SET SERVEROUTPUT ON SIZE 100000;
SET LINESIZE 1000;
SET DEFINE OFF;
DECLARE
file_handle utl_file.FILE_TYPE;
eof boolean := FALSE;
retrieved_buffer VARCHAR2(2000);
dir_name VARCHAR2(240) := cfa_lookup.meaning('APP_BASEPATH','APPLCSF') || '/out';
file_name VARCHAR2(40) := 'o36841443.xml';
w2_data_clob CLOB;
w2_data_clob_out CLOB;
v_loop_counter INTEGER := 0;
v_parser xmlparser.parser;
v_document xmldom.DOMDocument;
v_length INTEGER := 0;
v_clob_length INTEGER := 0;
v_nodelist xmldom.DOMNodeList;
v_node xmldom.DOMNode;
v_new_node xmldom.DOMNode;
v_parent_node xmldom.DOMNode;
v_record_node XMLDOM.DOMNode;
avalue xmldom.DOMNode;
v_new_element xmldom.DOMElement;
v_new_element_node xmldom.DOMNode;
v_new_text xmldom.DOMText;
v_new_text_node xmldom.DOMNode;
v_employee_id INTEGER;
v_employer_name hr_organization_units.name%TYPE;
v_address_line_1 hr_locations.address_line_1%TYPE;
v_address_line_2 hr_locations.address_line_2%TYPE;
v_address_line_3 hr_locations.address_line_3%TYPE;
v_town_or_city hr_locations.town_or_city%TYPE;
v_region_2 hr_locations.region_2%TYPE;
v_postal_code hr_locations.postal_code%TYPE;
v_status INTEGER;
v_bytes_remaining INTEGER;
v_current_offset INTEGER;
v_next_lf_offset INTEGER;
v_X_offset INTEGER DEFAULT 1;
v_bytes_to_read INTEGER;
v_end_of_clob BOOLEAN;
v_line_number INTEGER;
v_line VARCHAR2(2000);
v_bytes_remaining_g_emp INTEGER;
v_current_offset_g_emp INTEGER;
v_next_offset_g_emp INTEGER;
v_bytes_to_read_g_emp INTEGER;
v_end_of_g_emp BOOLEAN;
v_amount NUMBER DEFAULT 32000;
x VARCHAR2(32760);
v_lf INTEGER;
e_line_too_long EXCEPTION;
BEGIN
DBMS_OUTPUT.PUT_LINE ('Begin process');
file_handle := utl_file.fopen(dir_name, file_name, 'r');
IF utl_file.is_open(file_handle) THEN
DBMS_OUTPUT.PUT_LINE ('File is open');
END IF;
BEGIN
-- Copy w2 xml data file to CLOB
dbms_lob.createtemporary(w2_data_clob,true,dbms_lob.session);
DBMS_LOB.OPEN(w2_data_clob, DBMS_LOB.LOB_READWRITE);
v_clob_length := DBMS_LOB.GETLENGTH(w2_data_clob);
BEGIN
LOOP
utl_file.get_line(file_handle, retrieved_buffer);
IF NVL(lENGTH(retrieved_buffer),-1) <> -1 THEN
v_loop_counter := v_loop_counter + 1;
-- retrieved_buffer := retrieved_buffer || chr(10);
DBMS_OUTPUT.put_line(v_loop_counter||' '||NVL(LENGTH(RTRIM(retrieved_buffer)),-1)||' ' ||ASCII(SUBSTR(RTRIM(retrieved_buffer),-1,1))||' '||rtrim(retrieved_buffer));
DBMS_LOB.WRITEAPPEND(w2_data_clob, LENGTH(RTRIM(retrieved_buffer)), RTRIM(retrieved_buffer) );
ELSE
DBMS_OUTPUT.put_line('retrieved_buffer IS NULL');
-- DBMS_LOB.WRITEAPPEND(w2_data_clob, LENGTH(1), ASCII(CHR(13)) );
END if;
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE ('last line read: '||retrieved_buffer);
DBMS_OUTPUT.PUT_LINE ('no more data in loop: '||SQLERRM);
-- DBMS_LOB.WRITEAPPEN(w2_data_clob, 1,CHR(10));
-- DBMS_OUTPUT.put_line(chr(13));
DBMS_LOB.CLOSE(w2_data_clob);
WHEN OTHERS THEN
NULL;
DBMS_OUTPUT.PUT_LINE ('ERROR in loop: '||SQLERRM);
END;
v_clob_length := DBMS_LOB.GETLENGTH(w2_data_clob);
DBMS_OUTPUT.PUT_LINE ('v_clob_length: '||v_clob_length);
UTL_FILE.FCLOSE (file_handle);
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE ('ERROR...'||SQLERRM);
END;
DBMS_OUTPUT.PUT_LINE ('last line read: '||retrieved_buffer);
DBMS_OUTPUT.PUT_LINE ('Number of lines written to CLOB: '|| v_loop_counter);
v_parser := XMLPARSER.newParser;
XMLPARSER.setValidationMode(v_parser, FALSE);
DBMS_OUTPUT.PUT_LINE ('10');
XMLPARSER.parseClob(v_parser, w2_data_clob);
DBMS_OUTPUT.PUT_LINE ('20');
v_document := XMLPARSER.getDocument(v_parser);
DBMS_OUTPUT.PUT_LINE ('30');
utl_file.fclose(file_handle);
DBMS_OUTPUT.PUT_LINE('Process Complete');
EXCEPTION
WHEN UTL_FILE.INVALID_PATH
THEN DBMS_OUTPUT.PUT_LINE ('invalid_path');
WHEN UTL_FILE.INVALID_MODE
THEN DBMS_OUTPUT.PUT_LINE ('invalid_mode');
WHEN UTL_FILE.INVALID_FILEHANDLE
THEN DBMS_OUTPUT.PUT_LINE ('invalid_filehandle');
WHEN UTL_FILE.INVALID_OPERATION
THEN DBMS_OUTPUT.PUT_LINE('invalid_operation');
WHEN UTL_FILE.READ_ERROR
THEN DBMS_OUTPUT.PUT_LINE('read_error');
WHEN UTL_FILE.WRITE_ERROR
THEN DBMS_OUTPUT.PUT_LINE ('write_error');
WHEN UTL_FILE.INTERNAL_ERROR
THEN DBMS_OUTPUT.PUT_LINE ('internal_error');
WHEN OTHERS
THEN dbms_output.put_line(SQLERRM);
END;
<Version_Number> Version 1.1
</Version_Number>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
<xapi:request>
<xapi:delivery>
<xapi:filesystem output="/u100/applcsf/dcfap/log/o0285647.tmp" />
</xapi:delivery>
<xapi:document output-type="pdf">
<xapi:template type="pdf" location="${templateName1}">
<xapi:data>
<w2>
<control_number>993536284</control_number>
<federal_ein>54-1234567</federal_ein>
<employer_name>Charles D Guf</employer_name>
<employer_address>Chicken House/Rutherford Crossing FSU
176 Monket St
Winchester VA 22603</employer_address>
<ssn>213-99-9999</ssn>
<emp_name>Darnell </emp_name>
<last_name>Simpson</last_name>
<emp_suffix></emp_suffix>
<employee_address>3981 Water Lane
Winchester VA 22602</employee_address>
<wages_tips_compensation>14299.41</wages_tips_compensation>
<fit_withheld>464.93</fit_withheld>
<ss_wages>14949.41</ss_wages>
<ss_withheld>926.87</ss_withheld>
<med_wages>14949.41</med_wages>
<med_withheld>216.75</med_withheld>
<ss_tips></ss_tips>
<allocated_tips></allocated_tips>
<eic_payment></eic_payment>
<dependent_care></dependent_care>
<non_qual_plan></non_qual_plan>
<stat_employee>N</stat_employee>
<retirement_plan>Y</retirement_plan>
<sick_pay>N</sick_pay>
<box14_codea></box14_codea>
<box14_meaninga></box14_meaninga>
<box14_codeb></box14_codeb>
<box14_meaningb></box14_meaningb>
<box14_codec></box14_codec>
<box14_meaningc></box14_meaningc>
<box12_codea>D</box12_codea>
<box12_meaninga>650</box12_meaninga>
<box12_codeb></box12_codeb>
<box12_meaningb></box12_meaningb>
<box12_codec></box12_codec>
<box12_meaningc></box12_meaningc>
<box12_coded></box12_coded>
<box12_meaningd></box12_meaningd>
<state1_code>VA</state1_code>
<state1_ein>30-541252257F-001</state1_ein>
<state1_wages> 14299.41</state1_wages>
<state1_tax> 388.49</state1_tax>
<local1_wages></local1_wages>
<local1_tax></local1_tax>
<locality1></locality1>
<state2_code></state2_code>
<state2_ein></state2_ein>
<state2_wages></state2_wages>
<state2_tax></state2_tax>
<local2_wages></local2_wages>
<local2_tax></local2_tax>
<locality2></locality2>
<year>2008</year>
<amended></amended>
<amended_date></amended_date>
<print_instruction>N</print_instruction>
</w2>
</xapi:data>
</xapi:template>
<xapi:template type="pdf" location="${templateName2}">
<xapi:data />
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>

Well thats the problem - the parser is parsng the clob and is not finding valid XML. It will succeed with
<Version_Number> Version 1.1
</Version_Number>
because, although small its valid XML.
Im surprised that is the seeded XML from the HRMS team. Have you tried something like SQLDeveloper to look at the contents of the CLOB? Just to ensure your plsql is pulling all of the data out?
If everything else checks out, I would get an SR logged with Payroll (HRMS) - this is not a BIP issue per se but invalid XML from the HR dev team.
Regards
tim

Similar Messages

  • ORA-20100: Error occurred while parsing: Start of root element expected.

    I've been searching everywhere for a reason to the following error message: ORA-20100: Error occurred while parsing: Start of root element expected.
    I get this when attempting to parse an XML file stored as a CLOB using the xmlparser.parseClob procedure
    Any help would be much appreciated.

    I initially used US ASCII but then tried several unicode formats as created by XML Spy (UTF16, Unicode16, Unicode32). All had the exact same result.
    Exactly what would be the most helpful output? The XML documents are varied, mostly very simple, but do you want the CLOB printed some other way?
    --Joan Armstrong
    null

  • ORA-20100: Error occurred while processing: Function 'test' not found.

    this program follow:
    declare
    p xmlparser.Parser;
    xmlbuf varchar2(512);
    xmlpat varchar2(512);
    xmldoc xmldom.DOMDocument;
    xmldocnode xmldom.domnode;
    n xmldom.domnode;
    begin
    xmlbuf:='<emps><emp>odp</emp></emps>';
    xmlpat := 'emps/emp/test()';
    p:=xmlparser.newParser;
    xmlparser.parseBuffer(p,xmlbuf);
    xmldoc:=xmlparser.getDocument(p);
    xmldocnode :=xmldom.makeNode(xmldoc);
    n:=xslprocessor.selectSingleNode(xmldocnode,xmlpat);
    --dbms_output.put_line('value of first selected node is:ok');
    exception
    when others then
    raise;
    end testxml;
    message of error:
    ORA-20100: Error occurred while processing: Function 'test' not found.
    ORA-06512: at line 20.
    please quick reponse.

    Steve,
    Yes it helps. I was able to finally figure this much out, however, in order to get the quotes to get handled right, I had to declare the xsl inline and I had to change (there quite a few, this just being an example) the following line from
    <xsl:when test="normalize-space(string(sub_container_settings/initial_investment)) = ''">10000</xsl:when>
    to
    <xsl:when test="normalize-space(string(sub_container_settings/initial_investment)) = ''''">10000</xsl:when>
    This works, but I would prefer to store the xsl in a CLOB. Neither of these work when I get the document from the clob and call the xmldom.parseClob procedure. The parser fails with an error that the document is not valid.
    Do you have any idea on how to handle the single quotes in this circumstance.

  • ORA-20100: Error occurred while parsing:Error opening external DTD ( Asap)

    Hi I'm using domsample example. And I have written the program. The xml file at the starting has this string"<!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">", from which I'm getting error -"ORA-20100: Error occurred while parsing: Error opening external DTD".
    I'm new to xml could you please help me to solve this problem. I assume this is related to DTD for which I need to set base path. But I'm not sure how to do it? I'm getting this xml file through CLOB which I'm able to parse until an extent. where in between got this error.
    Here is my partial code:
    l_doc_id := rec_xml_data.id;
    l_xml_parser := xmlparser.newParser;
    xmlparser.setValidationMode(l_xml_parser, FALSE);
    xmlparser.parseCLOB(l_xml_parser,rec_xml_data.l_xml_data);--PARSING THE CLOB WHICH CONTAINS XML FILE
    l_xml_doc := xmlparser.getDocument(l_xml_parser);
    xmlparser.freeParser(l_xml_parser);
    l_nodelist := xmldom.getElementsByTagName(l_xml_doc, '*');
    l_length := xmldom.getLength(l_nodelist);
    -- loop through elements
    FOR l_rec_xml in 0..l_length-1
    LOOP
    l_node := xmldom.item(l_nodelist, l_rec_xml);
    -- dbms_output.put(xmldom.getNodeName(n) || ' ');
    -- get the text node associated with the element node
    l_nodename:=xmldom.getNodeName(l_node);
    l_node := xmldom.getFirstChild(l_node);
    IF (xmldom.isNull(l_node) = false) THEN
    IF xmldom.getNodeType(l_node) = xmldom.TEXT_NODE THEN
    IF l_nodename = 'purchase-order-number' THEN
    l_po_num:=NULL;
    l_po_num:= xmldom.getNodeValue(l_node);
    -- dbms_output.put_line('Purchaser Order Num : '||l_po_num);
    END IF;
    from here onwards I get the string values
    Now I don't know where to set the DTD basepath or baseurl. I need it asap.
    Regards,
    Naveen.

    The version which I'm working on is 10.2.0.4.
    XML File---
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">
    <MobileInventoryResponse>
    <message>
    <message-header>
    <message-id>16244182</message-id>
    <transaction-name>ship-advice</transaction-name>
    <partner-name>cbeyond</partner-name>
    <source-url>http://www.brightpoint.com</source-url>
    <create-timestamp>20080826150709</create-timestamp>
    <response-request>1</response-request>
    </message-header>
    <ship-advice>
    <header>
    <customer-id>297859</customer-id>
    <shipment-information>
    <ship-first-name>RA_13Aug_1</ship-first-name>
    <ship-last-name>MIND</ship-last-name>
    <ship-address1>test</ship-address1>
    <ship-city>test</ship-city>
    <ship-state>VA</ship-state>
    <ship-post-code>22102-4931</ship-post-code>
    <ship-country-code>US</ship-country-code>
    <ship-phone1>0040726335068</ship-phone1>
    <ship-email>[email protected]</ship-email>
    <ship-via>FX01</ship-via>
    <ship-request-date>20080826</ship-request-date>
    <ship-request-warehouse>CBY1</ship-request-warehouse>
    </shipment-information>
    <purchase-order-information>
    <purchase-order-number>380928</purchase-order-number>
    <account-description />
    <purchase-order-amount>0.0</purchase-order-amount>
    <currency-code>USD</currency-code>
    </purchase-order-information>
    <order-header>
    <customer-order-number>0002759</customer-order-number>
    <customer-order-date>20080826</customer-order-date>
    <order-sub-total>19.0</order-sub-total>
    <order-discount>0.0</order-discount>
    <order-tax1>0.0</order-tax1>
    <order-tax2>0.0</order-tax2>
    <order-tax3>0.0</order-tax3>
    <order-shipment-charge>18.0</order-shipment-charge>
    <order-total-net>0.0</order-total-net>
    <order-status>Completed</order-status>
    <order-type />
    <brightpoint-order-number>35028788</brightpoint-order-number>
    <warehouse-id>CBY1</warehouse-id>
    <ship-date>20080826</ship-date>
    </order-header>
    </header>
    <detail>
    <line-item>
    <line-no>1</line-no>
    <item-code>SKU1</item-code>
    <universal-product-code>0</universal-product-code>
    <ship-quantity>1.0</ship-quantity>
    <unit-of-measure>EA</unit-of-measure>
    <serial-list>
    <serial-numbers>
    <esn>TIMI000013</esn>
    </serial-numbers>
    </serial-list>
    <line-status />
    <base-price>0.0</base-price>
    <line-discount>0.0</line-discount>
    <line-tax1>0.0</line-tax1>
    <line-tax2>0.0</line-tax2>
    <line-tax3>0.0</line-tax3>
    <bill-of-lading>929406733828</bill-of-lading>
    <scac>FX01</scac>
    </line-item>
    </detail>
    </ship-advice>
    <transactionInfo>
    <eventID>16244182</eventID>
    </transactionInfo>
    </message>
    </MobileInventoryResponse>
    XML FILE END--------------------
    MY PROGRAM IS AS BELOW---
    get_eai_data_prc( x_ret_code OUT NUMBER
    ,p_debug_flag IN VARCHAR2
    IS
    --Local Variables
    l_xml_parser xmlparser.Parser;
    l_xml_doc xmldom.DOMDocument;
    l_xml_data CLOB;
    l_nodelist xmldom.DOMNodeList;
    l_length NUMBER := 0;
    l_num_cnt NUMBER := 0;
    l_node xmldom.DOMNode;
    l_docelem DBMS_XMLDOM.DOMElement; -- XML DOM element.
    l_nodeValue VARCHAR2(30); -- Text value of the node.
    l_nodename VARCHAR2(100);
    l_po_num VARCHAR2(150);
    l_account_desc VARCHAR2(150);
    l_cust_ord VARCHAR2(150);
    l_ship_date VARCHAR2(150);
    l_item_code VARCHAR2(150);
    l_ship_qty VARCHAR2(150);
    l_esn VARCHAR2(150);
    l_cust_channel_type VARCHAR2(150);
    l_cust_grp_acct VARCHAR2(150);
    l_max_doc_id NUMBER;
    l_doc_id NUMBER;
    l_market_id VARCHAR2(150);
    l_record_id VARCHAR2(30);
    TYPE l_esn_table IS TABLE OF VARCHAR2(30)
    INDEX BY BINARY_INTEGER;
    l_data l_esn_table;
    --CURSOR TO GET XML DATA FROM EAI
    CURSOR cur_xml_data(p_doc_id VARCHAR2)
    IS
    SELECT id
         ,document l_xml_data
    FROM tds_xml_store_temp
    WHERE id >= id ;
    BEGIN
    FOR rec_xml_data IN cur_xml_data(l_max_doc_id)
    LOOP
    l_doc_id := rec_xml_data.id;
    l_xml_parser := xmlparser.newParser;
    xmlparser.setValidationMode(l_xml_parser, FALSE);
    xmlparser.parseCLOB(l_xml_parser,rec_xml_data.l_xml_data);
    l_xml_doc := xmlparser.getDocument(l_xml_parser);
    xmlparser.freeParser(l_xml_parser);
    l_nodelist := xmldom.getElementsByTagName(l_xml_doc, '*');
    l_length := xmldom.getLength(l_nodelist);
    -- loop through elements
    FOR l_rec_xml in 0..l_length-1
    LOOP
    l_node := xmldom.item(l_nodelist, l_rec_xml);
    -- dbms_output.put(xmldom.getNodeName(n));
    -- get the text node associated with the element node
    l_nodename:=xmldom.getNodeName(l_node);
    l_node := xmldom.getFirstChild(l_node);
    IF (xmldom.isNull(l_node) = false) THEN
    IF xmldom.getNodeType(l_node) = xmldom.TEXT_NODE THEN
    IF l_nodename = 'purchase-order-number' THEN
    l_po_num:=NULL;
    l_po_num:= xmldom.getNodeValue(l_node);
    -- dbms_output.put_line('Purchaser Order Num : '||l_po_num);
    END IF;--purchase-order-number
    IF l_nodename = 'account-description' THEN
    l_account_desc :=NULL;
    l_account_desc := xmldom.getNodeValue(l_node);
    END IF;
    IF l_nodename = 'customer-channel-type' THEN
    l_cust_channel_type:=NULL;
    l_cust_channel_type:= xmldom.getNodeValue(l_node);
    END IF;
    IF l_nodename = 'customer-group-account' THEN
    l_cust_grp_acct := NULL;
    l_cust_grp_acct := xmldom.getNodeValue(l_node);
    END IF;
    IF l_nodename = 'customer-order-number' THEN
    l_cust_ord:=NULL;
    l_cust_ord:= xmldom.getNodeValue(l_node);
    -- dbms_output.put_line('Customer Order NUm : '||l_cust_ord);
    END IF;--customer-order-number
    IF l_nodename = 'ship-date' THEN
    l_ship_date:=NULL;
    l_ship_date:= xmldom.getNodeValue(l_node);
    -- dbms_output.put_line('Ship Date : '||to_date(l_ship_date,'YYYY-mm-dd'));
    END IF;--ship-date
    IF l_nodename = 'item-code' THEN
    l_item_code:=NULL;
    l_item_code:= xmldom.getNodeValue(l_node);
    -- dbms_output.put_line('Item Code : '||l_item_code);
    END IF;--item-code
    IF l_nodename = 'esn' THEN
    l_esn:=NULL;
    l_num_cnt := l_num_cnt + 1;
    l_esn:=xmldom.getNodeValue(l_node);
    l_data(l_num_cnt) := l_esn;
    -- dbms_output.put_line('Serial Num : '||l_esn);
    END IF;--esn
    IF l_nodename = 'market-id' THEN
    l_market_id := NULL;
    l_market_id := xmldom.getNodeValue(l_node);
    END IF;
    IF l_nodename = 'ship-quantity' THEN
    l_ship_qty:=NULL;
    l_ship_qty:= xmldom.getNodeValue(l_node);
    -- dbms_output.put_line('Ship Quantity : '||l_ship_qty);
    END IF;--ship-quantity
    END IF;--xmldom.TEXT_NODE
    END IF;
    END LOOP;--l_rec_xml
    FOR j in l_data.first..l_data.last
    LOOP
    INSERT INTO cbey_shipment_int_stg( purchase_order_number
    ,account_description
    ,customer_order_number
    ,ship_date
    ,item_code
    ,ship_quantity
    ,esn
    ,customer_channel_type
    ,customer_group_account
    ,market_id
    ,eai_xml_doc_id
    ,record_status
    ,record_id
    VALUES
    ( l_po_num
    ,l_account_desc
    ,l_cust_ord
    ,to_date(l_ship_date,'YYYY-mm-dd')
    ,l_item_code
    ,l_ship_qty
    ,l_data(j)
    ,l_cust_channel_type
    ,l_cust_grp_acct
    ,l_market_id
    ,l_max_doc_id
    ,'NEW'
    ,CBEY_RECORD_ID_SEQ_S.nextval
    END LOOP;--j
    UPDATE cbey_interface_run_log
    SET request_id = l_conc_req_id
    ,lastrun_date = SYSDATE
    ,doc_id = rec_xml_data.id
    WHERE program_id = 'SHIPMENT_INT'
    AND doc_id =l_max_doc_id;
    l_data.delete;
    l_num_cnt :=0;
    END LOOP; --rec_xml_data
    COMMIT;
    END of the Procedure--------------------------
    Now if I load the xml file without the this :- <!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">
    it works well. But it gives error when this particular thing is there.
    Regards,
    Naveen
    Edited by: MAN on Oct 17, 2008 7:28 AM

  • ORA-20100: Error occurred while parsing (from xml in custom schema)

    Hi,
    I am using xmlParser and xmlDom to extract information from xml document. My whole process works perfectly in the APPS schema on the Oracle e-Business Suite. The minute I move it to a custom schema (ie new User) I get this error.
    ORA-20100: Error occurred while parsing: Element '' used but not declared.
    This only occures at runtime. I am pretty sure I grant the correct SELECT and EXECUTE privileges to this Schema. If I hadn't then it would not compile. It compiles without errors on the Database.
    Any help will be appreciated.
    Thanks in advance.
    Regards
    Dave

    I just tried this again. I have Oracle9i 9.0.1.1 on my Windows
    2000 laptop.
    I went to OTN and downloaded the XDK 9.0.2D for PL/SQL
    I used loadjava to load the \oracle\ora90\rdbms\jlib\xdb_g.jar
    file into the database (shouldn't have had to do this) into the
    XMLBOOK account. Filed a bug for needing to do this by hand.
    I ran "xdkload.bat" with xmlbook/xmlbook as the username/password
    I made sure the proxy server name was set correctly in the
    example (if you don't need a proxy server, comment out that line
    in the parse_xml_news.sql example, or that could cause your
    error!!)
    I ran the parse_xml_news.sql script, and I get:
    Top Stories on XML from Moreover.com on December 21st, 2001
    ( 1) CEO highlights Mercator Softwares single biggest opportunity
    ( 2) WWRE Chooses webMethods
    ( 3) WebMethods, retail exchange ink deal
    ( 4) Worldwide Retail Exchange Chooses webMethods
    ( 5) Worldwide Retail Exchange Chooses webMethods
    ( 6) WorldWide Retail Exchange choses webMethods for integration
    ( 7) XML: Wherever You Go, There You Are
    ( 8) Chap. 13: Metadata
    ( 9) Enterprise Adoption of XML Made Simple
    (10) XML Databases
    (11) Using CSS2 to display XML documents
    (12) How XML could bring an end to all of your troubles
    (13) Effort Launched To Bring Classic Macs Rich Metadata To Mac
    (14) Sneak attack on Pearl Harbor roused publics anger, resolve
    (15) Drug dogs whiff worth $230,000
    (16) PORTLAND Police target
    (17) 11-year-old cant seem to get out of jury duty
    (18) Another casualty of war: Proposed waterfront museum
    (19) webMethods Establishes Sales Operations in Brussels
    (20) Using Emacs for XML documents
    (21) Gates: XML could be everything we dreamed...
    (22) XML: The end of all your troubles?
    (23) Java XML
    (24) Tool To Compare XML Files
    (25) Fairfax County Sends webMethods to School
    (26) webMethods Embraces Web Services
    (27) WebMethods Supports Web Services
    (28) Accessing metadata through Reflection
    (29) When format is foremost
    (30) Views from Abroad: XML Pipelines and Delta XML

  • Oracle query on dblinked SQL Server tables returns ORA-00904 error

    Hi,
    I have created a dblink to a SQL Server database from Oracle using Generic Connectivity.
    The following query returns ORA-00904 Invalid Identifier error in the WHERE clause (tblEmp.Empno)
    SELECT "EmpNo","EmpName", "DeptName"
    FROM tblEmp@sqlserver,
    tblDept@sqlserver
    WHERE tblDept.DeptNo = tblEmp.Empno
    I had to enclose the column names in double quotes due to case sensitivitiy of the columns, but I can't do the
    same for the WHERE clause.
    1) So, how do I fix this error ?
    2) Also how do I include Deptno column with table alias in the columns list?
    (Deptno is ambiguous in Emp and Dept tables)
    Regards,
    Sam

    Alex
    Because using the aliases all the time can become annoying and lead to disparate standards when used by multiple developers. For a one-off query I would go with aliases in the query but if the linked tables are going to be interrogated extensively I would prefer to create vanilla views of the underlying tables so that the aliases aren't necessary.
    Just my opinion, it feels a bit cleaner to do it this way - you only do the work once in creating the view and then you don't need to worry about the case sensitivity of the linked database. You can also refer to the source in the name of the view so you don't have to think about different source databases with the same table names.
    Cheers
    Ben

  • Error during SP application.'TP CONNECT SID ' returns ORA-03114 error.

    Hi All,
    Last week we were applying an Add-On SAPK-510AGINAIN. It was running in
    phase IMPORT_PROPER for more than 10 hours without any update in logs.
    So I went into SM50 cancelled the work processess. From then when I continue the Add-on installation, I get an error 'TP_CANNOT_CONNECT_TO_SYSTEM' and tp return code 230. When I see
    the SLOG, it says R3trans cannot create a process. When I tried
    doing 'tp connect PI7 pf=<profile name>, I get a error 'ORA-03114- NOt
    connected to ORACLE' and also some SQL Query with ddntt table and few entries.
    I also did a DBCHECK, the ABAP Dictionary is consistent with the
    Database.Also I suspect the nametab entries should have been
    inconsistent state when I killed the work process manually..
    Regards
    Thilip Kumar

    Hi Juan,
    Oracle did not go down during SP application.. R3trans -d works fine and also the Transport tool tp check also is fine.. I have even upgraded the kernel to the latest level. STMS is configured for Single system landscape and it is also very well fine..
    Please see the output of 'tp connect PIX pf="<TP_PROFILE_>"
    TRACE-INFO: 337:  [dev trc     ,00000]  SELECT VERSION, UUID, CRTIMESTMP, ABTIMESTMP, DYTIMESTMP, FLDCNT, TABLENGTH, KEYCNT, KEYLENGTH, CLIE\
    TRACE-INFO: 338:                                                                                30  0.356722
    TRACE-INFO: 339:  [dev trc     ,00000]  NTPOS, TABTYPE, TABFORM, REFNAME, HFLAG, BUFSTATE, BUFPARM, ALIGN, POINTERLG, UNICODELG, COMPCNT, LE\
    TRACE-INFO: 340:                                                                                27  0.356749
    TRACE-INFO: 341:  [dev trc     ,00000]  AFCNT FROM "DDNTT" WHERE TABNAME = :A0;                        20  0.356769
    TRACE-INFO: 342:  [dbntab      ,01003]  ***LOG BY4=>sql error 3114   performing SEL on table DDNTT      [dbntab#6 @ 10038]
    TRACE-INFO: 343:                                                                                38  0.356807
    TRACE-INFO: 344:  [dbntab      ,01003]  ***LOG BY0=>ORA-03114: not connected to ORACLE [dbntab#6 @ 10038]
    TRACE-INFO: 345:                                                                                31  0.356838
    TRACE-INFO: 346:  [dev trc     ,00000]  OCI-call failed with -1=OCI_ERROR                             299  0.357137
    TRACE-INFO: 347:  [dev trc     ,00000]     SQL error 3114: 'ORA-03114: not connected to ORACLE'        24  0.357161
    TRACE-INFO: 348:  [dbsloci.    ,00000]  *** ERROR => Error 3114 in stmt_fetch() from oci_execute_stmt(), orpc=1
    TRACE-INFO: 349:                                                                                35  0.357196
    TRACE-INFO: 350:  [dbsloci.    ,00000]  *** ERROR => ORA-3114 occurred when executing SQL stmt (parse error offset=0)
    TRACE-INFO: 351:                                                                                33  0.357229
    TRACE-INFO: 352:  [dev trc     ,00000]  sc_p=0x110cc4770,no=3,idc_p=0x110cdd560,con=0,act=1,slen=238,smax=256,#vars=1,stmt=0x110fe94e8,table=DDNTT                        
    TRACE-INFO: 353:                                                                                34  0.357263
    TRACE-INFO: 354:  [dev trc     ,00000]  SELECT VERSION, UUID, CRTIMESTMP, ABTIMESTMP, DYTIMESTMP, FLDCNT, TABLENGTH, KEYCNT, KEYLENGTH, CLIE\
    TRACE-INFO: 355:                                                                                31  0.357294
    TRACE-INFO: 356:  [dev trc     ,00000]  NTPOS, TABTYPE, TABFORM, REFNAME, HFLAG, BUFSTATE, BUFPARM, ALIGN, POINTERLG, UNICODELG, COMPCNT, LE\
    TRACE-INFO: 357:                                                                                30  0.357324
    TRACE-INFO: 358:  [dev trc     ,00000]  AFCNT FROM "DDNTT" WHERE TABNAME = :A0;                        20  0.357344
    TRACE-INFO: 359:  [dev trc     ,00000]  sc_p=0x110cc4770,no=3,idc_p=0x110cdd560,con=0,act=1,slen=238,smax=256,#vars=1,stmt=0x110fe94e8,table=DDNTT                        
    TRACE-INFO: 360:                                                                                98  0.357442
    TRACE-INFO: 361:  [dev trc     ,00000]  prep=0,lit=0,nsql=0,lobret=0,#exec=1,dbcnt=0,upsh_p=(nil),ocistmth_p=0x110fe9ec0
    TRACE-INFO: 362:                                                                                33  0.357475
    TRACE-INFO: 363:  [dev trc     ,00000]  IN : cols=1,rmax=1,xcnt=0,rpc=0,rowi=0,rtot=0,upto=4294967295,rsize=60,vmax=32,bound=1,iobuf_p=0x110fb1468,vda_p=0x110feb8c8
    TRACE-INFO: 364:                                                                                34  0.357509
    TRACE-INFO: 365:  [dev trc     ,00000]       lobs=0,lmax=0,lpcnt=0,larr=(nil),lcurr_p=(nil),rret=0
    TRACE-INFO: 366:                                                                                31  0.357540
    TRACE-INFO: 367:  [dev trc     ,00000]  OUT: cols=21,rmax=1,xcnt=1,rpc=1,rowi=0,rtot=1,upto=4294967295,rsize=218,vmax=32,bound=1,iobuf_p=0x110e0d4e8,vda_p=0x110fec028
    TRACE-INFO: 368:                                                                                34  0.357574
    TRACE-INFO: 369:  [dev trc     ,00000]       lobs=0,lmax=0,lpcnt=0,larr=(nil),lcurr_p=(nil),rret=0
    TRACE-INFO: 370:                                                                                31  0.357605
    TRACE-INFO: 371:  [dev trc     ,00000]  SELECT VERSION, UUID, CRTIMESTMP, ABTIMESTMP, DYTIMESTMP, FLDCNT, TABLENGTH, KEYCNT, KEYLENGTH, CLIE\
    TRACE-INFO: 372:                                                                                30  0.357635
    TRACE-INFO: 373:  [dev trc     ,00000]  NTPOS, TABTYPE, TABFORM, REFNAME, HFLAG, BUFSTATE, BUFPARM, ALIGN, POINTERLG, UNICODELG, COMPCNT, LE\
    TRACE-INFO: 374:                                                                                31  0.357666
    TRACE-INFO: 375:  [dev trc     ,00000]  AFCNT FROM "DDNTT" WHERE TABNAME = :A0;                        20  0.357686
    TRACE-INFO: 376:  [dbntab      ,01003]  ***LOG BY4=>sql error 3114   performing SEL on table DDNTT      [dbntab#6 @ 10038]
    TRACE-INFO: 377:                                                                                38  0.357724
    Also the are no dumps as well as system logs for the issue..
    Regards
    Thilip Kumar
    Edited by: Thilip Kumar on Dec 23, 2008 3:44 PM
    Edited by: Thilip Kumar on Dec 23, 2008 3:45 PM
    Edited by: Thilip Kumar on Dec 23, 2008 3:46 PM

  • Trying to create a Dimension returns ORA-36830 Error.

    Hi All,
    I am running OLAP on 11.1.0.7 DB Instance on AIX 6.1. Interaction is performed via AWM 11.1.0.7B.
    I have created a user 'OLAPAW' and assigned all privileges as per OLAP Users Guide but for some unknown reason receive the following error when trying to create a Dimension :
    Your metadata changes have been saved, with the following errors, CREATE OR REPLACE VIEW "OLAPAW"."BRAND_VIEW" AS
    ORA-36830: Object OLAPAW.BRAND does not exist
    The role 'OLAP_USER' is already defined as a default role for 'OLAPAW' user.
    Regards,
    Harry.

    In addition to granting role OLAP_USER, can you confirm if you also have:
    create session, create dimension, create materialized view, advisor, olap_xs_admin

  • XMLParser for PL/SQL ORA-20100 Problem

    I am using XML parser for PL/SQL in Oracle9i Enterprise Edition Release 9.0.1.1.1
    When i run the sample xml program, i get error which is as follows. While compiling no errors. But while executing it reports error as given below.
    SQL> execute domsample('c:\xml', 'family.xml', 'errors.txt');
    begin domsample('c:\xml', 'family.xml', 'errors.txt'); end;
    ORA-20100: Error occurred while parsing: No such file or directory
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 22
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 79
    ORA-06512: at "COMMODITYBACKCONNECT.DOMSAMPLE", line 80
    ORA-06512: at line 1
    What need to be done to rectify the above problem.
    when i do the following validation check
    SQL>
    SQL> select substr(dbms_java.longname(object_name),1,30) as class, status
    2 from all_objects
    3 where object_type = 'JAVA CLASS'
    4 and object_name = dbms_java.shortname('oracle/xml/parser/v2/DOMParser')
    5 ;
    CLASS STATUS
    oracle/xml/parser/v2/DOMParser VALID
    oracle/xml/parser/v2/DOMParser VALID
    Please advice to how remove the following error:
    ORA-20100: Error occurred while parsing: No such file or directory

    Hi, I have run into the same problem. I think the parser is looking for c:\XML on your sever instead of your local drive. Try creating a dir on the server called \xml and rerunning the script. I don't know whether it will fix your problem, as i am sitting with the same thing, but it is a step in the right direction. Also check your separators. If you are running unix servers use / instead of \

  • XMLParser for PL/SQL ORA-20100

    I am using XML parser for PL/SQL in Oracle9i Enterprise Edition Release 9.0.1.1.1
    When i run the sample xml program, i get error which is as follows. While compiling no errors. But while executing it reports error as given below.
    SQL> execute domsample('c:\xml', 'family.xml', 'errors.txt');
    begin domsample('c:\xml', 'family.xml', 'errors.txt'); end;
    ORA-20100: Error occurred while parsing: No such file or directory
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 22
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 79
    ORA-06512: at "COMMODITYBACKCONNECT.DOMSAMPLE", line 80
    ORA-06512: at line 1
    What need to be done to rectify the above problem.
    when i do the following validation check
    SQL>
    SQL> select substr(dbms_java.longname(object_name),1,30) as class, status
    2 from all_objects
    3 where object_type = 'JAVA CLASS'
    4 and object_name = dbms_java.shortname('oracle/xml/parser/v2/DOMParser')
    5 ;
    CLASS STATUS
    oracle/xml/parser/v2/DOMParser VALID
    oracle/xml/parser/v2/DOMParser VALID
    Please advice to how remove the following error:
    ORA-20100: Error occurred while parsing: No such file or directory

    Hi, I have run into the same problem. I think the parser is looking for c:\XML on your sever instead of your local drive. Try creating a dir on the server called \xml and rerunning the script. I don't know whether it will fix your problem, as i am sitting with the same thing, but it is a step in the right direction. Also check your separators. If you are running unix servers use / instead of \

  • Xmlparser.parse fails with ORA-20100 when reading from mapped network drive

    Hi
    I have a problem with the xmlparser when parsing an xml document from a mapped network drive. If I read the xml document from a local drive, then there is no problem.
    I haven't been able to find any documentation specifying this. Is there any way to parse a file from a mapped network drive???
    To clarify, I have created an example procedure, that parses an XML doc from disc, notice that the G: drive is a mapped drive:
    CREATE OR REPLACE procedure test_xmlparser is
    p xmlparser.Parser;
    dir varchar2(100) := 'G:\Vejdirektoratet\root\xsl';
    errfile VARCHAR2(32) := 'error.log';
    begin
    p := xmlparser.newParser;
    -- set parser properties
    xmlparser.setValidationMode(p, FALSE);
    xmlparser.setErrorLog(p, dir || '\' || errfile);
    xmlparser.setPreserveWhiteSpace(p, FALSE);
    -- parse xml file
    xmlparser.parse(p, dir || '\' || 'HelloWorld.xml');
    xmlparser.FREEPARSER(p);
    end;
    The file HelloWorld.xml contains the following:
    <?xml version = '1.0'?>
    <message>
    <text>Hello World</text>
    </message>
    When running this in SQL*Plus I get the following error:
    ORA-20100: Error occurred while parsing: Invalid argument
    ORA-06512: at "SYS.XMLPARSER", line 22
    ORA-06512: at "SYS.XMLPARSER", line 69
    ORA-06512: at "VD.TEST_XMLPARSER", line 14
    ORA-06512: at line 1
    Changing the value of the variable dir to 'C:\' makes it all work.

    Hi again
    I need to ask a last, hopefully ;-), question on upgrading the JDK to 1.3.1:
    As far as I understand, this is how I do it:
    1) Install JDK 1.3.1 on DB server
    2) tell Oracle DB, to use that JDK.
    Is this the correct way? And how is step 2 done?
    Looked on metalink, google etc., but could only find this for 9iAS (not the DB) and Oracle Applications 11i.
    thanks, Sxren

  • AP Create Accounting - Error ORA-06512, XLA-95103, ORA-20001, ORA-20100

    *Hello all you patient Oracle Champs - I know issues like this are floating around the forum and web but I still can't seem to fine a match.*
    *> OA R12.1.3*
    *> Orcale Database Server 11.2.0.2*
    [010613_011550898][][EXCEPTION] SQLException encounter while executing data trigger....
    java.sql.SQLException: ORA-20001: -: XLA-95103: An internal error occurred.
    Please inform your system administrator or support representative that:
    An internal error has occurred in the program xla_create_acct_rpt_pvt.BeforeReport .
    ORA-20001: -: XLA-95103: An internal error occurred.
    Please inform your system administrator or support representative that:
    An internal error has occurred in the program XLA_CREATE_ACCT_RPT_PVT.print_logfile.
    ORA-20100: Error: FND_FILE failure. Unable to create file, o0104058.tmp in the directory, /usr/tm
    ORA-06512: at "APPS.APP_EXCEPTION", line 72
    *> Note the directory path cited: +/usr/tm+*
    *> A later error:*
    Oracle error 20100: java.sql.SQLException: ORA-20100: Error: FND_FILE failure.
    Unable to create file, o0104058.tmp in the directory, /usr/tmp.
    *> Note the directory: +/usr/tmp+*
    SQL> show parameter utl_file_dir
    utl_file_dir
    string /usr/tmp, /usr/tmp, /Develop_DB/DEV/11.2.0.2/appsutil/outbound/DEV_orcl-dev-db, /usr/tmp
    $ echo $APPLTMP
    /Develop_Appl/DEV/inst/apps/DEV_orcl-dev-appl/appltmp
    *> has read/write permissions (777)*
    $ echo $APPLPTMP
    /usr/tmp
    *> has read/write permissions (777)*
    *> There is plenty of space in /usr, /Develop_Appl*
    *> Patch 10131305 already applied per note: 1392267.1*
    *> SLA: Enable Diagnostics set to a null value (blank)*
    *> the file o0104058.tmp does not exist in either $APPLTMP or $APPLPTMP (i.e. note 460643.1)*
    *> I confirmed that note 749491.1 was not an issue*
    *> note 261693.1 did not seem to apply*
    *> note 148262.1 did not seem to apply*
    I can provide the concurrent & FND debug output if needed.
    Thank you all*
    Zippy the P

    Zippy242 wrote:
    Hi Hussein,
    checked 1252703.1 - it doesn't appear applicable:
    SQL> show parameter utl_file_dir
    utl_file_dir
    string /usr/tmp, /usr/tmp, /Develop_DB/DEV/11.2.0.2/appsutil/outbound/DEV_orcl-dev-db, /usr/tmp
    $ echo $APPLTMP
    /Develop_Appl/DEV/inst/apps/DEV_orcl-dev-appl/appltmp
    *> has read/write permissions (777)*
    $ echo $APPLPTMP
    /usr/tmp
    *> has read/write permissions (777)*
    checked 760614.1 - not the case:
    no invalid XLA%
    FUN_SEQ_BATCH both package and body are valid.
    Please Advise
    thanks,
    ZipAre you running all the application/database services on one server or multiple ones?
    Thanks,
    Hussein

  • ORA-20100 Question

    I have been trying to pass an XML Message through a PL/SQL procedure as a CLOB using Visual Basic. I can pass the XML Message Through Fine, but when I try to create a DOM Node using the Oracle XDK I get an error that says:
    -2147221503: ORA-20100: Error occurred while parsing: Start of root element expected.
    The Xml file looks like this:
    <ATP_INFO>
    <ATP_INFO_IN>
    <CONTRACT>LHNDC</CONTRACT>
    <PART_NO>1001E</PART_NO>
    </ATP_INFO_IN>
    <Procedure>
    <Contract>LHNDC</Contract>
    <Parameter>ATP_INFO</Parameter>
    <Action>CHECK</Action>
    <Synchronous>True</Synchronous>
    </Procedure>
    <OutMessageID>446661</OutMessageID>
    <Receiver/>
    <ExternalRef/>
    </ATP_INFO>
    Passing the Clob Parameter works fine in a test PL/SQL Package that looks like this:
    CREATE OR REPLACE PROCEDURE TEST (in_clob_ IN CLOB, out_clob_ OUT CLOB) AS
    BEGIN
    out_clob_ := in_clob_;
    END;
    It's just when I call the xmlparser.parseclob procedure in PL/SQL that I have a problem.
    I am currently using Oracle 8.1.6.3 with 8.1.7 OleDB Provider for the Clob usage. I am also just loading the XML into a MSXML Dom and calling the .xml method to write the XML out as text into an ADO Parameter. I didn't know if anyone else might of had a similar problem with this type of techonology?
    Thanks

    I am getting a similar error using the XDK when I try to parse a clob from a select.
    Error: ORA-20100: Error occurred while parsing: Expected 'EOF'.
    If I add a varaible to the procedure that is identical to the string I inserted to the table:
    temptext :='<?xml version="1.0"........................';
    and parse using
    xmlparser.ParseBuffer(parser,temptext);
    instead of
    xmlparser.ParseClob(parser,c);
    it works perfectly.

  • Ora-20100: File o0082504.tmp  creation for FND_FILE failed

    My some request is completed with error.
    ora-20100: File o0082504.tmp creation for FND_FILE failed
    i followed the following note Doc ID 261693. 1

    Hi;
    What is your EBS version?What is DB and OS?
    please see:
    ORA-20100
    Re: ORA-20100: Error: FND_FILE failure. Unable to create file
    Regard
    Helios

  • ORA-19112: error raised during evaluation: ... Invalid text

    Hi!
    I'm using Oracle 10g version 10.2.0.2.0.
    If I an element is defined in a XSD file as:
                <xs:element name="cEAN">
                 <xs:annotation>
                  <xs:documentation>GTIN</xs:documentation>
                 </xs:annotation>
                 <xs:simpleType>
                  <xs:restriction base="xs:string">
                   <xs:whiteSpace value="preserve"/>
                   <xs:pattern value="[0-9]{0}|[0-9]{8}|[0-9]{12,14}"/>
                  </xs:restriction>
                 </xs:simpleType>
                </xs:element>And I have a XML with:
    <cEAN/>And other with:
    <cEAN>7891515928001</cEAN>And I use a select like this:
            SELECT vw.*
              FROM tb_Carga tmp,
              XMLTABLE(XMLNAMESPACES('http://www.portalfiscal.inf.br/nfe' AS "nfe"),
                       '/NFe/nfe:infNFe/nfe:det | /nfe:NFe/nfe:infNFe/nfe:det'
                       PASSING tmp.XMLArquivo
                       COLUMNS
                         cEANTrib  VARCHAR2(14)  PATH 'nfe:prod/nfe:cEANTrib') vwWhy the first XML returns ORA-19112: error raised during evaluation: oracle.xml.parser.v2.XMLParseException: Invalid text '' in element: 'cEAN'?
    Is any thing wrong in the XSD?
    Thanks,
    Luciana

    Tried to figure out the correct regular expression, I think I would now opt for
    <xs:pattern value="?|[0-9]{8}|[0-9]{12,14}"/>? matches "nothing/empty", or
    [0-9]{8} matches 8 digits, or
    [0-9]{12,14} matches from 12 up to 14 digits
    ...or...
    <xs:pattern value="([0-9]{1})?|[0-9]{8}|[0-9]{12,14}"/>[0-9]? matches 1 digit or "nothing/empty", or
    [0-9]{8} matches 8 digits, or
    [0-9]{12,14} matches from 12 up to 14 digits
    Edited by: Marco Gralike on Mar 31, 2011 11:58 PM

Maybe you are looking for