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/

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

  • 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

  • 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. (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

  • 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

  • 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.

  • Smartview XML Load Error

    Recently when connecting to SmartView, some users are receiving the following error:
    XML Load Error: Invalid XML Declaration
    Do you want to connect with Username/Password
    Yes No
    If you hit yes, sometimes it lets you log in after 2 or 3 tries, other times you need to completely shut down out of Excel and try again.
    It does not happen all the time or to all users.
    Smartview version 9.3.1.5.0.025
    Any else get this error or know what to do to correct it.
    Thanks

    Are you using more than one server for load balancing? If yes try checking the following:
    I've seen where one server is working and one is not.
    To check which one is working go to the connection manager and add a new connection manager that points directly to the one server:
    Somthing like this (hscuschlws00099 is the name of the server in this example)
    http://hscuschlws00099/hfmofficeprovider/hfmofficeprovider.aspx
    Then try using Smartview on each connection to each server. If one works and the other doesn't you can narrow it down to the one server.

  • Sqlldr with error: non-numeric character was found when numeric number

    Hi,
    I have been struggling with this problem for long, can't get to anywhere.
    I am trying to use sqlldr to load a CSV file into table, the table looks like this :
    AD_ID NUMBER(38)
    CNTCT_ID VARCHAR2(60)
    AD_FILE_NAME VARCHAR2(80)
    AD_TITLE VARCHAR2(300)
    AGCY_APRVL_DATE DATE
    CORE_APRVL_DATE DATE
    ENTR_CMNT CLOB
    IC_APRVL_DATE DATE
    PURP_TEXT CLOB
    RVW_BRD_APRVL_DATE DATE
    ACTIVE_FLAG VARCHAR2(1)
    .......................................more fields
    The control file looks like this:
    LOAD DATA
    INFILE "C:\ORACLE_IRTMB\IRPADS\SQL_DATA\ADS_T.CSV"
    BADFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.BAD"
    DISCARDFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.DSC"
    truncate INTO TABLE ADS_T
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
         AD_ID INTEGER ,
         CNTCT_ID char ,
         AD_FILE_NAME char ,
         AD_TITLE char nullif (AD_TITLE=BLANKS) ,
         AGCY_APRVL_DATE DATE "MM/DD/YYYY" nullif (AGCY_APRVL_DATE=BLANKS) ,
         CORE_APRVL_DATE DATE "MM/DD/YYYY" ,
         ENTR_CMNT CHAR(7000) nullif (ENTR_CMNT=BLANKS) ,
    PURP_TEXT CHAR(7000) nullif (ENTR_CMNT=BLANKS) ,
         RVW_BRD_APRVL_DATE DATE "MM/DD/YYYY" ,
         ACTIVE_FLAG char ,
         ....more fields
    The Data file looks like this:
    10132,simpsonl,PMSDHHStemplate.pdf,"Depression, Irritability, Mood Swings Sound Familiar?",1/13/2003,11/14/2002,,1/13/2003,"The NIMH is conducting research on premenstrual
    10133,jolkovsl,10133ClozapineDHHS ver 0.pdf,Mood Swings? Unpredictable Moods? Are These Moods hard to Treat?,1/28/2003,11/14/2002,,1/28/2003,"The NIMH is conducting a study to test the efficacy of ...
    --- and log file looks like this:
    Record 5: Rejected - Error on table ADS_T, column RVW_BRD_APRVL_DATE.
    second enclosure string not present
    Record 7: Rejected - Error on table ADS_T, column RVW_BRD_APRVL_DATE.
    second enclosure string not present
    Record 9: Rejected - Error on table ADS_T, column RVW_BRD_APRVL_DATE.
    second enclosure string not present
    Record 2: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 4: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 6: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    IF I use to_date in control file:
    LOAD DATA
    INFILE "C:\ORACLE_IRTMB\IRPADS\SQL_DATA\ADS_T.CSV"
    BADFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.BAD"
    DISCARDFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.DSC"
    truncate INTO TABLE ADS_T
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
         AD_ID INTEGER ,
         CNTCT_ID char ,
         AD_FILE_NAME char ,
         AD_TITLE char nullif (AD_TITLE=BLANKS) ,
         AGCY_APRVL_DATE "to_date(:AGCY_APRVL_DATE,'MM/DD/YYYY')" ,
         CORE_APRVL_DATE DATE "MM/DD/YYYY" ,
         ENTR_CMNT CHAR(7000) nullif (ENTR_CMNT=BLANKS) ,
         IC_APRVL_DATE DATE "MM/DD/YYYY" ,
         PURP_TEXT CHAR(10000) nullif (PURP_TEXT=BLANKS) ,
         RVW_BRD_APRVL_DATE DATE "MM/DD/YYYY" ,
    I got extracctly same error message as above...
    If I use to_char in control file:
    LOAD DATA
    INFILE "C:\ORACLE_IRTMB\IRPADS\SQL_DATA\ADS_T.CSV"
    BADFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.BAD"
    DISCARDFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.DSC"
    truncate INTO TABLE ADS_T
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
         AD_ID INTEGER ,
         CNTCT_ID char ,
         AD_FILE_NAME char ,
         AD_TITLE char nullif (AD_TITLE=BLANKS) ,
         AGCY_APRVL_DATE "to_char(:AGCY_APRVL_DATE,'MMDDYYYY')" ,
    Then it's said a not valid number
    Record 2: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01722: invalid number
    Record 4: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01722: invalid number
    Record 6: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01722: invalid number
    Record 8: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01722: invalid number
    someone, please help me out here.
    Thanks a lot.
    Wei

    hello
    pls use to_date
    If your session is set to default date format of DD-MON-YY, execute the following and you will receive the error message:
    SQL> select to_date('20-JAN-2010', 'DD-MM-YYYY') from dual;
    ERROR:
    ORA-01858: a non-numeric character was found where a numeric was expected
    no rows selected
    When you are converting a string to a date, you have specified that the date is being passed in DD-MM-YYYY format. But you have passed the date in DD-MON-YYYY format. As the month is expected as a number by oracle, but you have passed a character, oracle is unable to translate the string to a number.
    Do one of the following:
    SQL> select to_date('20-JAN-2010', 'DD-MON-YYYY') from dual
    2 /
    TO_DATE
    20-JAN-2010
    OR
    SQL> select to_date('20-10-2010', 'DD-MM-YYYY') from dual
    2 /
    TO_DATE
    20-JAN-2010
    or you can use alter sessin set nls_date_format='.....................';
    regards

  • Non-numeric character was found where a numeric was expected

    getting the error: non-numeric character was found where a numeric was expected
    I know it's something with the variable InpMaand and InpJaar who i use in mij select statement of the cursor c_sleutel. But don't know how to fix it. Searched on the forum but no good answer found. Tnx for helping in advanced. see code below:
    CREATE OR REPLACE PROCEDURE T05_ins_f (InpJaar in number, InpMaand in number) IS
    cursor c_sleutel is
    select distinct(sleutel) as sleutel from TR_ROSETTA
    where eenheid = 'KPL'
    and to_date('01-'||(InpMaand)||'-'||(InpJaar)) between datum_van and datum_tot ;
    begin
    Message was edited by:
    user565199

    I've fit in the to_date format. but now he say's not a valid month. What i do is the following.
    InpMaand and InpJaar are both giving in by the user, like 2 and 2007
    after the to_date function, this must be the result: 01-2-2007
    otherwise: how to use the variable(InpMaand and InpJaar ) in the to_date function
    Message was edited by:
    user565199

  • Driver wizard error -1073807174 invalid character present in serial number

    Hello,
    I am trying to get a device working in LabVIEW.  This device does not advertize that it works in LabVIEW but I figured i woudl give it a shot anyway.  When I run the driver wizard I get this error:
    -1073807174 invalid character present in serial number
    The devie is from China so that may have something to do with it.
    usbview.exe is also not happy with the enumeratin of this device.
    I relize this is not a LabVIEW error or NI issue, what I want to know is:
    #1 is there any way around this issue?  Looking for legit or hack.
    #2 Anyone else ever run into this?
    James

    James_G1 wrote:
    I have what I think is the command set.  I assume they do provide an api, but not in labview so I would have to wrap that anyway.  I figured step one was make inf for VISA, but that failed for the reasons stated above.
    Have you been able to establish any kind of communication with the device? Have you tried using MAX to communicate using the API you have?

  • Error while pulling data from an Oracle database. ORA-01858: a non-numeric character was found where a numeric was expected

    I'm trying to pull data from an Oracle database using SSIS. When I try to select a few fields from the source table, it returns the following error message:
        [OLE DB Source [47]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E14.
        An OLE DB record is available.  Source: "OraOLEDB"  Hresult: 0x80040E14  Description: "ORA-01858: a non-numeric character was found where a numeric was expected".
        An OLE DB record is available.  Source: "OraOLEDB"  Hresult: 0x80004005  Description: "ORA-01858: a non-numeric character was found where a numeric was expected".
    The source columns are a combination of numeric and texts, and I've also tried selecting one of them, which didn't work. I'm using the Oracle client 11.2.0.1, and it works fine with any other data sources I have connected to so far. How can I resolve this
    error?

    Hi H.James,
    According to your description, the issue is a non-numeric character was found where a numeric was expected while pulling data from an Oracle database in SSIS.
    Based on the error message, the issue should be you are comparing a number column to a non-number column in a query. Such as the query below (ConfID is a number, Sdate is a date):
     where C.ConfID in (select C.Sdate
                       from Conference_C C
                       where C.Sdate < '1-July-12')
    Besides, a default behavior for the Oracle OleDb Provider that change the NLS Date Format of the session to 'YYYY-MM-DD HH24:MI:SS can also cause the issue. For more details about this issue, please refer to the following blog:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2012/01/20/every-bug-is-a-microsoft-bug-until-proven-otherwise.aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • XML load error - when moving table data after upgrade

    Greetings:
    Background:
    Previously in our 2.2 instance, we would use the Data Load/Unload feature of APEX to move data in the form of XML from instance 1 to instance 2. This woks well because it moves images also (BLOB)
    What Changed:
    Recently we did the upgrade to APEX 3.0. The tool is working well, but we are having issues uploading XML data in the same manner we used to. The process wizard works up until time for execution.. the following error message is seen.
    XML load error.
    Return to application.
    Assumption:
    I do not believe this is an XML file issues because the file I am testing the process with is from the EMP table, and is from the UNLOAD option on the same DB and SCHEMA.. (testing is unloading the data, than re-loading the same data to the same place)
    Internally some permissions or something internal must be missing.
    Assistance or suggestions on where to look is greatly appreciated.
    Regards,
    Tim

    Tim,
    Sorry for the delay - that silly day job keeps getting in the way.
    Here is a small procedure you could use to take the XML data file format exported from Application Express and import into your table. This uses the Java-dependent DBMS_XMLSAVE package, which avoids the issue mentioned above.
    create or replace procedure load_xml(
        p_clob   in clob,
        p_schema in varchar2,
        p_table  in varchar2 )
    is
        l_insCtx dbms_xmlsave.ctxType;
        l_rows   number;
    begin
        l_insCtx := dbms_xmlsave.newContext(p_schema || '.' || p_table);
        dbms_xmlsave.setDateFormat(l_insCtx,'yyyy-MM-dd''T''HH:mm:ss.SSS');
        l_rows := dbms_xmlsave.insertXML( l_insCtx, p_clob);
        dbms_xmlsave.closeContext(l_insCtx);
    end load_xml;I then ran the following quick test on apex.oracle.com just for verification.
    declare
        l_xml varchar2(32000);
    begin
        l_xml := '<?xml version="1.0"?>
    <ROWSET>
    <ROW>
      <ID>11645117496276327</ID>
      <FLOW_ID>30072</FLOW_ID>
      <NAME>F11645117496276327/no_image_found.gif</NAME>
      <FILENAME>no_image_found.gif</FILENAME>
      <MIME_TYPE>image/gif</MIME_TYPE>
      <CREATED_BY>JOEL</CREATED_BY>
      <CREATED_ON>2007-03-14T05:06:38.000</CREATED_ON> 
      <BLOB_CONTENT>474946383961C800...(data removed for this example)...41000003B</BLOB_CONTENT>
    </ROW>
    </ROWSET>';
        load_xml( l_xml, 'MY_DB_USER', 'MY_APEX_FILES' );
    end;It's now simply a matter of how you get your XML file(s) into a CLOB to call this procedure. The options include:
    1) Just pass in a VARCHAR2 as I did in the example above, which would limit you to roughly 32K.
    2) You could use DBMS_LOB.LOADCLOBFROMFILE to read it from the database server filesystem.
    3) You could upload the file via an APEX application (or some other means within APEX), you could convert the BLOB to a CLOB, and then call this procedure. If you need help with this method, let me know.
    Don't forget - as yet another alternative, you could always contact Oracle Support to see what could be done about that underlying database bug.
    I hope this helps.
    Joel

  • ORA-01858: a non-numeric character was found where a numeric was expected

    hi ,
    This was the code which shows the sales rep invoice amount and collected amount but while running report thru concurrent program its showing the following error:
    ORA-01858: a non-numeric character was found where a numeric was expected
    WHERE TO_CHAR ( TO_DATE ( PS.GL_DATE , 'DD/MON/YY' ) , 'MON-YYYY' ) BETWEEN TO_CHAR ( TO_DATE ( : ==> P_todate , 'YYYY/MM/DD' ) , 'MON-YYYY' ) AND TO_CHAR ( TO_DATE ( : P_todate , 'YYYY/MM/DD' ) , 'MON-YYYY' ) AND ps.customer_id = cust.custome
    The Actual Code was this
    SELECT SUBSTR(SALES.name,1,50) salesrep_name_inv,
    --ps.CLASS,
    SUM(ABS(ps.acctd_amount_due_remaining)) acctd_amt,
    SUM(ABS(ps.amount_due_remaining)) amt_due_remaining_inv,
    SUM(ABS(ps.amount_adjusted)) amount_adjusted_inv,
    SUM(ABS(ps.amount_applied)) amount_applied_inv,
    SUM(ABS(ps.amount_credited)) amount_credited_inv,
              SALES.salesrep_id,
    NULL "REMARKS"
    -- ps.gl_date gl_date_inv,
    FROM ra_cust_trx_types ctt,
    ra_customers cust,
    ar_payment_schedules ps,
    ra_salesreps SALES,
    ra_site_uses site,
    ra_addresses addr,
    ra_cust_trx_line_gl_dist gld,
    gl_code_combinations c,
    ra_customer_trx ct
    WHERE TO_CHAR(TO_DATE(PS.GL_DATE,'DD/MON/YY'),'MON-YYYY')
    BETWEEN TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY') AND TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY')
    AND ps.customer_id = cust.customer_id
    AND ps.customer_trx_id = ct.customer_trx_id
    AND ps.cust_trx_type_id = ctt.cust_trx_type_id
    AND NVL(ct.primary_salesrep_id, -3) = SALES.salesrep_id
    AND ps.customer_site_use_id+0 = site.site_use_id(+)
    AND site.address_id = addr.address_id(+)
    AND TO_CHAR(TO_DATE(PS.GL_DATE_CLOSED,'DD/MON/YY'),'MON-YYYY')
    BETWEEN TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY') AND TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY')
    --AND    ps.gl_date_closed > TO_DATE(:P_todate,'MON-YYYY')
    AND ct.customer_trx_id = gld.customer_trx_id
    AND gld.account_class = 'REC'
    AND gld.latest_rec_flag = 'Y'
    AND gld.code_combination_id = c.code_combination_id
    AND sales.salesrep_id is not null and sales.name is not null
    -- and ps.payment_schedule_id+0 < 9999
    -- AND SALES.salesrep_id ='1001'
    GROUP BY SALES.name,
    --ps.CLASS,
    SALES.salesrep_id

    So to_date function accepts a string as input and returns a date. When a date is input instead, it is implicity converted to the required type of the function paremeter, which is a string, so that to_date can convert it back to a date again.
    If you are lucky with the implicit conversion, you get the same date back, if you are not you might get a different date or an error.
    From your query it appears that this conversion from a date, to a string, to a date, and then back to a string using to_char this time, is being done to remove the time or day part of the date. The actual range comparison is being done on strings rather than dates, which is dangerous as strings sort differently than dates.
    In this example if I sort by date, Jan 01 comes between Dec 00 and Feb 01 as you would expect.
    SQL> select * from t order by d;
    D
    12-01-2000
    01-01-2001
    02-01-2001When converted to strings, Feb 01 comes between Dec 00 and Jan 01, which is probably not the desired result
    SQL> select * from t order by to_char(d,'DD-MON-YY');
    D
    12-01-2000
    02-01-2001
    01-01-2001If you want to remove time and day parts of dates you should use the trunc function
    trunc(d) removes the time, trunc(d,'mm') will remove the days to start of month.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions201.htm#i79761

Maybe you are looking for