Unable to insert subheader in insertchildxml but   oracle says no error

Hi ,
I am unable insert subheader using insertchildxml().
Here is the code that I am working on
SQL> declare xmlschema xmltype := xdburitype('/public/personDetails.xsd').getXML(); res boolean; begin select insertChildXML( xmlschema,'/xsd:schema/xsd:complexType[@name="HomecompanyinfoType"]/xsd:sequence', 'xsd:element',xmltype('<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Ofiiceddress" type="xsd:string"/>'),'xmlns:xsd="http://www.w3.org/2001/XMLSchema"') into xmlSchema from dual; if (dbms_xdb.existsResource('/public/personDetails.xsd')) then dbms_xdb.deleteResource('/public/personDetails.xsd'); end if; res := dbms_xdb.createResource('/public/personDetails.xsd',xmlschema); end;
2 /
PL/SQL procedure successfully completed.
SQL> commit;
Commit complete.
SQL> begin dbms_xmlschema.CopyEvolve(xdb$string_list_t('www.PersonInfoUrl.com'),XMLSequenceType(xdburitype('/public/personDetails.xsd').getXML()), null); end;
2 /
PL/SQL procedure successfully completed.
SQL> commit;
Commit complete.
//above I have added the "HomecompanyinfoType" as new subheader
"Officeaddress" is the new tagfield under this new subheader
SQL>
SQL>
SQL> insert into PERSON_COMP_TABLE (empId ,comments ,joindate ,personjoininfo )
2 values ('100SP23','RDDEPT','15-jan-2006',
3 XMLType(
4 '<?xml version="1.0" encoding="UTF-8"?>
5 <person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="www.PersonInfoUrl.com">
6 <persondetails>
7 <personname>Robert </personname>
8 <personexperience>4.5</personexperience>
9 </persondetails>
10 <HomecompanyinfoType>
11 <Ofiiceddress>SLStreet</Ofiiceddress>
12 </HomecompanyinfoType>
13 <companyinfo>
14 <companystartdate>2004-07-24</companystartdate>
15 <companystandard>3.9</companystandard>
16 <address>SLStreet<address>
17 </companyinfo>
18 <salaryinfo>
19 <salary>2444.3</salary>
20 <paymonth> june </paymonth>
21 </salaryinfo>
22 </person>'))
23 /
XMLType(
ERROR at line 3:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "companyinfo" does not match start-element tag
"address"
Error at line 14
ORA-06512: at "SYS.XMLTYPE", line 301
ORA-06512: at line 1
// But I am able to add the old data without new sub header
SQL> insert into PERSON_COMP_TABLE (empId ,comments ,joindate ,personjoininfo )
2 values ('202RTe312','RDDEPT','15-jan-2006',
3 XMLType(
4 '<?xml version="1.0" encoding="UTF-8"?>
5 <person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="www.PersonInfoUrl.com">
6 <persondetails>
7 <personname>Robert </personname>
8 <personexperience>4.5</personexperience>
9 </persondetails>
10 <companyinfo>
11 <companystartdate>2004-07-24</companystartdate>
12 <companystandard>3.9</companystandard>
13 </companyinfo>
14 <salaryinfo>
15 <salary>2444.3</salary>
16 <paymonth> june </paymonth>
17 </salaryinfo>
18 </person>'))
19 /
1 row created.
SQL> commit;
Please suggest how to add new subheader to the existing schema and put the constraint to the tagfields like string length or for double- fractional digits and total digits
please advise
Thanks
Govinda

Govinda
Once again, please review your examples before you post. It will you and I, as well as the other users of the forum at lot of time and effort.
Please note that in your example you have
<address>SLStreet<address>
Not
<address>SLStreet</address>
That is probably the cause of your problem, as the error message clearly indicates.

Similar Messages

  • WS-C6509-E not supporting 256 MB disk. upon inserting message pops up but "no such device" error comes when runing "sh disk0/1:"

    WS-C6509-E not supporting 256 MB disk. upon inserting message pops up but "no such device" error comes when runing "sh disk0/1:"
    SUP = 720 and 720-3B
    00:08:03: %FILESYS-SP-5-DEV: PCMCIA flash card inserted into disk1
    Router#
    Router#
    Router#
    Router#sh disk1
    %Error show disk1: (No such device)
    Router#
    Its working fine with 128 MB Disk

    but my 128MB disk is working fine in both SUP and both slots..
    And this only proves that the PCMCIA slot is not at fault.  So this means that:
    256mb PCMCIA card is dead; or 
    256mb PCMCIA card is not standard (non-Cisco)
    I do not believe the 256 mb PCMCIA card is not working because it's not formated.  Even if it's not formated properly the error message would've been different.

  • Hi I am trying to download the new itunes 11 but it saying an error is occurred and wont download?

    Hi I am trying to download the new itunes 11 but it saying an error is occurred and wont download?

    Be patient! Apple's servers are currently inundated. Try again later or tomorrow!

  • Please can somebody help me? My imessage does not work, I try to activate it but it says an error ocurred during activation. try again  :(

    Please can somebody help me? My imessage does not work, I try to activate it but it says an error ocurred during activation. try again 

    Its possible that the server can be down now. Have you ever used it before?  If you want, try resseting the phone by just holding the sleep/wake key and the home button together for 10 seconds.  Then wait 5 seconds when it turns off and press the sleep/wake button to turn it back on.  Then try it again.  Let me know what the results are.

  • I connected my iphone but it says unknown error

    Can Somebody Help me i download Itunes And I keep plug in my iphone 3gs but its says unknown error help me please?

    We are not mindreaders.  What is the error message?

  • Trying to reinstall OS X Mavericks on my reset MacBook  but it says "An error occurred"

    Hi. So I have recently attempted to reset my MacBook Air 11 inch but when I get to reinstall OS X Mavericks it says "An error  occurred while preparing the installation. Try running this application again." Ive tried many times after but it will not work and I have no idea what to do. I just need a simple way to fix this. If anybody could help that would be amazing because I cannot find a way to fix this.

    1. If possible, set the system clock as instructed here. If you can only start up in Recovery mode, see below.
    Select Get Help Online. Safari will launch. While in Recovery, you'll have no access to your bookmarks, but you won't need them. Load this web page.
    Triple-click anywhere in the line below to select it:
    date 0801000014
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Quit Safari. You'll be returned to the OS X Utilities screen.
    Select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. Paste into the window by pressing the key combination command-V.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered. If it doesn't appear, press return.
    Quit Terminal to return to the main screen. Try the installation again.
    2. If the date is correct, or if you still can't install after correcting it, see below.
    Start up in Recovery mode, launch Disk Utility, select the startup volume ("Macintosh HD," unless you gave it a different name), and run Repair Disk (not Repair Permissions.) If any problems are found, repeat. Then restart as usual.
    If you don't already have a current backup, you must back up your data before you take the above step. You may be able to back up, even if the system isn't fully functional. Ask if you need guidance.
    Directory corruption in a MacOS journaled volume is always the result of a drive malfunction. It's not caused by power failures, system crashes, or anything else. You might choose to tolerate such a malfunction once in the life of a drive. If it's repeated, the drive must be replaced, or there is some other hardware fault that needs to be corrected. Ignoring repeated directory errors will result in data loss.

  • Finding the right line when Oracle says an error happens at a line number.

    Hi,
    Were using Oracle 11.1.
    I use TOAD 10 to develop.
    When I run a procedure sometimes I'll get an error message saying "an Oracle error happened at ### line number"
    When I go to that line number, that's usually not where the error is.
    I'm not talking about an error where they say it occurs at line 1.
    It'll say line 124 and in the TOAD editor that will occur in the middle of a cursor or something.
    I'm pretty sure that's not where the error actually is.
    Is there any way to find out where Oracle is talking about?
    Thanks!

    Hi,
    In triggers, the first DECLARE or BEGIN statment is counted as line 1, even though there are often several lines before that.
    In other procedures, the line numbers are relative to the beginning of the relevant CREATE statement, e.g. "CREATE OR REPLACE PACKAGE BODY ...".
    Where these statements are in your files has nothing to do with the error messages. For example, if you have a package spec that goes on for 50 lines, then 10 lines of comments, and then a package body, all in the same file, then the line numbers that you see for the pacakage body will be 60 lower than the line numbers from your file. (You may want to use separate files, each starting with a CREATE command on the fitst line, for just this reason.)
    Oracle often gives multiple error messages for the same error. For example, if a cursor definition begins on line 50, and you mis-spell a column name on line 55, you may get a message saying "statement ignored" referencing line 50, but you'll probably get another (more useful) error referenccing the particular problem on line 55.
    Of course, some errors can't be detected right away. For example, if you forget a single-quote at the end of a string literal, the compiler will think that all your subsequent code is part of that string literal. Not unitl it encounters another single-quote, perhaps at the beginning of another string literal, dozens of lines later, will it know that any error occurred.
    Those are the main pitfalls I know about.
    If you have an example of something that confuses you, post it. Shorten the code as much as possible such that it's easier to post, but still gets the same error. Post the complete error message, too.

  • I downloaded the new software but it says an error 53 occure .

    the worst part i can't use the phone. it says to plug to itunes but i doesn't restore.

    sorry, the question is about the iphone getting stuck . i can't use it it says to plug it tu itunes. when i do it gives me an error 53 and that it can't be restore. so i don't have a phone every time i restore it it gives me error 53

  • I tried to download the mountain lion but it says 'an error has been occurred' in the purchases section of the app store, what can I do now?

    I also checked that I've paid for the mountain lion already...
    What can I do now??
    Please help...

    P.S. I checked that I paid already...

  • I try to update my Ipodt Touch to i0S6 but keeps saying: " an error occured when backing up this ipod(-43). Continuing will delete all of this ipod's content." I already backed this ipod up so why does it say this? It is a 4th generation iTouch.

    can someone tell me how i can update my itouch. Thanks

    Try:
    Error -43: Apple Support Communities
    Error -43 in backup when upgrading to...: Apple Support Communities
    iOS: Troubleshooting backup issues in iTunes

  • Entering Correct Code But Still Saying Code Error.

    Hello, I have a Nokia E71, i've entered the lock code several times and it still says code error, i have not changed the lock code, it worked as 12345 when i activated lock code request, I cannot do anything with my phone, Any Help Will Be Appreciated,
    Thanks 

    ThaDon786 wrote:
    Hello, I have a Nokia E71, i've entered the lock code several times and it still says code error, i have not changed the lock code, it worked as 12345 when i activated lock code request, I cannot do anything with my phone, Any Help Will Be Appreciated,
    Thanks 
    If the lock code is messed up there is only one thing you can do. Bring it in for service.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • Im trying to update photoshop cc but it says error 49

    Hello,
    I am trying to update photoshop on my laptop but it says: download error (49).
    What can I do?

    Bijwerken for information on how to resolve Error 49 please see Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html.

  • [SOLVED] FRM-40508:ORACLE error: unable to INSERT record

    Hi all,
    I have migrated this form from 4.5 to 10g (Version 10.1.2.0.2 ). This form inserts a record into the database table when all the fields in the form are filled and a button Save is presed.
    At the time when I press the Save button, I get this error. FRM-40508:ORACLE error: unable to INSERT record
    So I went on to see the "Display Error" from help and found to be the database error, inserting into a table.
    The error message is ORA-00932: inconsistent datatypes: expected DATE got NUMBER
    The form where I press Save button has 3 date fields and I checked the properties of them and they are Date only.
    I also generated to object list report and tried to find some answer, but no use.
    Please help me in debugging this form.
    Edited by: Charan on Aug 18, 2011 4:05 PM

    I think you need to get a description of the table and compare all the "database" columns in the form with the ones in the database table to see that the types match. Somewhere there's a mismatch. Also check the block(s) "query data source columns" and see if there's any
    columns in there that the type does not match the table. (check the sizes of things too while you're at it.)

  • Oracle forms error frm-40508: unable to insert record

    Hi Everyone,
    I have been having this problem for 2 weeks and I realize that I spent alot of time I couldn't get to fix the problem so I need your help.
    Here is my situation. First, I installed Oracle 10g in my laptop with Oracle forms10g and Oracle forms904i. I had oracle_home folder as the top level structure then I have inside oracle folder, Oracle10g in it own folder, Oracle9i release2 in it own folder. then I created the user account "student" using the system/manager account finally I granted privilleges as follow:
    GRANT ALL PRIVILLEGES
    TO student
    WITH ADMIN OPTION;
    this was working perfecty I didn't need to grant objects privilleges such as
    GRANT INSERT, UPDATE, DELETE
    ON customers
    TO student;
    Then I created a form Application prototype and it works well I could Insert, Update and Delete but now I am creating an e-commerce application prototype I created an new account using a system/manager account as I did previously and grant all privilleges. When I try to grant object privileges the message that I receive says ORA-01919 : role 'INSERT' doesn't exist
    When I run the application I am unable to insert the record through forms I get message frm-40508 Orcle error: unable to insert record.
    I deinstall the Oracle and clean my laptop and did a clean installation using only Oracle Server10g and Oracle Developer10g I am getting the same message frm-40508.
    Can someone please help me on this. the insert command that I am running is a simple one such as
    INSERT INTO customers
    VALUES( block_name.field_name, ....);
    COMMIT;

    frm 40735:When button pressed trigger raised unhanded exceptionplease help me to solve this>
    The FRM-40735 is a generic Unhandled Exception. Please post the full error message so we can better help you.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Unable to INSERT record but inserting. Forms 4.5 error through Apps 10.7

    Hi All,
    I have written the following code on save button on form 4.5 which has been used from APPS. I created the master-detail relation also.
    It suppose to insert a row into header and then into lines.
    Its inserting the row into both the tables but getting the following error in betweeen.
    ===========
    FRM-40508: ORACLE error: unable to INSERT record.
    ORA-01400: cannot insert NULL into ("VFI"."VFI_PC_DEFINITION_LINES"."LINE_ID")
    ===========
    I am thinking problem is some where in some default triigers or on insert triggers
    but unable to trace it. CAN anybody through a light on this ?
    ================================================
    PROCEDURE VFI_INVPCS IS
    i          number;
    v_item_id     number;
    v_item_id1     number;
    v_temp      varchar2;
    v_user_id NUMBER := 1111; --fnd_global.user_id;
    Lv_ChkFlag VARCHAR2(1);
    Lv_UnChkFlag VARCHAR2(1);
    ln_header_seq NUMBER;
    ln_lines_seq NUMBER;
    BEGIN
    BEGIN
    SELECT inventory_item_id
    INTO v_item_id
    FROM inv.mtl_system_items
    WHERE organization_id = 103
    and segment1 = :VFI_PC_DEFINITION_HEADER.parent_inventory_item_id;
    SELECT VFI_PC_DEFINITION_HEADER_SEQ.nextval
    INTO ln_header_seq
    FROM DUAL;
    SELECT VFI_PC_DEFINITION_LINES_SEQ.nextval
    INTO ln_lines_seq
    FROM DUAL;
    INSERT INTO VFI_PC_DEFINITION_HEADER( HEADER_ID
    ,PARENT_INVENTORY_ITEM_ID
    ,START_DATE
    ,END_DATE
    ,CREATED_BY
    ,CREATION_DATE
    ,LAST_UPDATED_BY
    ,LAST_UPDATE_DATE)
    VALUES ( ln_header_seq
         ,v_item_id
         ,:VFI_PC_DEFINITION_HEADER.start_Date
         ,:VFI_PC_DEFINITION_HEADER.end_date
    ,v_user_id
         ,sysdate
         ,v_user_id
         ,SYSDATE
    COMMIT; -- header
    GO_BLOCK('VFI_PC_DEFINITION_LINES');
    LOOP
    SELECT inventory_item_id
    INTO v_item_id1
    FROM inv.mtl_system_items
    WHERE organization_id = 103
    AND segment1 = :VFI_PC_DEFINITION_LINES.child_inventory_item_id;
    First_record;
    IF :VFI_PC_DEFINITION_LINES.child_inventory_item_id is not null then
    IF :CFY_PTID_FLAG='Y' THEN
    Lv_ChkFlag:=:CFY_PTID_FLAG;
    INSERT INTO VFI_PC_DEFINITION_LINES( LINE_ID
    ,HEADER_ID
    ,PARENT_INVENTORY_ITEM_ID
    ,CHILD_INVENTORY_ITEM_ID
    ,CREATED_BY
    ,CREATION_DATE
    ,LAST_UPDATED_BY
    ,LAST_UPDATE_DATE
    ,CFY_PTID_FLAG)
    VALUES ( ln_lines_seq
    ,ln_header_seq
    ,v_item_id
    ,v_item_id1
    ,v_user_id
    ,SYSDATE
    ,v_user_id
    ,SYSDATE
    ,Lv_ChkFlag
    END IF;
    END if;
    NEXT_RECORD;
    EXIT WHEN :SYSTEM.LAST_RECORD='TRUE';      
    END LOOP;
    message('After Insert Child');
    message('After Insert Child');
    COMMIT;
    END;
    ================================================

    not sure on the block structure of your forms.
    one would question why you seem to be doing a lot of the default insert work on the press of a button (when-button-pressed).
    also if you have a master-detail relationship in the form - why you don't let forms handle the master-detail insert.
    seems like you have database database blocks but are almost coding as if they are non-base table blocks.

Maybe you are looking for

  • Help with Podcast display in iTs

    Hello all, I have recorded a podcast in Garageband and published it to iWeb which is hosted in an extension from my Wordpress blog (AngryWeb.net/podcast). After the podcast was approved, I noticed that the artwork wasn't showing up in iTs, I put the

  • Cannot print to Epson Artisan 725

    Okay, the first time I set this thing up I was able to print wirelessly no problem. After restart, though, it refused to print at all--not via USB, Ethernet or wireless. It does, however, scan and save to my computer just fine. Epson of course feels

  • Report want to see the local currency

    dear all i run the report me8fn, its show the toal value of order currency wise, but i required local currency. what is the way pls explain me. i run like theis 62000000 to 629999999 thanks

  • Grey out Costcenter field in ML81N Transaction

    Hi All,           Is there any way to greyout the Cost center field in ML81N Transaction  in change mode?(either with configuration or with ABAP).            I want this in "Account Assignment of Service line" which will get from Account Assignment.

  • CS6 applications only work in admin accounts

    iMacs, OS X 10.6.8, 4gb of ram: Our district has a volume license of CS 6 Master collection. I recently started upgrading the iMacs in our computer labs to CS6, but the applications only work on the admin account. When I try to run the applications f