Trying to convert a CLOB to an XMLTYPE

I'm trying to insert a xm ldocument stored in a CLOB into a XMLTYPE column registered to a schema.
I'm trying so use the function below to convert the CLOB to an XMLTYPEbut i keep getting a ORA-06553 Error: wrong number or arguments. Am i using the xmltype constructor properly?
create or replace function to_xmltype (clobcol CLOB)
return xmltype as
begin
return xmltype(clobcol,'http://localhost:8080/source/schemas/poSource/xsd/mySchema.xsd');
end;
insert into xml_table (xmldata) values (select to_xmltype(ct.clob_data) from clob_table ct );
Thanks for the help

Looks fine to me except that you should omit the values clause:
insert into xml_table (xmldata) select to_xmltype(ct.clob_data) from clob_table ct ;

Similar Messages

  • "Property value is not valid" when PropertyGridView tries to convert a string to a custom object type.

    Hi,
    I have a problem with an PropertyGrid enum property that uses a type converter.
    In general it works, but when I double clicking or using the scoll wheel,  an error message appears:
    "Property value is not valid"
    Details: "Object of type 'System.String' cannot be converted to type 'myCompany.myProject.CC_myCustomProperty."
    I noticed that the CommitValue method (in PropertyGridView.cs) tries to convert a string value to a CC_myCustomProperty object.
    Here is the code that causes the error (see line 33):
    (Using the .net symbols from the PropertyGridView.cs file)
    1
            internal bool CommitValue(GridEntry ipeCur, object value) {   
    2
    3
                Debug.WriteLineIf(CompModSwitches.DebugGridView.TraceVerbose,  "PropertyGridView:CommitValue(" + (value==null ? "null" :value.ToString()) + ")");   
    4
    5
                int propCount = ipeCur.ChildCount;  
    6
                bool capture = Edit.HookMouseDown;  
    7
                object originalValue = null;   
    8
    9
                try {   
    10
                    originalValue = ipeCur.PropertyValue;   
    11
    12
                catch {   
    13
                    // if the getter is failing, we still want to let  
    14
                    // the set happen.  
    15
    16
    17
                try {  
    18
                    try {   
    19
                        SetFlag(FlagInPropertySet, true);   
    20
    21
                        //if this propentry is enumerable, then once a value is selected from the editor,   
    22
                        //we'll want to close the drop down (like true/false).  Otherwise, if we're  
    23
                        //working with Anchor for ex., then we should be able to select different values  
    24
                        //from the editor, without having it close every time.  
    25
                        if (ipeCur != null &&   
    26
                            ipeCur.Enumerable) {  
    27
                               CloseDropDown();   
    28
    29
    30
                        try {   
    31
                            Edit.DisableMouseHook = true;  
    32
    /*** This Step fails because the commit method is trying to convert a string to myCustom objet ***/ 
    33
                            ipeCur.PropertyValue = value;   
    34
    35
                        finally {   
    36
                            Edit.DisableMouseHook = false;  
    37
                            Edit.HookMouseDown = capture;   
    38
    39
    40
                    catch (Exception ex) {   
    41
                        SetCommitError(ERROR_THROWN);  
    42
                        ShowInvalidMessage(ipeCur.PropertyLabel, value, ex);  
    43
                        return false;  
    44
    I'm stuck.
    I was wondering is there a way to work around this? Maybe extend the string converter class to accept this?
    Thanks in advance,
    Eric

     
    Hi,
    Thank you for your post!  I would suggest posting your question in one of the MS Forums,
     MSDN Forums » Windows Forms » Windows Forms General
     located here:http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=8&SiteID=1.
    Have a great day!

  • I am trying to convert a pdf into an editable document

    I am trying to convert an adobe pdf into an editable document.

    Hey Leslie,
    If you don't have Acrobat installed on your computer than you can install 30 days free Trail version of Adobe Acrobat DC Pro using this link Download Adobe Acrobat free trial | Acrobat Pro DC.
    However if you want to contact Adobe Tech. Support please refer to this link Contact Customer Care, once the page gets loaded click on 'Still Need Help? Contact Us' button & initiate a Chat or Call.
    Regards,
    Aadesh

  • Error when trying to convert excel files to pdf

    I'm getting the following error when trying to convert .xls and .xlsx files to pdf, using the "Create PDF" option:
    Error message from the primary converter:
    ALC-PDG-010-012-PDFMaker reported an error while printing the document.
    Word, Powerpoint and Text files convert without any issues. Also I'm able to opent the excel files and convert them to pdf using the acrobat option in excel.
    Livecycle Version: 10.0.2, GM
    MS Office Version: 2007
    Any help would be appreciated. Thanks in advance.
    Regards,
    Suhail N.

    It is always difficult when you need to convert multiple xls files to pdf or multiple sheets to pdf. If you have a single file to convert then the best method would be to copy your data to doc file and then convert it into PDF . If you have multiple files to convert then it is really difficult to convert all the files manually. Then the better method would be to use converter tool to convert excel to pdf . By doing this you can convert many files in just few seconds.

  • Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    it seems my subscription had expired so I signed up again.. It was still having trouble so I repeated the sign up process again.. Then it worked perfectly.. Unfortunately, I think I just subscribed twice and need to cancel one of them. Ugh. Such a pain when I'm trying to get this project completed. I'll be canceling at least one of the subscriptions in the morning. Adobe is not my favorite company right now. None of this was intuitive. And trying to get help was an absolute waste of an hour.
    Regards,
    Nathaniel
    [removed by moderator]

  • I have produced a number of DVD on my iMac. They are stored in a folder called Burn Folder. I want to get them into iTunes so I can play them on Apple TV. I have tried to convert them to MP4s using Handbrake but Handbrake does not recognize these files.

    I have produced a number of DVD on my iMac. They are stored in a folder called Burn Folder. I want to get them into iTunes so I can play them on Apple TV. I have tried to convert them to MP4s using Handbrake but Handbrake does not recognize these files. I am stumped.

    If you have the original movie files, you'd be much better converting those, otherwise try MPEGstreamclip.

  • Trying to convert a pdf to an excel file

    whilst trying to convert a pdf file to editteble excel a window popped up saying an error occurred while trying to access the service....

    Reader cannot convert files to PDF (this is the Reader forum).
    You'll want to ask in a forum for the software you are using to convert (could be ADobe Acrobat or could be Microsoft Excel's built in convertor).

  • Trying to convert a PDF to Word all it says is "An error occurred while signing in". I am signed in though?

    Trying to convert a PDF to Word all it says is "An error occurred while signing in". I am signed in though?

    Hi Sara
    I followed your link and uploaded a file. Trying to convert this file and says the following as if it does not realize I have already paid for this conversion process:
    Adobe ExportPDF
    Easily convert PDF files to Word or Excel.
    Subscribe Now
    Subscribe and add the ability to export an unlimited number of PDF files via your browser or mobile device.
    Convert PDF to Word
    Export your PDF files to editable DOC, DOCX, or RTF files.
    Convert PDF to Excel
    Turn PDF files into editable XLSX files with table formatting preserved.
    Edit scanned text
    With optical character recognition (OCR), even scanned text becomes editable.
    Please help.
    Regards.
    Kobus.

  • Trying to convert a word file to pdf and keep getting "An error occured while signing in"?

    Trying to convert a word file to pdf and keep getting "An error occured while signing in"?

    Or contact Adobe Customer Service via http://helpx.adobe.com/contact.html?product=export-pdf

  • Runtime error while trying to convert script to pdf and sending in mail

    Hi all,
    I m trying to convert the standard script into pdf using convert_otf fm and trying to send it as an attachment using 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    I m using fm 'SSF_FUNCTION_MODULE_NAME' to get the function module name.
    But i m getting a runtime error while executing the program..
    Can anyone help me in this issue please.
    Thanks in advance,
    Ashok

    Hi Ramesh,
    I m getting an runtime error function module not found. I ll paste the code here.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = lf_formname
        IMPORTING
          fm_name            = lf_fm_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
    error handling ent_retco = sy-subrc.
    perform protocol_update_i.
      ENDIF.
      ls_control_param-getotf = 'X'.
      DATA: l_document_output_info TYPE ssfcrespd,
            l_job_output_info TYPE ssfcrescl,
            l_job_output_options TYPE ssfcresop.
    check ent_retco eq 0.
      CALL FUNCTION 'lf_fm_name'
      EXPORTING
        archive_index = toa_dara
        archive_parameters = arc_params
        control_parameters = ls_control_param
        mail_recipient = ls_recipient
        mail_sender = ls_sender
        output_options = ls_composer_param
        user_settings = ' '
        zxekko = l_doc-xekko
        zxpekko = l_doc-xpekko
    zxaend = l_doc-xaend
        IMPORTING
          document_output_info = l_document_output_info
          job_output_info = l_job_output_info
          job_output_options = l_job_output_options
          TABLES
            l_xekpo = l_doc-xekpo[]
            l_xekpa = l_doc-xekpa[]
            l_xpekpo = l_doc-xpekpo[]
            l_xeket = l_doc-xeket[]
            l_xtkomv = l_doc-xtkomv[]
            l_xekkn = l_doc-xekkn[]
            l_xekek = l_doc-xekek[]
            l_xaend = l_doc-xaend[]
            l_xkomk = l_xkomk
            EXCEPTIONS
              formatting_error = 1
              internal_error = 2
              send_error = 3
              user_canceled = 4
              OTHERS = 5.
    CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = v_len_in
        TABLES
          otf                   = l_job_output_info-otfdata
          lines                 = tb_pdf
        EXCEPTIONS
          err_max_linewidth     = 0
          err_format            = 1
          err_conv_not_possible = 2
          OTHERS                = 3.

  • Trying to convert word to pdf and getting error message using Ver. 7

    I what sent a word doc by a correspondent of mine which I tried to convert to a pdf. I right clicked the doc on my desk top and chose "convert to PDF". It looked as it has all the other times but after it had opened word it came up with an error window/message of "Missing PDFmaker files." "Do you want to run the installer in repair mode?" and then a yes or no button. If I hit no it closes everything if I hit yes it acts like it's installing something and after a while it tells me that the computer needs to be restarted for changes to take affect. I have run it twice now and it doesn't change anything.
    can someone give me any tips on this?
    D

    You did not indicate the version of WORD. If it is WORD 2007, then you can not do this function with AA7. Try opening the file in WORD and printing to the Adobe PDF printer. If that works, then look for the PDF Maker options in WORD (create PDF). If you find them, then try that. If they do not show but the print worked, then you indeed have an issue with PDF Maker - probably either the macro is not activated in WORD or the version of WORD is 2007.

  • I'm trying to convert a PDF to a Word Doc.  I click on convert and then sign in and it says can't find network.

    I keep getting a network error when I try to sign in on the side bar of a PDF file that I'm trying to convert.  How do I fix this?

    Hi christinemsd,
    It sounds like you may be trying to access the service via Adobe Reader. What happens if you log in to https://cloud.acrobat.com directly?
    Best,
    Sara

  • How do i make the word save as dialog box stop popping up when trying to convert to pdf?

    how do i make the word save as dialog box stop popping up when trying to convert to pdf?

    Hi rus-tee,
    That's interesting--what are you using to convert your file to PDF? Are you using Word? Or are you using the Adobe PDF Pack online service. Please describe your process for converting to PDF, and we'll get to the bottom of this!
    Best,
    Sara

  • Trying to convert a pdf to a word doc using Acrobat XI Pro. I am getting formatting errors and scrambled text, especially right below headings. Not all headings affected, just some, but all the same paragraph tag. Any ideas?

    I am trying to convert a pdf  to a word doc. The pdf was created in Framemaker. I am using Acrobat XI Pro and getting formatting errors and scrambled (or missing) text, especially below a heading. Any fixes?

    Hi pakbecker,
    Please try updating to Acrobat 11.0.7 and check.
    In case you still face issues,  i would like to have a look at th doucment.
    Send me an email at [email protected]
    Regards,
    Rave

  • Acrobat XI Pro will not activate when trying to convert to an Acrobat form from an existing Word document

    My version of  Acrobat XI Pro will not activate when trying to convert to an Acrobat form from an existing Word document.  Acrobat not responding.
    Please advise
    John B

    Hi johnb69345359,
    I am sorry for the inconvenience caused. Lets try to resolve this issue.
    I would require few details in order to diagnose the issue correctly :-
    1) Are you able to launch Acrobat XI pro ?
    If yes, please try Help -> Repair option to repair Acrobat XI pro. Then try to perform the covert operation.
    2) Let me know the Operating system installed on your computer.
    3) Is there any error code or error message?
    Regards,
    Aadesh

Maybe you are looking for

  • ITunes Library in Time Capsule

    I have my iTunes library in my Time Capsule, however every time I open iTunes I get promoted to choose the library. Unless I manually open the time capsule in finder and open the iTunes library...if I do this prior to opening iTunes then it "recognis

  • Help! I'm a newbie and have questions regarding converting my iTunes music.

    I'm trying to put music on a photo CD that I am creating, however, the music file has to be in MP3 format. The music I want to use I purchased from iTunes store. I can't seem to figure how to change the format or if that's even possible. Please help!

  • Wbs no and internal order no

    How do i get the WBS no and INTERNAL ORDER NO in the same report what is the link between these two tables

  • Methods in WD4ABAP

    Dear Folks, I am very new to wd abap, ple explain about 1.wddobeforenavigation( ) 2.wddopostprocessing( ) 3.wddobeforeaction( ) 4.wddomodifyview( ) Thanks & Regards, sri

  • Titles and artists repeated

    I've been having this problem with artists being repeated twice on my playlist. I thought that everytime I uploaded a new song by an artist already on my playlist, the song will automatically be categorized under the existing artist. I checked to mak