XML Publisher Report - Invalid character was  found in text content

Hi Techies,
Version Background
Oracle apps : 11.5.10
Oracle 9i Database
Oracle Reports 6i
I created a XML output type concurrent program and attached a data definition & template to it.
My program completed with status "Warning".
The Error is : An invalid character was found in text content.
Then i downloaded the XML and opened it in notepad++. I found there are 2 weird characters like this ( , )
FYI, It is a non-Ascii character so not able to paste it in this forum text field. the characters looks like double sided arrow and a forward arrow.
I also tried loading the XML locally from RTF Template. Again it throws me same error
Error No: -1072896760: An invalid character was found in text content.
Additional Information:
Data is coming from table "gl_alloc_batches.description"
Encoding Type: UTF-8
Please Help me how to handle such a non-ascii characters
Edited by: 868779 on Feb 22, 2012 10:48 PM

Hi,
Please find below sql which will find the special characters in column of table,
SET serveroutput ON size 1000000
DECLARE
PROCEDURE gooey (v_table VARCHAR2, v_column VARCHAR2)
IS
TYPE t_id IS TABLE OF NUMBER;
TYPE t_dump IS TABLE OF VARCHAR2 (20000);
TYPE t_data IS TABLE OF VARCHAR2 (20000);
l_id t_id;
l_data t_data;
l_dump t_dump;
CURSOR a
IS
SELECT DISTINCT column_name
FROM dba_tab_columns
WHERE table_name = v_table
AND data_type = 'VARCHAR2'
AND column_name NOT IN ('CUSTOMER_KEY', 'ADDRESS_KEY');
BEGIN
FOR x IN a
LOOP
l_id := NULL;
l_data := NULL;
l_dump := NULL;
EXECUTE IMMEDIATE 'SELECT '
|| v_column
|| ', '
|| x.column_name
|| ', '
|| 'dump('
|| x.column_name
|| ')'
|| ' FROM '
|| v_table
|| ' WHERE RTRIM((LTRIM(REPLACE(TRANSLATE('
|| x.column_name
|| ',''ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@#$%^&*()_+
-=,!\`~{}./?:";''''[ ]'',''A''), ''A'', '''')))) IS NOT NULL'
BULK COLLECT INTO l_id, l_data, l_dump;
IF l_id IS NOT NULL
THEN
FOR k IN 1 .. l_id.COUNT
LOOP
DBMS_OUTPUT.put_line ( v_table
|| ' - '
|| x.column_name
|| ' - '
|| TO_CHAR (l_id (k), '999999999999')
DBMS_OUTPUT.put_line (l_data (k));
DBMS_OUTPUT.put_line (l_dump (k));
DBMS_OUTPUT.put_line ('*********************');
END LOOP;
END IF;
END LOOP;
END gooey;
BEGIN
gooey ('GL_ALLOC_BATCHES', 'DESCRIPTION');
END;
Thanks,
Amogh

Similar Messages

  • "XML Load error: An invalid character was found in text content" Drill Thru

    Hi,
    I am using Smart View, 2007 ms office.
    We are using EIS to have Drill Through reports.
    When I select the particular intersection and click on Hyperion --> Adhoc Analysis--> Drill Through Reports,
    Drill Through selection window is opening but when click on Launch/Execute.
    It throwing below Error
    "XML Load error: An invalid character was found in text content"
    This error is showing only some intersections...some other intersections are working fine.
    The same intersection if retrieve from ESSBASE --> Addins--> linked objects, Drill thru reports are showing fine.
    From Excel Addins everythg working fine.
    I tried in 2003 MS office from my colleague system. the same error.
    "XML Load error: An invalid character was found in text content"
    Please someone help me....!
    Regards,
    Rajendra Prasad Gella.
    Edited by: Rajendra Prasad Gella on Jun 10, 2010 4:26 AM

    This type of Issue does not happen using Excel Add-in but Smart View. We encountered it as well. I have a feeling the root cause is the ESSLANG which used to be selected during installation. If the Essbase has for instance "English Latin1" or "English US Ascii Binary" and the client does not have it, then this would occur.
    We had old SR on it because we were testin the APS 7.1.6. SR 2-603906: Excel Essbase Add-in splitting special characters such as the " ü " in. Whe we reinstalled and selected same ESSLANG as Essbase server the isue stopped.
    We did not have to chnage our code to scrub out ant special characters. !
    Jullin

  • Smartview: XML Load Error: An invalid character was found in text content.

    Hi,
    Im using hyperion 11.1.2.1 with SmartView installed with Office 2007. A lot of forms are working fine on it but we have entered data recently on a number of them and we are unable to open them in SmartView either through the icon and menu options in workspace or through the smartview panel in excel 2007. The error we are getting is "XML Load Error: An invalid character was found in text content."
    Cheers,
    Imran

    Have a look on Oracle Support - "SmartView XML Load Error: "An Invalid Character was Found in Text Content" [ID 968808.1]"
    It may be the same issue as you are experiencing.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Windows Experience Index fails: An invalid character was found in text content winsat\main.cpp(1041)

    Hi
    I have been tearing my hair out over this, but found this thread which seems to be exactly what I am seeing
    (sorry for some reason I can't post links or images they have been stripped out)
    However the answer, scars me a bit and I need someone to step me through it.
    I have run SMBIOS viewer and spotted an odd looking character after the version 1 (looks like two
    small square zeros) removed it from registry but this did not solve the issue.
    ran winsat formal with admin  error. failed to load XML An invalid character was found in text content winsat\main.cpp(1041) unable to process
    xml file. winsat\main.cpp(4742) Error: cannot process assessment results cannot load xml data from string an invalid character was found in text content from interface msxm16.dll:Ixmldomdocument2
    Please help, I am tearing my hair out with this :(
    Here is my system spec, only a week old, ignore the voltages which are wrongly reported.
    Thanks
    Mike

    (Still can't post images here for some reason, can't even give you a link to see the screen shot :(
    Please verify your account in the following link
    http://social.technet.microsoft.com/Forums/en-US/947dcd6b-41c5-41c1-a39d-44a3cff60889/verify-your-account-19?forum=reportabug
    Have you tried to reset WEI as I mentioned above? What is the result?
    For HW info, we can also run msinfo32.exe to display the info.
    we can also reset BIOS to the default setting to check the issue.
    Regarding to SMBIOS, you can find detailed information in this link
    http://www.dmtf.org/standards/smbios
    NOTE
    This response contains
    a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft does not control these sites and
    has not tested any software or information found on these sites.
    Yolanda Zhu
    TechNet Community Support

  • Wddx An invalid character was found in text content

    I've this xml file:
    <wddxPacket
    version='1.0'><header/><data><array
    length='50'><struct><var
    name='CONTENTCONTAINERID'><number>11.0</number></var><var
    name='ITEMDATE'><string>03/25/2009</string></var><var
    name='TITLE'><string>Senator's sign ...AND THE REST IS NOT
    SHOWN HERE.
    I got this error message:
    An invalid character was found in text content. Error
    processing resource 'file:///Z:/publisher/logs/pu...
    Budget Proposal</string></var><var
    name='ARTICLENUM'>&l...-indent:-2em">- <struct>
    Notice the -indent -2em. That must be some special
    characters. If I'm correct, em stands for end of medium.
    My question: how can I fix this problem? The xml file shown
    above created with wddx does not allow me to change the encoding
    scheme.

    Please refer
    http://www.w3schools.com/XML/xml_encoding.asp

  • An invalid character was found in text content

    Hello.
    I'm trying to obtain the output of a report in XML format but when i open it the browser (IE 7) it shows me the message "An invalid character was found in text content".
    Does anyone know how to solve this problem. I'm in XDO 5.6.3 and EBS 11.5.10.2.
    Many thanks in advance.
    Octavio

    Please refer
    http://www.w3schools.com/XML/xml_encoding.asp

  • An invalid character was found in text content. (msxml6.dll)

    while executing or saving the SSIS package we get this error...
    ===================================
    Failure saving package. (Microsoft Visual Studio)
    Program Location:
       at Microsoft.DataTransformationServices.Design.Serialization.DtrDesignerSerializer.SerializePackage(IDesignerSerializationManager manager, Package package, TextWriter textWriter)
       at Microsoft.DataTransformationServices.Design.Serialization.DtrDesignerSerializer.SerializeComponent(IDesignerSerializationManager manager, IComponent component, Object serializationStream)
       at Microsoft.DataWarehouse.Serialization.DesignerComponentSerializer.Serialize(IDesignerSerializationManager manager, Object value)
       at Microsoft.DataWarehouse.VsIntegration.Designer.Serialization.DataWarehouseDesignerLoader.Serialize()
       at Microsoft.DataWarehouse.VsIntegration.Designer.Serialization.BaseDesignerLoader.Flush(Boolean forceful)
       at Microsoft.DataWarehouse.VsIntegration.Designer.Serialization.BaseDesignerLoader.Flush()
       at Microsoft.DataWarehouse.VsIntegration.Designer.Serialization.DataWarehouseContainerManager.OnBeforeSave(UInt32 docCookie)
    ===================================
    An invalid character was found in text content.
     (msxml6.dll)
    Program Location:
       at Microsoft.SqlServer.Dts.Runtime.Package.SaveToXML(String& packageXml, IDTSEvents events)
       at Microsoft.DataTransformationServices.Design.Serialization.DtrDesignerSerializer.SerializePackage(IDesignerSerializationManager manager, Package package, TextWriter textWriter)
    ===================================
    An invalid character was found in text content.
     (msxml6.dll)
    Program Location:
       at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackagePersist100.SavePackageToXML(Object& pvDestination, Boolean vbReturnDOM, IDTSEvents100 pEvents)
       at Microsoft.SqlServer.Dts.Runtime.Package.SaveToXML(String& packageXml, IDTSEvents events)
    sureshk

    I suggest you apply the steps from the restitution section of this KB http://support.microsoft.com/kb/977889
    Arthur My Blog

  • XL Reporter an invalid character was found in text content

    Hi all
    Any idea how to solve this error.
    We managed to limit error to only on date on 8 Jul 2014 relating to one Item Code created on 1 Jul 2014 but there is no further clue.
    This is linked to a Sales Invoice.
    Kedalene

    Hi Nagarajan
    The SAP Note says
    Please first check if you use any special character like "%" or "@" in the data field which may cause the issue.
    I tried to look every where in entire Sales Invoice and Item Master Data but can't find such character.

  • XML Publisher Report ends with Warning -- Invalid Character Error in XML

    Hi,
    I have migrated the standard report 'Invoice Print Selected Invoices' from Reports 6i to XML Publisher. It has to print a Euro(€) in the report. It does not even generate the XML File fully. It gives the below error in the XML File. When i remove the special character, it works fine.
    Please let me know the settings to ensure that XML file also accepts the special characters. How do i get the Euro symbol printed in XML File with out giving Invalid Character Error?
    ===========================================================The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again
    later.
    An invalid character was found in text content. Error processing resource 'http://dfw1svdevapp03.ora.rackspace.com:8040/OA_...
    <C_INV_CURRENCY_SYMBOL>
    N class="m">>
    <LINE_UOM />
    <LINE_UNIT_SELLING_PRICE />
    ===========================================================
    The XML File even does not show which character set it uses. The output file starts with:
    ===========================================================
    <?xml version="1.0" ?>
    - <!-- Generated by Oracle Reports version 6.0.8.25.0
    -->
    ===========================================================

    Hi Tim,
    Thanks for your adhoc response.
    I have gone thru the Document 222663.1 and it says that the Developer 6.0.8.23 is required to handle this problem. We are using almost the updated Developer version i.e., Developer 6.0.8.25. So, this should be handled automatically, but it still errors out. Please suggest.
    Thanks,
    Kesava

  • XML Publisher Report Error

    Hi All,
    I am trying to create an xml report from a standard oracle report. For that, I have copied the standard report's concurrent program and created a custom concurrent program by changing the output from 'Text' to 'XML'. When I run the custom report and took a look at the output of the concurrent program, I see the below error:
    An invalid character was found in text content. Error processing resource 'http://...
    <DESCRIPTION>CD
    t:1em;text-indent:-2em">- <G_ITEM>
    <C_FLEX_ITEM>44-5555-66</C_FLEX_ITEM>
    <DESCRIPTION>ABCD W/O PRRS</DESCRIPTION>
    - <LIST_G_VENDOR>
    - <G_VENDOR>
    <VENDOR>VENDOR 123</VENDOR>
    I see that the error is because, the xml parser has encountered a charecter '/' in the tag 'DESCRIPTION', which it is getting confused with the ending tag.
    The charecter may be deleted if it as the case with the description of one item, but there are numerous item descriptions with / in them.
    If this is the limitation of XML Publisher, could anyone please help me with the approach to create these kind of reports in XML Publisher?
    Thanks in advance.

    Well, I figured out what the problem was.

  • XML Publisher report not printing excel output due to special characters

    Hello,
    I am trying to create a xml publisher report which should display the output in excel. But the program completes with a warning status and the output is displayed as XML instead of excel, with some errors "An invalid character was found in text content. Error processing resource " and i think these errors are due to the special characters(eg: city/province - A Coruña, Cáceres). If i give rownum < 10 in my query, where there are no such characters it works fine and i am getting an excel output.
    Tried changing the XML encoding and it doesn't help (both mentioned below)
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml version="1.0" encoding="UTF-8"?>
    Do anyone have a solution for this
    Thanks in advance
    Edited by: user10317098 on Jan 16, 2012 10:58 AM

    Hi,
    Check this links that might help you..
    https://forums.oracle.com/thread/1018488
    http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
    Here the Exact solution from Oracle
    In the XML PUBLISHER ADMINISTRATOR Resp..
    Click the administration..
    then Click HTML Output
    Then in the Base Image URI Give the url of your application for example
    http://Test.Test.com:8000/OA_MEDIA/
    And then
    Image File Directory give this as per your application setup
    /u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
    Thanks & Regards
    Srikkanth.M

  • XML Publisher Report:how to disappear the column if no data found

    Hi,
    I have a XMl publisher report requirement , the format is tabular lets say with the structure of 4 columns and 10 rows.requirement is to if suppose there is no data for row number 6 the row itself should not appear over the report and the immediate next row should come in place.
    please help me if any one of u has implemented the same.
    Ankit

    Ankit,
    This is almost hard to work although NOT impossible to achieve on the template.
    A little big of PL/SQL genius where all the columns are selected into variables may be used to achieve this, although you will have to manage them accordingly.
    I don't any other way round it.
    Rgds

  • Xml publisher report problem

    I have a xml publisher report which list job names. After submitting concurrent program, I am getting below error
    A semi colon character was expected. Error processing resource
    some of the Jobs have special character '&'. below is code
    CREATE OR REPLACE PACKAGE BODY XML_RPT AS
        FUNCTION XML_TAG (p_tag IN VARCHAR2, p_data IN VARCHAR2) RETURN VARCHAR2 IS
        l_ret_str VARCHAR2(5000);
        BEGIN
            l_ret_str := '<'||p_tag||'>'||p_data||'</'||p_tag||'>';
            RETURN l_ret_str;
        END XML_TAG;
         PROCEDURE JOBS(errbuf          OUT  VARCHAR2,
                         retcode         OUT  NUMBER) IS
        CURSOR inv_Cur  IS
            select name          
            from per_jobs pv;        
         xmldata            varchar2(1000);
         l_sqlstr           varchar2(1000);
         l_seqnum           varchar2(3);
         l_job_name      varchar2(100);
        BEGIN
          xmldata := '<?xml version="1.0" encoding="UTF-8"?>';     
          xmldata :=xmldata|| '<JOB>';
          xmldata := xmldata||' <LIST_JOB>';
          fnd_file.put_line(fnd_file.output,xmldata);    
          FOR rpt_rec IN inv_Cur LOOP
              xmldata := '<JOB_REC>';
              l_job_name := replace(rpt_rec.JOB_NAME,'&','&amp');         
              xmldata := xmldata || XXMCG_XML_TAG('JOB_NAME',L_JOB_NAME);
              xmldata :=xmldata|| '</JOB_REC>';
              fnd_file.put_line(fnd_file.output,xmldata);
          END LOOP;
          xmldata := '</LIST_JOB>';
          xmldata := xmldata||'</JOB>';
         fnd_file.put_line(fnd_file.output,xmldata);
        EXCEPTION
        WHEN OTHERS THEN
             fnd_file.put_line(fnd_file.log,substr(SQLERRM,1,500));
        END JOBS;
    END XML_RPT;

    I resolved the problem. I have to put ; in the special character.

  • Advantage and disadvantage of xml publisher, report builder and discoverer

    Hi,
    anyone can explain advantage and disadvantage of xml publisher, report builder and discoverer?
    thanks in advance!

    The best way i found was to put a equals and then double quotes... this only works for excel however it will allow you to cut and paste (ie to use the value to search in Oracle) and also to do vlookups.
    In a bit more detail:
    - I used word to generate my default table
    - this created a field INVOICE_NUM
    - in the cell in the table i put = " before the INVOICE_NUM field and then put the closing " afterwards.
    The theory is that excel will concatenate the values together... because it has quotes around it, it will treat it as a string rather than simply a value.
    For any other formats this will not work.
    I'm guessing most people have moved on and resolved this some other way, but just thought I'd share the wealth!

  • Xml publisher reprot - special character problem

    I invoice report through xml publisher. I have '&' special character in vendor list. I am getting below error
    A semi colon character was expected. Error processing resource.
    Below is the code
    CREATE OR REPLACE PACKAGE BODY XML_RPT AS
        FUNCTION XML_TAG (p_tag IN VARCHAR2, p_data IN VARCHAR2) RETURN VARCHAR2 IS
        l_ret_str VARCHAR2(5000);
        BEGIN
            l_ret_str := '<'||p_tag||'>'||p_data||'</'||p_tag||'>';
            RETURN l_ret_str;
        END XML_TAG;
         PROCEDURE VENDOR(errbuf          OUT  VARCHAR2,
                         retcode         OUT  NUMBER) IS
        CURSOR inv_Cur  IS
            select pv.vendor_name          
            from po_vendors pv;        
         xmldata            varchar2(1000);
         l_sqlstr           varchar2(1000);
         l_seqnum           varchar2(3);
         l_vendor_name      varchar2(100);
        BEGIN
          xmldata := '<?xml version="1.0" encoding="UTF-8"?>';     
          xmldata :=xmldata|| '<VENDOR>';
          xmldata := xmldata||' <LIST_VENDOR>';
          fnd_file.put_line(fnd_file.output,xmldata);    
          FOR rpt_rec IN inv_Cur LOOP
              xmldata := '<VENDOR_REC>';
              l_vendor_name := replace(rpt_rec.VENDOR_NAME,'&','&amp');         
              xmldata := xmldata || XXMCG_XML_TAG('VENDOR_NAME',L_VENDOR_NAME);
              xmldata :=xmldata|| '</VENDOR_REC>';
              fnd_file.put_line(fnd_file.output,xmldata);
          END LOOP;
          xmldata := '</LIST_VENDOR>';
          xmldata := xmldata||'</VENDOR>';
         fnd_file.put_line(fnd_file.output,xmldata);
        EXCEPTION
        WHEN OTHERS THEN
             fnd_file.put_line(fnd_file.log,substr(SQLERRM,1,500));
        END VENDOR;
    END XML_RPT;can any one advice.

    Duplicate post ? xml publisher report problem
    Srini

Maybe you are looking for

  • My AC Power Cord is not working! What should I do?

    I realised that my Macbook Pro was not charging today, so I tried to reset my SMU and PRAM. It didn't work. I took out the AC Power Cord and used the 60W MagSafe Power Adapter instead (I attached the AC Power Cord to the adapter to increase the lengt

  • Oracle8i 8.1.5.0.2 patch error

    [root@earth linux_815patches]# ./linux_815patches.sh The following is the output I received when installing the patch 8.1.5.0.2 I'm wondering if anyone else has seen the svrmgrl error, and if it's a problem. You are upgrading Oracle 8i for Intel-Linu

  • How to set the isolation level on Entity EJBs

    I am using 10.1.3.3 of the OC4J app server. I am creating an application that uses EJB 2.1. I am trying to set the isolation levels on the EJBs to either serializable or repeatable read. When i deploy the EAR file from the OC4J admin console, i can s

  • HT1848 "Cannot connect to iTunes Store" when synching iPad or iPhone?

    I recently restored my Mac Book Pro to factory settings and since then have been unable to sync without getting the above error. Wireless is working fine, all accounts are authorized and signed in correctly. Any ideas what might be happening to cause

  • Are there any shortcuts to connecting the printer with web services and/or the eprint server?

    (HP Officejet Pro 8600 Plus, IE, Windows 7)  As I am unable to execute the instructions given by by Ryamond 1411, I'm looking for  other avenues to connect my printer to web services and/or the eprint server so I can release 4 emails for printout now