ORA-31186: Document contains too many nodes

Hi all,
DB version:
BANNER                                                        
Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - 64bi
PL/SQL Release 10.1.0.5.0 - Production                          
CORE     10.1.0.5.0     Production                                        
TNS for HPUX: Version 10.1.0.5.0 - Production                   
NLSRTL Version 10.1.0.5.0 - Production i am getting the "ORA-31186: Document contains too many nodes" error when listitem nodes come more then 70,000.
my  code like below.
  l_xmldoc := '<listitems>
  <listitem><homePhone>6666446666</homePhone><mobile>9988776655</mobile><emailaddr><![CDATA[[email protected]]]></emailaddr><deviceid>1</deviceid></listitem>
  <listitem><homePhone>6666446666</homePhone><mobile>9988776656</mobile><emailaddr><![CDATA[[email protected]]]></emailaddr><deviceid>1</deviceid></listitem>
  <listitem><homePhone>6666446666</homePhone><mobile>9988776657</mobile><emailaddr><![CDATA[[email protected]]]></emailaddr><deviceid>1</deviceid></listitem> 
</listitems>';
SELECT EXTRACT(l_xmldoc,'/listitems/listitem')   into l_xmldoc FROM DUAL;--error raising here
  SELECT EXTRACTVALUE( VALUE(t),'/listitem/emailaddr')
             ,EXTRACTVALUE( VALUE(t),'/listitem/mobile')
             ,EXTRACTVALUE( VALUE(t),'/listitem/homephone')
             ,EXTRACTVALUE( VALUE(t),'/listitem/deviceid')
BULK COLLECTION INTO t_table
  FROM TABLE(XMLSEQUENCE(l_xmldoc)) t;Please help me to understand why this error occurs and how to resolve.
Thanks,
Ram

>
You can find a little bit extra info in the search errors section on OTN regarding doc's 10gR2:
* ORA-31186: Document contains too many nodes
Cause: Unable to load the document because it has exceeded the maximum allocated number of DOM nodes.
Action: Reduces the size of the document.
>
Check this discussion -- ORA-24817 and ORA-31186 (undocumented errors)
Somebody suggested - Increasing the shared_pool_size and the java_pool_size will fix this.
Please check,
Edited by: ranit B on Nov 27, 2012 4:37 PM

