Why am I getting a date instead of a sum?

I admit I am no spreadsheet wiz, but for years I simply added columns by typing "=sum(A1:A24)" and got a sum. Now, in my new never-before-used Numbers, I get a date: January 20, 2020. Yes, the columns of figures are formatted for currency. I am going nuts not being able to figure this out. Remember when Apple software was easy? I do. This isn't.

From the Formulas and Functions User Guide:
The SUM function returns the sum of a collection of numbers.
There is one case where all values do not have to be of the same type. If exactly one date/time value is included, any number values are considered to be numbers of days and all numbers and duration values are added to the date/time value.
Date/time values can’t be added together, so only one date/time value (as discussed above) is permitted.
So, if there is exactly one typo that forms a date/time value, Numbers has no way of knowing that anything is invalid. The fact that the result is a date is, in effect, your error notice, and it indicates that exactly one of the entries being summed is a date.

Similar Messages

  • Why do we get the data from a view to a report.

    hi
    why do we get the data from a view to a report. is it possible to get the data from a view in all the cases?

    hi Jyotssna,
      Suppose you are planning to get the data from multiple tables then you got to specify seveal condtions and make use of joins which results in poor performance in fetching the data . In order to improve the performance we make use of views where the conditions of different tables are defined and the data is fetched accordingly.
    Regards,
    Santosh

  • When / why use XML to store data instead of database table ?

    Hi All,
    I still not use XML much in applications and don't know much about its utilization.
    I read here and there about storing data as XML instead of into database tables.
    - could any body please tell me when / why use XML to store data instead of database table ?
    e.g : store inventory per warehouse in XML format. ?
    - What is the other cases or reasons of extracting database records into XML or vice versa ?
    - is there any good pdf on this ?
    Thank you for your help,
    xtanto

    It depends entirely what you want to accomplish with the 'XML in the database'. There are basically 3 independent methods: As CLOB, as XMLType views or as native XMLType 'columns'
    Each method has advantages and disadvantages, especially in the performance vs purpose tradeoff.
    The Oracled Press book "Oracle Database 10g XML & SQL Design, Build, & Manage XML Applications in Java, C, C++, & PL/SQL" is highly recommended for anyone interested in Oracle and XML. http://books.mcgraw-hill.com/getbook.php?isbn=0072229527&template=oraclepress

  • Why do I get ?'s instead of images when e-mails are received?

    Why do I get a question mark instead of an image when I receive e-mails?

    When you receive email in HTML format (that is, as a web page), the message will usually contain links to images hosted on a remote server. When you display those images, the sender of the message will know that you've read his message, when you read it, who your ISP is, and approximately where you are. You may regard this as an invasion of your privacy. If the message is spam, then your address has been confirmed as valid and you've been confirmed as someone who opens spam messages. That will ensure you get even more spam.
    If you're using the Mail application, you can prevent that information from being sent out. Select
    Mail ▹ Preferences ▹ Viewing
    from the menu bar and uncheck the box marked
    Display remote images in HTML messages
    You'll still be able to display images when you want to by clicking the button marked
    Load Images
    in the top right corner of the message window. If you do want the images to load automatically, check the box.

  • Why do i get integer values instead of decimals when selecting a mysql table through an oracle xe DB?

    Hi
    My company just started a new project that implies migrating every hour operational data from a mysql database located at another company to our main DB (oracle10gR2). Between these two DB, we have an oracle XE DB which contains the database links to both DB and a procedure to get (from mysql) and insert (oracle10g) the values. What happens is that in the mysql DB, the values have decimals and, when i select the table in oracle, i only see integer values (no decimals). Here is an example of the select i use:
    SELECT "v_hour", "v_date", "v_type", "v_tabstamp","v_value"
    FROM "tab1"@mysql;
    How can i work around this problem?
    Many thanks!

    Maybe just a HS_LANGUAGE setting issue.
    You could try that:
    1a) in the gateway init file, please set HS_LANGUAGE=GERMAN_GERMANY.WE8ISO8859P1
    2a) now open a new SQL*Plus session ans select from your table using the gateway based database link
    => if the values are now including the decimal part then your foreign database is set up to use a comma as the decimal separator and you have to make sure that the HS_LANGUAGE contains a territory that uses as decimal separator a comma.
    If you still do not get the decimal values, then change it to:
    1b) HS_LANGUAGE=american_america.we8iso8859P1
    2b) Make sure you start again a new SQL*Plus session (the gateway init file is only read when you use the database link in your session for the first time (or explicit closed it before). Select again from your table.
    => is the decimal part now visible?
    More details can be found in the gateway note: Gateway and Decimal Digits(Doc ID 1453148.1) available from My Oracle Support portal.
    - Klaus

  • Why do people get a .dat and an image file when I e-mail an attachment?

    I don't know where to post this question.

    I have the opposite problem. Some people who send me attachments, and all I get is some .dat file.
    I have found it to only happen when the sender is using Microsoft Outlook, which IMO is a garbage program. And this ranks as reason number 5, on my list.
    The problem is usulaly solved when I ask the user, please do not send me attachments if you are going to use Outlook. I know it has to be due to some unfamiliarity with the User on how to use Outlook.
    I understand that recipients can install a DAT decoder, but it would be a lot simpler if Outlook users simply get along with others  set their own program to not use DAT encoding for their RTF emails, and attachments.

  • Why am I getting (Unknown Source) instead of a line number?

    In the past couple of weeks, using Tomcat with a Servlet/java bean app, I've started getting exceptions listing such as this:
    Exception in: R( /webman + /servlet/CreateJobServlet + null) - java.lang.NullPointerException
    at CreateJobServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
    at org.apache.tomcat.core.Handler.service(Handler.java:286)
    The thing that bothers me is the "(Unknown Source)" bit. I no longer get the line numbers where the error occured on any of my source files, whereas I'm sure I DID get line numbers a few weeks ago. I thought it might have to do with my changing to JDK1.4, but after changing back to 1.3, the problem persists. Why are the line numbers no longer available, and what can I do to fix it? I've always accepted the frustration of getting NullPointerExceptions in JSP pages, but I don't want to be forced to put lots of System.outs in to help me track down the problems in compiled files!!

    It could be one of the following:
    - you have not specified -g on compile
    (means debug info, check IDE or ANT task if you dont
    use command line)
    - you have specified -O on compile
    (means optimize, which could hinder debug infos)
    bottom line:
    you should have debuginfos on and optimze off during
    compile. Most IDEs have debug info default-on during
    compile, when using ANT most people forget to define
    the debug=on
    <javac srcdir="${src}"
    destdir="${build}"
    classpath="xyz.jar"
    debug="on"
    />
    Hope this helps

  • Why do I get garbled data when I save PDF document to Excel 2010?

    Hello,
    I am trying to save a Adobe Acrobat Pro PDF as an Excel spreadsheet.  I was able to do this once without any problems. 
    I tried it today and when I open the spreadsheet it contains garbled data. (example: ?oard' for the word Board)
    Thank you for any help you can offer.

    What is your operating system?  Reader version?
    First, Google Chrome uses its own PDF viewer, not the Adobe Reader plugin.
    When right-clicking/Save Target as: does the same thing happen with this link http://helpx.adobe.com/pdf/adobe_reader_reference.pdf ?

  • Why am I getting Time Warner instead of Firefox after I downloaded Firefox?

    I downloaded the latest Mozilla Firefox yesterday, and after several tries to use it, I'm getting Time Warner website. The only part of Firefox I can see on the monitor is at the top right corner and it's part of a ribbon across the top and includes Yahoo and Google. Perhaps this is the correct information I should have received but I expected a stand-alone Firefox website from which to work.
    Did it not download properly, or is this what I should have and just haven't discovered how to use it, or maybe is this an error? I have Windows 7, 64 bit, a wireless setup, haven't installed anything else lately and I seriously would like to enable Firefox because I read good things about it.

    Do this happen when you try to go to a website and it redirects you to Time Warner's site or is it something different? I have TWC and it redirects me every time I enter a non-valid URL.
    Can you give me a screenshot so I know what you're seeing? Please see [[How do I create a screenshot of my problem?]] to create a screenshot<br>
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.

  • Getting junk letters instead of photo in an email.

    hi all
    i am trying to send an email via gmail.com i am able to send an email but when i try to
    send attachment so i am getting strange texts instead of photo
    its not displaying photo but there is different format text is displaying in my box.
    here is the result.
    also getting this error but i am able to send email.
    ERROR at line 1:
    ORA-20000: Failed to send mail due to the
    following error: ORA-29277: invalid SMTP operation
    ORA-06512: at "MAIL.MAHI", line 159
    ORA-06512: at line 2===============================================
    --BACKUP.SECBOUNDContent-
    Type: application/octet-streamContent-Disposition:
    attachment; filename="g.gif"Content-Transfer-Encoding: base64
    Qk2O5QgAAAAAADYAAAAoAAAAwgIAABMBAAABABgAAAAA
    AFjlCAAAAAAAAAAAAAAAAAAAAAAAhNWuhNWuhNWuhNWu
    hNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuh
    NWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNW
    uhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhN
    WuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuh
    NWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWu
    hNWuhNWuhNWuhNWuhNWuhNWuhNWuhN
    WuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuh
    NWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNW
    uhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhN
    WuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNand here the link which is i followed to use with my codes....
    Re: Sending UTL_SMTP mail with single jpg attachment issue
    create or replace package body Mahi
           is
              -- Write a MIME header
              procedure write_mime_header (
                  p_conn in out nocopy utl_smtp.connection
               , p_name in varchar2
                , p_value in varchar2
               is
              begin
                utl_smtp.write_data ( p_conn
                                     , p_name || ': ' || p_value || utl_tcp.crlf
             end;
             procedure mail (
                p_sender in varchar2
              , p_recipient in varchar2
               , p_subject in varchar2
               , p_message in varchar2
              is
                l_conn           utl_smtp.connection;
                nls_charset    varchar2(255);
               v_src_loc  BFILE := BFILENAME('BACKUP', 'Logon.jpg');
               --v_src_loc BLOB;
          l_buffer   RAW(54);
          l_amount   BINARY_INTEGER := 54;
          l_pos      INTEGER := 1;
          l_blob     BLOB := EMPTY_BLOB;
          l_blob_len INTEGER;
         v_amount   INTEGER;
                  v_fname VARCHAR2(50);
         CURSOR img_cur IS SELECT photo_name,photo
      FROM temp_photo;
        --crlf  varchar2(2) := chr(10)||chr(13);
    PROCEDURE send_header(pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
       BEGIN
          UTL_SMTP.WRITE_DATA(l_conn,
                              pi_name || ': ' || pi_header || UTL_TCP.CRLF);
       END;
             begin
                -- get characterset
                select value
                into   nls_charset
                from   nls_database_parameters
                where  parameter = 'NLS_CHARACTERSET';
                select
                photo into v_src_loc from
                temp_photo
                where id=1;
                DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
         DBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
         v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
         DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
         --DBMS_LOB.COPY(l_blob, v_src_loc, v_amount);
         l_blob_len := DBMS_LOB.getlength(l_blob);
               -- establish connection and autheticate
               l_conn   := utl_smtp.open_connection (g_smtp_host, g_smtp_port);
                utl_smtp.ehlo(l_conn, g_smtp_domain);
                 utl_smtp.command(l_conn, 'auth login');
                 utl_smtp.command(l_conn,utl_encode.text_encode('[email protected]', nls_charset, 1));
                utl_smtp.command(l_conn, utl_encode.text_encode('xxxxx', nls_charset, 1));
                 -- set from/recipient
                  utl_smtp.command(l_conn, 'MAIL FROM: <'||p_sender||'>');
                 utl_smtp.command(l_conn, 'RCPT TO: <'||p_recipient||'>');
                -- write mime headers
                 utl_smtp.open_data (l_conn);
                 write_mime_header (l_conn, 'From', p_sender);
                write_mime_header (l_conn, 'To', p_recipient);
                write_mime_header (l_conn, 'Subject', p_subject);
                 write_mime_header (l_conn, 'Content-Type', 'text/plain; charset=us-ascii');
                 write_mime_header (l_conn, 'X-Mailer', g_mailer_id);
                 utl_smtp.write_data (l_conn, UTL_TCP.CRLF);
                 UTL_SMTP.WRITE_DATA(l_conn,
                             'MIME-Version: 1.0' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             ' boundary= "' || 'BACKUP.SECBOUND' || '"' ||
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
                 -- write message body
                utl_smtp.write_data (l_conn, p_message);
                OPEN img_cur;
      LOOP
      FETCH img_cur INTO v_fname,l_blob;
    end loop;
    close img_cur;
                UTL_SMTP.WRITE_DATA(l_conn,
                             '--' || 'BACKUP.SECBOUND' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Type: text/plain;' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             ' charset=US-ASCII' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,  p_message || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             '--' || 'BACKUP.SECBOUND' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Type: application/octet-stream' ||
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             ' filename="' || 'gpg.jpg' || '"' || --My filename
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
      /* Writing the BLOL in chunks */
        WHILE l_pos < l_blob_len LOOP
          DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
          UTL_SMTP.write_raw_data(l_conn,
                                  UTL_ENCODE.BASE64_ENCODE(l_buffer));
          UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
           l_buffer := NULL;
           l_pos    := l_pos + l_amount;
         END LOOP;
         UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
        -- Close Email
        UTL_SMTP.WRITE_DATA(l_conn,
                             '--' || 'BACKUP.SECBOUND' || '--' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
                             UTL_SMTP.CLOSE_DATA(l_conn);
                             utl_smtp.close_data (l_conn);
         UTL_SMTP.QUIT(l_conn);
         DBMS_LOB.FREETEMPORARY(l_blob);
         DBMS_LOB.FREETEMPORARY(l_blob);
         DBMS_LOB.FILECLOSE(v_src_loc);
                    -- end connection
                utl_smtp.quit (l_conn);
                        exception
                 when others
                 then
                   begin
                      utl_smtp.quit(l_conn);
                    exception
                      when others then
                       null;
                   end;
                   raise_application_error(-20000,'Failed to send mail due to the
    following error: ' || sqlerrm);
    DBMS_LOB.FREETEMPORARY(l_blob);
    DBMS_LOB.FREETEMPORARY(l_blob);
          DBMS_LOB.FILECLOSE(v_src_loc);
         raise;
             end;
          end;
          commit;Note:- i am using Stunnel,Oracle Database 11g R2 and OS is Linux...
    I installed Linux on virtualBox.
    please suggest me why i am getting strange text instead of photo?
    if my code is wrong plz correct for me..
    thanks in advance...
    Mehwish
    Student.
    Edited by: Mehwish on Apr 15, 2011 10:57 PM

    Your codes are very nice and easy to use but i am unlucky and i am not able to send  attachment
    before i was not able to send even junk  text of photo but after using u r code
    i am able to send that and i am near to solve my problem because of your nice guide and codes...
    create directory backup as  '/u01/dump';
    grant read,write on directory backup to mail,scott;
    and goes this instead of picture.
    Hi Meh --BACKUP.SECBOUNDContent-Type: application/octet-streamContent-Disposition:
    attachment; filename="gpg.jpg"Content-Transfer-Encoding: base64 /9j/4AAQ
    SkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAPgAA/+
    4ADkFkb2JlAGTAAAAAAf/bAIQABgQEBAQEBgQEBgkGBQYJCgcGBgcKCwkJCg
    kJCw8LDAwMDAsPDA0ODg4NDBERExMRERoZGRkaHR0dHR0dHR0dHQEGBwcMCw
    wWDw8WGRQQFBkdHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dH
    R0dHR0dHR0dHR0dHR0d/8AAEQgA+wG0AwERAAIRAQMRAf/EAKQAAAICAwEBAQ
    AAAAAAAAAAAAECAAMFBgcECAkBAQEAAwEBAQAAAAAAAAAAAAABAgMEBQYHE
    AABAwIEAwQGCAMFBgYDAAABAAIDEQQhMRIFQRMGUWEiB3GBoTJCFJGxwVJiI
    xUIkjMk0XKCokPh8cJT
    and i tried to use this code now.
    create or replace package body mahi
           is
              -- Write a MIME header
              procedure write_mime_header (
                  p_conn in out nocopy utl_smtp.connection
               , p_name in varchar2
                , p_value in varchar2
               is
              begin
                utl_smtp.write_data ( p_conn
                                     , p_name || ': ' || p_value || utl_tcp.crlf
             end;
             procedure mail (
                p_sender in varchar2
              , p_recipient in varchar2
               , p_subject in varchar2
               , p_message in varchar2
              is
                l_conn           utl_smtp.connection;
                nls_charset    varchar2(255);
               v_src_loc  BFILE := BFILENAME('BACKUP', 'Logon.jpg');
               --v_src_loc BLOB;
          l_buffer   RAW(54);
          l_amount   BINARY_INTEGER := 54;
          l_pos      INTEGER := 1;
          l_blob     BLOB := EMPTY_BLOB;
          l_blob_len INTEGER;
         v_amount   INTEGER;
                  v_fname VARCHAR2(50);
        --crlf  varchar2(2) := chr(10)||chr(13);
    PROCEDURE send_header(pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
       BEGIN
          UTL_SMTP.WRITE_DATA(l_conn,
                              pi_name || ': ' || pi_header || UTL_TCP.CRLF);
       END;
             begin
                -- get characterset
                select value
                into   nls_charset
                from   nls_database_parameters
                where  parameter = 'NLS_CHARACTERSET';
                select
                photo into v_src_loc from
                temp_photo
                where id=1;
                DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
         DBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
         v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
         DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
         --DBMS_LOB.COPY(l_blob, v_src_loc, v_amount);
         l_blob_len := DBMS_LOB.getlength(l_blob);
               -- establish connection and autheticate
               l_conn   := utl_smtp.open_connection (g_smtp_host, g_smtp_port);
                utl_smtp.ehlo(l_conn, g_smtp_domain);
                 utl_smtp.command(l_conn, 'auth login');
                 utl_smtp.command(l_conn,utl_encode.text_encode('[email protected]', nls_charset, 1));
                utl_smtp.command(l_conn, utl_encode.text_encode('xxxxx', nls_charset, 1));
                 -- set from/recipient
                  utl_smtp.command(l_conn, 'MAIL FROM: <'||p_sender||'>');
                 utl_smtp.command(l_conn, 'RCPT TO: <'||p_recipient||'>');
                -- write mime headers
                 utl_smtp.open_data (l_conn);
                 write_mime_header (l_conn, 'From', p_sender);
                write_mime_header (l_conn, 'To', p_recipient);
                write_mime_header (l_conn, 'Subject', p_subject);
                 write_mime_header (l_conn, 'Content-Type', 'text/plain; charset=us-ascii');
                 write_mime_header (l_conn, 'X-Mailer', g_mailer_id);
                 utl_smtp.write_data (l_conn, UTL_TCP.CRLF);
                 UTL_SMTP.WRITE_DATA(l_conn,
                             'MIME-Version: 1.0' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             ' boundary= "' || 'BACKUP.SECBOUND' || '"' ||
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
                 -- write message body
                utl_smtp.write_data (l_conn, p_message);
                UTL_SMTP.WRITE_DATA(l_conn,
                             '--' || 'BACKUP.SECBOUND' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Type: text/plain;' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             ' charset=US-ASCII' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,  p_message || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             '--' || 'BACKUP.SECBOUND' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Type: application/octet-stream' ||
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             ' filename="' || 'gpg.jpg' || '"' || --My filename
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
      /* Writing the BLOL in chunks */
        WHILE l_pos < l_blob_len LOOP
          DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
          UTL_SMTP.write_raw_data(l_conn,
                                  UTL_ENCODE.BASE64_ENCODE(l_buffer));
          UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
           l_buffer := NULL;
           l_pos    := l_pos + l_amount;
         END LOOP;
         UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
        -- Close Email
        UTL_SMTP.WRITE_DATA(l_conn,
                             '--' || 'BACKUP.SECBOUND' || '--' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
                             UTL_SMTP.CLOSE_DATA(l_conn);
                             utl_smtp.close_data (l_conn);
         UTL_SMTP.QUIT(l_conn);
         DBMS_LOB.FREETEMPORARY(l_blob);
         DBMS_LOB.FREETEMPORARY(l_blob);
         DBMS_LOB.FILECLOSE(v_src_loc);
                    -- end connection
                utl_smtp.quit (l_conn);
                        exception
                 when others
                 then
                   begin
                      utl_smtp.quit(l_conn);
                    exception
                      when others then
                       null;
                   end;
                   raise_application_error(-20000,'Failed to send mail due to the
    following error: ' || sqlerrm);
    DBMS_LOB.FREETEMPORARY(l_blob);
    DBMS_LOB.FREETEMPORARY(l_blob);
          DBMS_LOB.FILECLOSE(v_src_loc);
         raise;
             end;
          end;
          Note:- i m using stunnel and sending email via gmail and my OS is linux and oracle database 11g R2.
    i posted already in my previous post.
    is tthere any format problem?
    and also i am getting this error but i am able to send email which is getting properly in inbox.
    ERROR at line 1:
    ORA-20000: Failed to send mail due to the
    following error: ORA-29277: invalid SMTP operation
    ORA-06512: at "MAIL.Mahi", line 151
    ORA-06512: at line 2

  • Why is the Analog Input data incorrect when VI is restarted?

    In the attached Read Temp.vi I get correct data the first time it is run. Once stopped and then restarted the data values are incorrect. If I remove TS-1 from the I/O channel list then correct data is reported even when rerun. Why do I get incorrect data when I rerun and have TS-1 in the I/O channel list?
    Attachments:
    AI_Read_Anomaly.llb ‏42 KB
    VPTS_Rev_2.daq ‏27 KB

    Hello,
    Which version of NI-DAQ are you using. try to upgrade it to version 6.9.2 available free from National Instruments website and see if it helps. It should.
    Please tell me if it does not help.
    Sincerely,
    Sastry V
    Applications Engineer
    National Instruments

  • Why am I getting "51w3d:" in logs instead of date

    Hi,
    Why am I getting "51w3d:" in logs instead of date. How can I change to the time stamp.

    Hello John,
    I like more time resolution so I use
    service timestamps debug datetime localtime msec
    service timestamps log datetime localtime msec
    Hope to help
    Giuseppe

  • If the data network is not available for some time, to get it again we need to restart the phone instead it is not finding the data network instantly. why cant the iphone searches data net work offten if not available. i am totally disappointed with this!

    If the data network is not available for some time, to get it again we need to restart the phone instead it is not finding the data network instantly. why cant the iphone searches data net work offten if not available. i am totally disappointed with this!

    Still it could not find the data network.it searches for voice network instantly and works too. but even full voice network available, there is no data network.when i restart the phone it could find data network.
    Already i reset network settings for two times.

  • Why the 2LIS_08TRTK extractor can not get  all data

    Hello, BW Gurus.
    Why the 2LIS_08TRTK and 2LIS_08TRTLP extractors can not get all data. I had used the RSA3 and get 10 registers, when a check at the VTTK table I had 20 registers, I didnt use filters at RSA3, could you help to know what happen o correct it.

    Is it because
    <i>
    Shipment documents and their dependent objects (shipment stages as well as shipment items [deliveries in the shipment]) are only extracted into BW when the Shipment completion status has been set.
    This is necessary because the numeric values that result from the delivery documents are only established at the time. If the data were already stored earlier in BW, the shipment data would not be updated if the delivery notes were changed in BW.
    </i>
    - from oss note 573470.

  • Itunes says that the version of software on my ipod touch 3rd gen is up to date, but IOS 5 is avaliable. I have checked for software updates for days but it keeps saying that 4.2.1 is the current version. Why cant i get IOS 5?

    itunes says that the version of software on my ipod touch 3rd gen is up to date, but IOS 5 is avaliable. I have checked for software updates for days but it keeps saying that 4.2.1 is the current version. Why cant i get IOS 5?

    bradenfromwaikerie wrote:
    itunes says that the version of software on my ipod touch 3rd gen is up to date, but IOS 5 is avaliable. I have checked for software updates for days but it keeps saying that 4.2.1 is the current version. Why cant i get IOS 5?
    because you do not have a 3rd generation device. The OS Version says so , otherwise you would be at 4.3.5 minimum and also Itunes is also always correct in determining if you have the latest OS ( if not it fetches the newest from Apple's Servers ) . And because a 2nd generation iPod stops at 4.2.1 you can't get the newest OS, because your device is old. Buy a new iPod , they have iOS5 preinstalled.

Maybe you are looking for