Similar Messages

  • ORA-31186 Document contains too many nodes - Using XMLGen with XSLT

    When processing a query that returns a large number of rows I'm getting this error. It doesn't appear that processing results with a style sheet works for larger result sets, in this case 64k rows.

    Hi,
    you may want to check
    ORA-24817 and ORA-31186 (undocumented errors)
    Regards,
    Jaromir

  • Document contains too many nodes error when extracting xml tag name

    I Have a large xml file in which the tag contains ~: as the value.
    Now I am trying to extract all the tags which have ~: as the value and store that column using the following query and insert into a table.
    insert into space_md select distinct xmltype(extract(value(x), '/').getstringval()).getrootelement() COLUMN_NAME
    from gt_xmltype_tab gt, TABLE(XMLSequence(extract(gt.xmlfile1, '/ROWSET/ROW/*'))) x
    where instr(extract(value(x),'/').getstringval(),'~:') > 1;
    The xml file was generated using dbms_xmlgen.getxml. Table has 48 columns and around 4000 rows.
    My above insert query gave me an error of 31186 too many nodes error.
    I am using oracle version 10.2.0.3.
    Following are the set of commands I ran....
    SQL> insert into gt_xmltype_tab(xmlfile1)
    values(XMLType(bfilename('BKUP_RES','QC.xml'),nls_charset_id('AL32UTF8'))); 2
    1 row created.
    SQL> SQL>
    SQL> insert into restore_space_metadata select distinct 'QC', xmltype(extract(value(x), '/').getstringval()).getrootelement() COLUMN_NAME
    2 from gt_xmltype_tab gt, TABLE(XMLSequence(extract(gt.xmlfile1, '/ROWSET/ROW/*'))) x
    3 where instr(extract(value(x),'/').getstringval(),'~:') > 1;
    insert into restore_space_metadata select distinct 'QC', xmltype(extract(value(x), '/').getstringval()).getrootelement() COLUMN_NAME
    ERROR at line 1:
    ORA-31186: Document contains too many nodes
    Is there a better way of extracting the xml tag element name based on the xmltag content?
    There is one other table which has 172 columns but only 100 rows so it doesnt create any problem on that table.
    But this QC table has less columns but many many rows...
    Any suggestions

    There is a requiremnent of taking centain type of data backup and restore it.
    It was implemented on flat file approach which was giving errors.
    So it was implemented using XML approach.
    Read data, store in xml file and read from xml file and load it into table.
    Further, found that dbms_xmlstore is not able to handle tag only with whitespace
    and tried to use the loading xml file into xmltype table column and extract data.
    XMLTYPE column also has same problem of ignoring whitespace when used with extractvalue functions.
    So for the workaround I update xmlfile having only one more more whitespace in the tag to have ~: character once.
    After restoring data from xml to table I would run update qeury to update ~: to " ".
    Now instead of running blind update for all the tables and all the columns from ~: to " " I thouhgt whyy not create a xml file of tag having ~:
    along with its tablename.
    and thats where I found the problem of too many nodes...
    THe insert query you saw is populating table for table_name and column_name with tag having only ~: in it.
    I hope this gives you the fair idea of stuff I am doing.

  • Error MDX result contains too many cells (more than 1 million). (WIS 10901)

    Hi,
    We have developed an universe on BI query and developed report on it. But while running this BO query in Web Intelligence we get the following error
    A database error occured. The database error text is: Error in MDDataSetBW.GetCellData.  MDX result contains too many cells (more than 1 million). (WIS 10901)
    This BO query is restricted for one document number.
    Now when i check in the BI cube there are not more than 300-400 records for that document number.
    If i restrict the BO query for document number, delivery number, material and acknowledged date then the query runs successfully.
    Can anyone please help with this issue.

    follow this article to get the mdx generated by the webi report.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90b02218-d909-2e10-1988-a2ca74547900
    then try to execute the same in mdxtest transaction in bw

  • Sapscript: Output is continuous or contains too many pages (more than 3)

    Hi,
    I have developed Sapscript form for printing out material documents.
    When users try to print out document with 68 positions, they receive error in MB90 -
    " Output is continuous or contains too many pages (>3)".
    Message no. TD405
    If they try to print out small document, for example 3 positions, everything is ok.
    What I have to check now?
    Thanks,
    Sveta.
    Edited by: Julius Bussche on Sep 24, 2008 10:24 AM

    Hi,
        Try to check the page counters for each page format.
        How many Page formats are there in your Form?
    Check the First Page Attributes,
    Page Counter
    Mode                     START
    Numbering Type     ARABIC
        Output length     00
    which is next page to First page
    Check Next Page Attributes
    Page counter
    Mode                     INC
    Numbering Type     ARABIC
    Output length         00
    which is next page to Next page
    Regards
    Bala Krishna

  • Result set does not fit; it contains too many rows

    Dear All,
    We are in BI7 and running reports on Excel 2007. Even though number of rows limitation in Excel 2007 is more than  1Million, when I try to execute a report with more than 65k records of output, system is generating output only for 65k rows with message "Result set does not fit; it contains too many rows".
    Our Patch levels:
    GUI - 7.10
    Patch level is 11
    Is there any way to generate more than 65000 rows in Bex?
    Thanks in advance...
    regards,
    Raju
    Dear Gurus,
    Could you please shed some light on this issue?
    thanks and regards,
    Raju
    Edited by: VaraPrasadraju Potturi on Apr 14, 2009 3:13 AM

    Vara Prasad,
    This has been discussed on the forums - for reasons of backward compatibility I do not think BEx supports more that 65000 rows .... I am still not sure about the same since I have not tried out a query with more that 65K rows on excel 2007 but I think this is not possible...

  • While importing clip getting error "The file contains too many audio channels" in premiere pro cs5

    Hey,
    I  am using video clips from sony digital hi8 camera and trying to import  video clips (.mov) 720*480  fps 29.97 .But unable to get into premiere  pro cs5.System configuration:
    MAC 10.6.4
    2.66ghz intel core i7
    4gb ram
    nvidia geforce gt 330 mn.
    Error :
    Actually ,i have checked the inspector panel and i found same infomation in
    in this panel for both clips .please check these clips screen shoots seprately .
    Actually i have a long video clip and i have scatterred this clip into 6 diffrent portions
    where i am not able to import the last video clip.It is giving me same error "file contain too many audio channels"".
    Regards
    Manoj

    I too am getting this error in Premiere CS5.  I was digitizing a Broadcast VHS and since I did not have a breakout box, I hooked it up to a Sony DV deck so I could connect via firewire and capture inside Premiere.  I was able to capture and import 1 of the 3 clips and it did have 4 audio channels attached to it.  However, upon closer inspection only 2 channels had a waveform.  I captured the other 2 clips the same way, but this time, Premiere give the error "The file contains too many audio channels." 
    Any ideas?

  • 11g-[nQSError: 42029] Subquery contains too many values for the IN predicat

    Hi,
    I am having 2 reports one is for subquery which returns inputs to Main report. Actually the report was working fine in 10g. But in 11g we are gettting following error:
    View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 42029] Subquery contains too many values for the IN predicate.Please have your System Administrator look at the log for more details on this error. (HY000)
    Please have your System Administrator look at the log for more details on this error.
    Getting same error after modofying the parameter value MAX_EXPANDED_SUBQUERY_PREDICATES to 12000
    Please suggest what could be the other reason it may fail or any other settings we need to check.
    Regards,
    ckeng

    ckeng,
    Normally the IN clause has restriction of 10000 values in general sql/plsql we will go with inline queries i think model your rpd to generate inner queries
    select * from emp where dept_id in (Select distinct dept_id from dept);
    or have a condition/filter on sub report and make one more inner report with sub-filter but definitely it will cause performance issues.
    thanks,
    Saichand.v

  • MDX result contains too many cells - But relese note applied!!!!!!

    Hi experts!
    When I create a query with my infoview, it retrive me the following error:
    <ERROR COMPONENT="WIS" ERRORCODE="10901" ERRORTYPE="USER" MESSAGE="Si è verificato un errore del database. Il testo dell&apos;errore del database è: Errore in MDDataSetBW.GetCellData.  MDX result contains too many cells (more than 1 million). (WIS 10901)" PREFIX="ERR">
    I try to understand if there are some problems about the sap.notes. In particular I ask to the technical people if the following note had installed into my system:
    Note 931479 - MDX: More than 1,000,000 instances per axis
    The technical people said me that this note had been installed because the system is to level 23.
    bold
    Then what problem may be due the fact that my mdx is not able to contains more than 1 million of cell ?
    bold
    thank'you in advance !

    Hi,
    whats the release of the SAP BW System - including patch level ?
    whats the release of the SAP BusinessObjects system including patch level ?
    Ingo

  • Script error - Output is continuous or contain too many pages and get

    Hi ,
    I have added one more page (name affidvt ) to the existing script.
    Previously
    Cover page was calling next page as cover
    first    page was calling next page as next
    next   page as again next.
    But after new addition of the page ( called as affidvt) it is now
    Cover page was calling next page as cover
    first    page was calling next page as next
    next   page as affidvt.
    When I test run this script it gives -
    Output is continuous or contain too many pages and get
    terminated.
    Any solution ?

    Check the page assignments again. Looks like at least 2 pages are calling each other.
    -Cheers

  • MDX result contains too many cells - NUMC 6

    Hi to all.
    I'm using I bex query in order to retrieve the field to my universe.
    I know that when there is an element defined as NUMC (6), some errors may occurs into the MDX extraction (e.g.  MDX result contains too many cells (more than 1 million)).
    Can I set everythink in my BEX query or in my universe definition in order to not change the caratcteristic in my SAP BW system ?
    Indeed I will have some bureaucratic and formal problem to change the sap bw type definition of the caracteristics.
    Thank'you in advance.

    hi Ingo,
    Are you sure ? Indeed when I try to run a query where I have a NUMC6 filed and another field there is the error attached above.
    Instead when I run the same query without the NUMC6 field the query  ends correctly.
    Moreover I see in the "SAP Note 1378064" where I see in the "Reason and Prerequisites": The internal data types are incorrect due to NUMC(6). The conversion to integer is required.
    But I don't know if this conversion is allowed in the Bex Query step or in the universe filed definition.
    Any advice will be accepted !

  • CHECK/EXIT contains too many ABAP statements

    Hi all,
    I am working in BADI MIGO. I have included few INCLUDE program in it which is throwing the following error while activating it. Please let me know if any one have come across it.
    <b>Jump is too great and cannot be generated... A control structure or routine with CHECK / EXIT contains too many ABAP statements....</b>
    Waiting for your reply,
    Thanks,
    Venki

    Same error for me.
    I have to call a larger macro 60 times and so I can't activate the function module. If I call the macro only 50 times it works fine.
    Any idea how to solve that without a complete redesign of the code (packing the macro into a new fuction module)
    Thanks,
    Christian

  • Unable to import a document as "it contains too many cells"

    Now i'll admit that the table, S/Sheet is very large?
    16,000 + rows BUT it opens on my iMac, Macbook But it will not open on the iPad using iCloud (better discription is iClown!)
    Has anyone else seen this feature?
    Regards,
    S&F
    Alan of vianalky

    Thanks for your reply.
    The document I am editing already exists in MIME. I just added an image and few lines to it and am trying to import.
    I tried importing without an image as well but the same error.
    The char technical name has to be the documents name as well; so I cannot rename the document.
    I think when I import, it should just replace it.
    We do many query doucmentation updates this way with no errors.
    Thanks,
    Sadaf

  • Why is the pathfinder not working any more ? Too many nodes ?

    Hi there, I use Illustrator CS5 for geographical purposes and use to make maps.
    I'm making a huge and detailled map for about 6 months and discoverd last week that the pathfinder (the tool I use the most) does not want to work anymore.
    In this exemple :
    [url]http://img842.imageshack.us/img842/4606/help1f.png[/url]
    I wan't to soustract the white shape of the yellow shape but whatever I do, it won't work.
    The yellow shape is quite complex and have A LOT of nodes (I hope it's the correct name in english). Why don't you look at this unzoomed screen to check it out :
    [url]http://img696.imageshack.us/img696/5958/help2q.png[/url]
    Is it possible that I've reached a limit where i cannot use the pathfinder because my shape is too complicated ?
    Help me please because I'm stuck and cannot do anything anymore and I'm only at 30% of all I have to do with this map.
    Thank you all.

    @Jacob Bugge :
    Thanks for the advice. I've ust found out how to count my anchor points. The path used to have 30.000 anchor points and I discoverd that when cutting it, the pathfinder worked for a bit, and now I'm back to ~30.000 (31.986 exactly) and it stopped working again.
    Yes i use a single path at a time to use the pathfinder.
    @Monika Gause :
    When I click on the small icon for soustraction (substraction?), nothings happens at all. No error message. No lag or frozen screen. Just the normal way as if the pathfinder worked but unfortunately it doesn't... 
    Thanks for your advices anyway

  • Too many nodes in each states

    I'm trying to use JavaFX Composer in Netbeans 6.9 to make a blogging client that is both an editing software and a feed reader. The problem is that I want to be able to switch between different phases/screens, such as one for reading feeds and one for making a post. I tried to do this by making a read state, edit state, post state and a manage state in the Composer, but whenever I run the project, all the nodes I've placed in any state are visible instead of just one state's nodes. Each of these states is a child of the master, so it seems strange to me that these would all be sharing nodes as siblings. Is there a way of "hiding" nodes between states? Should I be approaching this completely differently?

    By default, all nodes are in the < master > state.
    In Design view, in States (on top of the screen), click on each state of you form and make sure only the revelevant node for that particular states are visible(click on a node and uncheck its visible property).

Maybe you are looking for

  • How can i set the pointer of a resultset to its start position? newbie.. :(

    hi all. i have a resultset of a sql query. then i wanna count the number of rows by doing a while loop: while(rs.next()) count++; then i wana do the same again, but it does not work anymore. i guess i have to set the pointer to its starting position,

  • Error while installing in tomcat

    Hi all, when i deploy my webapp thru eclipse,it doesn't show any error. but when i try to install thru eclipse it shows the following error: java.net.MalformedURLException: no protocol: ${tomcat.manager.url}/list can anyone help me?and give step by s

  • Upgrade  MacBook Pro (Late 2006) 17-inch: 2.33GHz(MA611LL/A)

    Hi, I want to upgrade my Hardware on Mac book pro (Late 2006) 17-inch: 2.33GHz(MA611LL/A) http://support.apple.com/kb/SP24 Ram: 2GB (two SO-DIMMs) on 2.33GHz configuration; two SO-DIMM slots support up to 3GB HDD: 100GB 7200-rpm Serial ATA hard drive

  • Abt sap certification

    Hi, Could any of u tell me how to prepare for sap-abap certification like what r the books we need to follow...and how to get started to achieve sucess.I also wanted to know is there any sites....giving this information abt. And i also wanted to know

  • Help with macro to transpose data

    I am in need of a macro to transpose rows into columns. I have been trying to figure it out with no success. My data is in the format 1 A B C x y z 2 D E F p q r 3 G H I m n o and i need it to repeat the first few columns of each row but transpose th