.xls attachement saved as corrupt data

My code to download and save attached files for an email works for attached text files, .xml files .csv files. but for attached .xls files, the resulting file is currupt - it opens in Excel but just displays strange characters. is there a different way to save this type of file?
Object o = message.getContent();
                            System.out.println("Content: "+o);
                            if (o instanceof MimeMultipart) { //attachements available?
                                MimeMultipart mm = (MimeMultipart) o;
                                int mmCount = mm.getCount();
                                for (int m = 0; m < mmCount; m++) { // for each part
                                    Part part = mm.getBodyPart(m);
                                    String disposition = part.getDisposition();
                                    if (part.getFileName() != null) {
                                        if ((disposition != null) && ((disposition.equals(Part.ATTACHMENT) || disposition.equals(Part.INLINE)))) {
                                            File tempFile = new File("D:\\TEMP\\mailtest\\" + part.getFileName());
                                            FileOutputStream fos = new FileOutputStream(tempFile);
                                            part.removeHeader("Content-Type");
                                            part.removeHeader("Content-Transfer-Encoding");
                                            part.removeHeader("Content-Disposition");
                                            part.writeTo(fos);
                                    } else { // part has no file name
                                        System.out.println("Part "+m+" has no file name!");
                                }//next part

the problem is to use part.writeTo(). if you use part.getInputStream(), it works:
if ((disposition != null) && ((disposition.equals(Part.ATTACHMENT) || disposition.equals(Part.INLINE)))) {
                                            InputStream is = null;
                                            File tempFile = new File("D:\\TEMP\\mailtest\\" + part.getFileName());
                                            FileOutputStream fos = null;
                                            try {
                                                fos = new FileOutputStream(tempFile);
                                                is = part.getInputStream();
                                                int byteCount = 0;
                                                byte[] bytes = new byte[128];
                                                while ((byteCount = is.read(bytes, 0, bytes.length)) > -1) { //use full read() method for GZIPInputStream to be treated correctly
                                                    fos.write(bytes, 0, byteCount);     
                                            } finally {
                                                try { if (fos != null) fos.close(); } catch (IOException ioe) {}
                                                try { if (is != null) is.close(); } catch (IOException ioe) {}

Similar Messages

  • Read spool data and send it through e-mail as .txt or .xls attachment

    Hi All,
    I have to read the spool data and send it via e-mail as .txt or .xls attachment. I have used FMs LIST_TO_ASCI, RSPO_RETURN_SPOOLJOB and SO_SOLITAB_TO_SOLIXTAB. I am using FM SO_DOCUMENT_SEND_API1 to send e-mail.
    My problem is, the text file being sent is not showing entire data. It's getting truncated after 255 characters. Is this a standard? If yes, then is there any work around for it?
    Alternatively, I can send the file as excel attachment. How can this be done?
    Thanks,
    Ashwini

    You will have to convert string to Xstring and then to binary to acheive this.
    Check this wiki to send a mail attachment with more than 255 characters.
    [https://wiki.sdn.sap.com/wiki/display/Snippets/Tosendamailattachmentwithmorethan255charactersinaline]
    Vikranth

  • Is it possible to send xls attach in mail in background ?

    is it possible to send xls attach in mail in background ?
    i build/copy program to send attach file in xls format  ,
    its work fine in foreground but do nothing in background  ,
    What can be the reason?
    the section of the sending  :
      DATA: LD_ERROR    TYPE SY-SUBRC,
            LD_RECIEVER TYPE SY-SUBRC,
            LD_MTITLE LIKE SODOCCHGI1-OBJ_DESCR,
            LD_EMAIL LIKE  SOMLRECI1-RECEIVER,
            LD_FORMAT TYPE  SO_OBJ_TP ,
            LD_ATTDESCRIPTION TYPE  SO_OBJ_NAM ,
            LD_ATTFILENAME TYPE  SO_OBJ_DES ,
            LD_SENDER_ADDRESS LIKE  SOEXTRECI1-RECEIVER,
            LD_SENDER_ADDRESS_TYPE LIKE  SOEXTRECI1-ADR_TYP,
            LD_RECEIVER LIKE  SY-SUBRC.
      LD_EMAIL   = P_EMAIL.
      LD_MTITLE = P_MTITLE.
      LD_FORMAT              = P_FORMAT.
      LD_ATTDESCRIPTION      = P_ATTDESCRIPTION.
      LD_ATTFILENAME         = P_FILENAME.
      LD_SENDER_ADDRESS      = P_SENDER_ADDRESS.
      LD_SENDER_ADDRESS_TYPE = P_SENDER_ADDRES_TYPE.
    Fill the document data.
      W_DOC_DATA-DOC_SIZE = 1.
    Populate the subject/generic message attributes
      W_DOC_DATA-OBJ_LANGU = SY-LANGU.
      W_DOC_DATA-OBJ_NAME  = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR = LD_MTITLE .
      W_DOC_DATA-SENSITIVTY = 'F'.
    Fill the document data and get size of attachment
      CLEAR W_DOC_DATA.
      READ TABLE IT_ATTACH INDEX W_CNT.
      W_DOC_DATA-DOC_SIZE =
         ( W_CNT - 1 ) * 255 + STRLEN( IT_ATTACH ).
      W_DOC_DATA-OBJ_LANGU  = SY-LANGU.
      W_DOC_DATA-OBJ_NAME   = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR  = LD_MTITLE.
      W_DOC_DATA-SENSITIVTY = 'F'.
      CLEAR T_ATTACHMENT.
      REFRESH T_ATTACHMENT.
      T_ATTACHMENT[] = PIT_ATTACH[].
    Describe the body of the message
      CLEAR T_PACKING_LIST.
      REFRESH T_PACKING_LIST.
      T_PACKING_LIST-TRANSF_BIN = SPACE.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM = 0.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE = 'RAW'.
      APPEND T_PACKING_LIST.
    Create attachment notification
      T_PACKING_LIST-TRANSF_BIN = 'X'.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM   = 1.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE   =  LD_FORMAT.
      T_PACKING_LIST-OBJ_DESCR  =  LD_ATTDESCRIPTION.
      T_PACKING_LIST-OBJ_NAME   =  LD_ATTFILENAME.
      T_PACKING_LIST-DOC_SIZE   =  T_PACKING_LIST-BODY_NUM * 255.
      APPEND T_PACKING_LIST.
    Add the recipients email address
      CLEAR T_RECEIVERS.
      REFRESH T_RECEIVERS.
      T_RECEIVERS-RECEIVER = LD_EMAIL.
      T_RECEIVERS-REC_TYPE = 'U'.
      T_RECEIVERS-COM_TYPE = 'INT'.
    T_RECEIVERS-NOTIF_DEL = 'X'.
    T_RECEIVERS-NOTIF_NDEL = 'X'.
      APPEND T_RECEIVERS.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA              = W_DOC_DATA
          PUT_IN_OUTBOX              = 'X'
          SENDER_ADDRESS             = LD_SENDER_ADDRESS
          SENDER_ADDRESS_TYPE        = LD_SENDER_ADDRESS_TYPE
          COMMIT_WORK                = 'X'
        IMPORTING
          SENT_TO_ALL                = W_SENT_ALL
        TABLES
          PACKING_LIST               = T_PACKING_LIST
          CONTENTS_BIN               = T_ATTACHMENT
          CONTENTS_TXT               = IT_MESSAGE
          RECEIVERS                  = T_RECEIVERS
        EXCEPTIONS
          TOO_MANY_RECEIVERS         = 1
          DOCUMENT_NOT_SENT          = 2
          DOCUMENT_TYPE_NOT_EXIST    = 3
          OPERATION_NO_AUTHORIZATION = 4
          PARAMETER_ERROR            = 5
          X_ERROR                    = 6
          ENQUEUE_ERROR              = 7
          OTHERS                     = 8.
    Populate zerror return code
      LD_ERROR = SY-SUBRC.
    Populate zreceiver return code
      LOOP AT T_RECEIVERS.
        LD_RECEIVER = T_RECEIVERS-RETRN_CODE.
      ENDLOOP.

    Try this example, not sure where I got this, but it works.
    report zmail_excel.
    parameters: p_email   type somlreci1-receiver
                                   default '[email protected]'.
    data: begin of it001 occurs 0,
          bukrs type t001-bukrs,
          butxt type t001-butxt,
          end of it001.
    data:   imessage type standard table of solisti1 with header line,
            iattach type standard table of solisti1 with header line,
            ipacking_list like sopcklsti1 occurs 0 with header line,
            ireceivers like somlreci1 occurs 0 with header line,
            iattachment like solisti1 occurs 0 with header line.
    start-of-selection.
      select bukrs butxt into table it001 from t001.
    *   Populate table with detaisl to be entered into .xls file
      perform build_xls_data .
    * Populate message body text
      clear imessage.   refresh imessage.
      imessage = 'Please find attached excel file'.
      append imessage.
    * Send file by email as .xls speadsheet
      perform send_email_with_xls tables imessage
                                          iattach
                                    using p_email
                                          'Example Excel Attachment'
                                          'XLS'
                                          'TestFileName'
                                          'CompanyCodes'.
    *      Form  BUILD_XLS_DATA
    form build_xls_data .
      constants: con_cret type x value '0D',  "OK for non Unicode
                 con_tab type x value '09'.   "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    *class cl_abap_char_utilities definition load.
    *constants:
    *    con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
    *    con_cret type c value cl_abap_char_utilities=>CR_LF.
      concatenate 'BUKRS' 'BUTXT'
             into iattach separated by con_tab.
      concatenate con_cret iattach into iattach.
      append  iattach.
      loop at it001.
        concatenate it001-bukrs it001-butxt
               into iattach separated by con_tab.
        concatenate con_cret iattach  into iattach.
        append  iattach.
      endloop.
    endform.
    *      Form  SEND_EMAIL_WITH_XLS
    form send_email_with_xls tables pit_message
                                              pit_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription.
      data: xdocdata like sodocchgi1,
            xcnt type i.
    * Fill the document data.
      xdocdata-doc_size = 1.
    * Populate the subject/generic message attributes
      xdocdata-obj_langu = sy-langu.
      xdocdata-obj_name  = 'SAPRPT'.
      xdocdata-obj_descr = p_mtitle .
    * Fill the document data and get size of attachment
      clear xdocdata.
      read table iattach index xcnt.
      xdocdata-doc_size =
         ( xcnt - 1 ) * 255 + strlen( iattach ).
      xdocdata-obj_langu  = sy-langu.
      xdocdata-obj_name   = 'SAPRPT'.
      xdocdata-obj_descr  = p_mtitle.
      clear iattachment.  refresh iattachment.
      iattachment[] = pit_attach[].
    * Describe the body of the message
      clear ipacking_list.  refresh ipacking_list.
      ipacking_list-transf_bin = space.
      ipacking_list-head_start = 1.
      ipacking_list-head_num = 0.
      ipacking_list-body_start = 1.
      describe table imessage lines ipacking_list-body_num.
      ipacking_list-doc_type = 'RAW'.
      append ipacking_list.
    * Create attachment notification
      ipacking_list-transf_bin = 'X'.
      ipacking_list-head_start = 1.
      ipacking_list-head_num   = 1.
      ipacking_list-body_start = 1.
      describe table iattachment lines ipacking_list-body_num.
      ipacking_list-doc_type   =  p_format.
      ipacking_list-obj_descr  =  p_attdescription.
      ipacking_list-obj_name   =  p_filename.
      ipacking_list-doc_size   =  ipacking_list-body_num * 255.
      append ipacking_list.
    * Add the recipients email address
      clear ireceivers.  refresh ireceivers.
      ireceivers-receiver = p_email.
      ireceivers-rec_type = 'U'.
      ireceivers-com_type = 'INT'.
      ireceivers-notif_del = 'X'.
      ireceivers-notif_ndel = 'X'.
      append ireceivers.
      call function 'SO_DOCUMENT_SEND_API1'
           exporting
                document_data              = xdocdata
                put_in_outbox              = 'X'
                commit_work                = 'X'
           tables
                packing_list               = ipacking_list
                contents_bin               = iattachment
                contents_txt               = imessage
                receivers                  = ireceivers
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
    endform.
    Regards,
    Rich Heilman

  • Problem in sending mail with a xls attachment

    Hi,
    I have a problem in a program that I created.
    The program sends a email via internet to user with a excel attachment.
    In SOST its showing as a file with .xls attachment which opens in MS excel.
    But the actual mail which the user gets is a .dat file
    what can be the reason
    Edited by: ANURAG GOGOI on Oct 23, 2008 1:55 PM

    Anurag:
    You need to set the DOC_TYPE value to 'XLS' in the packing List header (structure SOPCKLSTI1).
    Note: The 'XLS' value isn't listed as a possible value in the domain value list for DOC_TYPE, but it will be allowed.
    Regards,
    D.

  • To send email with editable PDF/XLS attachment

    Hi All,
      Is it possible to send editable PDF/XLS attachment in a mail to the customer via SAP, if yes how?
    Please Help! Urgent

    hi,
    *Sending mail with attachment
    * This program will allowed you to send email with attachment.
    * First, specify the attachment file from your local hardisk and execute.
    * Next, specify the sender email address and click the send button.
    report y_cr17_mail.
    data method1 like sy-ucomm.
    data g_user like soudnamei1.
    data g_user_data like soudatai1.
    data g_owner like soud-usrnam.
    data g_receipients like soos1 occurs 0 with header line.
    data g_document like sood4 .
    data g_header like sood2.
    data g_folmam like sofm2.
    data g_objcnt like soli occurs 0 with header line.
    data g_objhead like soli occurs 0 with header line.
    data g_objpara  like selc occurs 0 with header line.
    data g_objparb  like soop1 occurs 0 with header line.
    data g_attachments like sood5 occurs 0 with header line.
    data g_references like soxrl occurs 0 with header line.
    data g_authority like sofa-usracc.
    data g_ref_document like sood4.
    data g_new_parent like soodk.
    data: begin of g_files occurs 10 ,
      text(4096) type c,
       end of g_files.
    data : fold_number(12) type c,
           fold_yr(2) type c,
           fold_type(3) type c.
    parameters ws_file(4096) type c default 'c:\debugger.txt'.
    * Can me any file fromyour pc ....either xls or word or ppt etc ...
    g_user-sapname = sy-uname.
    call function 'SO_USER_READ_API1'
    exporting
       user                            = g_user
    *    PREPARE_FOR_FOLDER_ACCESS       = ' '
    importing
       user_data                       = g_user_data
    *  EXCEPTIONS
    *    USER_NOT_EXIST                  = 1
    *    PARAMETER_ERROR                 = 2
    *    X_ERROR                         = 3
    *    OTHERS                          = 4
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    fold_type = g_user_data-outboxfol+0(3).
    fold_yr = g_user_data-outboxfol+3(2).
    fold_number =  g_user_data-outboxfol+5(12).
    clear g_files.
    refresh : g_objcnt,
      g_objhead,
      g_objpara,
      g_objparb,
      g_receipients,
      g_attachments,
      g_references,
      g_files.
    method1 = 'SAVE'.
    g_document-foltp  = fold_type.
    g_document-folyr   = fold_yr.
    g_document-folno   = fold_number.
    g_document-objtp   = g_user_data-object_typ.
    *g_document-OBJYR   = '27'.
    *g_document-OBJNO   = '000000002365'.
    *g_document-OBJNAM = 'MESSAGE'.
    g_document-objdes   = 'sap-img.com testing by program'.
    g_document-folrg   = 'O'.
    *g_document-okcode   = 'CHNG'.
    g_document-objlen = '0'.
    g_document-file_ext = 'TXT'.
    g_header-objdes =  'sap-img.com testing by program'.
    g_header-file_ext = 'TXT'.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
      exporting
        method             = method1
       office_user        = sy-uname
       ref_document       = g_ref_document
       new_parent         =  g_new_parent
    importing
       authority          =  g_authority
    tables
       objcont            = g_objcnt
       objhead            = g_objhead
       objpara            = g_objpara
       objparb            = g_objparb
       recipients         = g_receipients
       attachments        = g_attachments
       references         = g_references
       files              = g_files
      changing
        document           = g_document
       header_data        = g_header
    *   FOLMEM_DATA        =
    *   RECEIVE_DATA       =
    * File from the pc to send...
    method1 = 'ATTCREATEFROMPC'.
    g_files-text = ws_file.
    append g_files.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
      exporting
        method             = method1
       office_user        = g_owner
       ref_document       = g_ref_document
       new_parent         =  g_new_parent
    importing
       authority          =  g_authority
    tables
       objcont            = g_objcnt
       objhead            = g_objhead
       objpara            = g_objpara
       objparb            = g_objparb
       recipients         = g_receipients
       attachments        = g_attachments
       references         = g_references
       files              = g_files
      changing
        document           = g_document
       header_data        = g_header
    method1 = 'SEND'.
    g_receipients-recnam = 'MK085'.
    g_receipients-recesc = 'B'.
    g_receipients-sndex = 'X'.
    append  g_receipients.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
      exporting
        method             = method1
       office_user        = g_owner
       ref_document       = g_ref_document
       new_parent         =  g_new_parent
    importing
       authority          =  g_authority
    tables
       objcont            = g_objcnt
       objhead            = g_objhead
       objpara            = g_objpara
       objparb            = g_objparb
       recipients         = g_receipients
       attachments        = g_attachments
       references         = g_references
       files              = g_files
      changing
        document           = g_document
       header_data        = g_header.
    *-- End of Program  
    Hope this helps, Do reward.

  • Simple code to send ALV display as XLS attachment  to SAP inbox

    Hi All,
    Simple code to send ALV display as XLS attachment  to SAP inbox.
    Also i need to send only 200 records per attachement. So in this case i need send multiple attachment per mail
    Thanks,
    Lokesh

    The following code is used to send the internal table which u pass fo  the ALV display to be send as excel sheet attachment
    Internal table is it_attach[]
    ld_email               = po_email.
      ld_mtitle              = 'Email From Z377_EMAIL_XLS'.
      ld_format              = 'XLS'.
      ld_attdescription      = 'filename'.
      ld_attfilename         = 'Allot'.
      ld_sender_address      = ' '.
      ld_sender_address_type = ' '.
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
      ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    * Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE li_content LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    * Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    * Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
      EXPORTING
      document_data              = w_doc_data
      put_in_outbox              = 'X'
      sender_address             = ld_sender_address
      sender_address_type        = ld_sender_address_type
      commit_work                = 'X'
    *IMPORTING
    *sent_to_all                = w_sent_all
      TABLES
      packing_list               = t_packing_list
      contents_bin               = t_attachment
      contents_txt               = li_content
      receivers                  = t_receivers
      EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      document_type_not_exist    = 3
      operation_no_authorization = 4
      parameter_error            = 5
      x_error                    = 6
      enqueue_error              = 7
      OTHERS                     = 8.

  • Corrupt Data File Quicken 2007 for Mac (Lion)

    Bought QM 2007 for Mac (Lion compatible) and without touching my personal data file, opened a new file and immediately got the "...corrupt data in data file" message. I've tried everything I could find including: trashing the Quotes file, my old Quicken 2006 app, removing any 3vix files, intuit preferences, etc. Nothing helped. I then ran QM2007 on Snow Leopard with my old data file, and after trashing the Quotes file, it worked. So I saved this file and transfered it to my Lion machine, trashed the quotes file. Same error, ...data corrupted. Thinking it's my Lion machine, I opened it in Safe mode...no help. Created a new account...no help. Imported .qif file..no help. I've searched the Quicken forum...no help. I'm very desparate; anyone have any ideas?
    Mac OS X 10.7.5, Mac Pro (2012), Quicken 2007 for Mac (Lion) 16.1.4.

    Thanks, Baltwo. I'm convinced it's something about my Lion installation that's the cause, since others as yourself seem to be OK—although I haven't been able to run it down. The Quicken 2007 is a fresh installation, each time I try out a new approach, I reinstall the software. Now perhaps it's accumulating some ancillary file that doesn't get trashed, but I can't run that down. I did find something interesting in my systematic search for a cause, and that is that when i install it on my Snow Leopard machine, it works fine with a new, unpopulated data file. But if I re-index my Q 2006 file, trash my Quotes file, then import it into QM 2007, the "corrupt data error" comes up. So I know everything (the QM 2007-Lion) works in Snow Leopard without prior re-indexing the data file, just not in Lion. So I saved my data file that worked in the Snow Leopard version (so it's now a QM 2007-Lion file), try to open it on my Lion machine with a new QM 2007-Lion install, and the corrupt data error appears. As I said above, opening in Safe mode, creating a new account, running my disk through Disk Utility and fixing permissions, nothing has worked so far.
    So I bit the bullet and created a Snow Leopard virtual machine (Server version) with my Parallels, and it finally works, including downloading my investment, credit card, etc. accounts. Now I can move on with my taxes, but I'm still perplexed why Lion won't let me run it. I don't like my SL VM because Parallels won't permit coherence, so it's kind of kludgy.
    That's my story after many hours of troubleshooting. I hope this helps someone else with the same problem. Thanks for trying to help.

  • Remove 24gb of corrupt data after 8.1 update

    I have recently upgraded to iOS 8.1 on my iTouch. Now I have aver 20GB of corrupt data on it which prevents an synch from working and, although it shows as present, playing most of my music. HELP! smile. I've tried a restore. It goes through the process, asks me to update, and ends up with the same problem. Is there any way I can get my music back? The apps and everything else work fine. On summary it says I have 6.4 GB left but as soon as I start to synch it comes up with about 25 GB of 'other' data and cannot synch. Hope this is enough info.

    That worked! I had to restore my music library because someone else had suggested I remove it (saving the files). It wasn't too bad. Some of the apps aren't coming up right but everything else is working fine. I still have about 1.5 gb of OTHER. At one time it got up to 45 GB of OTHER. YIKES! Knew it was a corrupted file. Just didn't know the best way to get rid of it. Thanks for your help in working through this problem.

  • Windows Live Mail could not be started .... Your Calendar contains corrupt data .... ox8000fff

    I downloaded the Windows Live Essentials for Windows 7 running under Parallels 5.0.9310.  When I try to bring up Windows Live Mail I receive the error:
    Windows Live Mail could not be started.  Closing Windows Live Mail.  Your calendar contains corrupt data that is forcing Windows Live Mail to close.  (ox8000fff).
    I have:
    1.  Done a repair via control panel
    2.  Deinstalled just mail from the control panel, removed the registry entries for Windows Live Mail in hkey_current_user and hkey_local_machine.
    3.  Reinstalled just mail.
    Nothing seems to work.  I am still getting the error.

    Hi Caprichoso,
    Since it is to be more of Windows Live Mail issue, I kindly recommend you to contact Windows Live Mail Technical Support Team for a specific solution. Here I would like to share the following method based on my research:
    You can click Start, click Control Panel and click Clock, Language, and Region, click Date and Time, click Change time zone and uncheck the box in front of “Automatically adjust clock for Daylight Saving Time”, click OK twice.
    Best Regards
    Dale

  • Windows Live Mail could not be started. Closing Windows Live Mail. Your calendar contains corrupt data that is forcing Windows Live Mail to close. (0x8E5E0247

    Hi
    Can you please HELP??
    I recently had to change my hard drive for my laptop (Sony Vaio). The IT guy replaced my HDD and ghost all my information
    from old to new drive. Everything works perfect except for Windows Live Mail.
    When I open WLM I get this error:
    “Windows Live Mail could not be started. Closing Windows Live Mail. Your calendar contains corrupt data that is forcing
    Windows Live Mail to close. (0x8E5E0247)”
    I have since done the following:
    PROBLEM SOLUTION 1:
     1. Close Windows Live Mail and any other Windows Live programs.
     2. Click Start (then Run for
    Windows XP), paste the following path below and press Enter:
    %Localappdata%\Microsoft\Windows Live Mail\Calendars
    3. Rename the folder of the account you use to sign in to Windows Live Mail to
    sync your calendar (ex. rename [email protected] to [email protected]).
    4. Restart your computer for the changes to take effect.
     5. Launch Windows Live Mail again.
    THIS DID NOT WORK SO I DID THE FOLLOWING:
    PROBLEM SOLUTION 2:
    I removed WLM (uninstall) and reinstalled and still nothing.
    PROBLEM SOLUTION 3:
    I also renamed the WLM folder and reinstalled WLM, then deleted the new WLM folder and still nothing.
    PROBLEM SOLUTION 4:
    I also tried to import my emails from WLM to Microsoft Outlook but I only have a copy of my mails from the directory. 
    I do not have an EXPORT copy saved anywhere. Is there any way I can export the WLM to Microsoft outlook?
    PLEASE HELP I AM AT WITS END.

    I have had many problems with permissions on Windows Vista, 7,8 & 81.1.  It is usually after an update or installation, especially one that requires a reboot to finish (some AVG, Windows Live, Windows Updates, etc).  Once File(s), Folder(s)
    and Registry Key(s) permissions are screwed up, it can take days to work them out if ever.
    After having spent several hours on a clients PC and online forums with this problem.  I transferred her user profile with a free program called
    Transwiz (run as Administrator) to a zip file on the HDD.  I renamed her user in manage User Accounts to "Username old".  I then ran Transwiz again to restore the profile but telling it to create a new user using the original Username.
     After it completed restoring the profile, I logged out of "Username old" and logged in to Username and all wass well, I only needed to supply the email password which is not transferred.  When you move profile data, all the old permissions
    have to be removed and <st1:personname w:st="on">new</st1:personname> permissions added so the data and files belong to the <st1:personname w:st="on">new</st1:personname> user.  This cleared up all the permission
    problems.
    James Taylor

  • Using SO_NEW_DOCUMENT_ATT_SEND_API1 to send .xls attachment.

    Hi,
    I'm using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send xls attachements.
    All works fine, the only issue is that in the requirements the attachemnt should have fixed width columns.
    I think that is not possible, everyone have done that?
    If not there an alternative to the SO_NEW_DOCUMENT_ATT_SEND_API1?
    Thanks for answers.

    Hello,
    You can have the fixed width of the colums in excel (No additional spaces in the column) is you use, the seperator between the fields.
    For eg : If you are displaying 3 fields in the excel file, say MATNR, WERKS and QUANTITY.
    Then you need to
    Concatenate  matnr
                          werks
                          quantity
    into                ls_contents_bin-line
    separated by lc_tab.
    append ls_contents_bin to lt_contents_bin.
    Here lc_tab is the tab seperator to be declared as follows : -
    CONSTANTS : lc_tab         TYPE char01     VALUE  cl_abap_char_utilities=>horizontal_tab.
    The internal table lt_contents_bin is then passed to the table parameters contents_bin of the FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    Thanks.
    Regards,
    Rinkesh Doshi

  • How to get rid of other/corrupt data?

    My phone:  iPhone 4s, 16gb, newest IOS 8.1 (newest right now) / Newest iTunes on computer
    Multiple times now under IOS 8, I've attempted to sync my phone (only music) and suddenly 9+ gb of `other` data appear when I plug in my phone, which then deletes nearly all my music (which takes up about 8gb).  The red circle and square appear and I cannot play any songs.
    I`ve tried restoring to new, but I don`t want to lose all my texts/contacts/notes etc. so I always end up backing it up, only to get the same problem yet again.  This is the 4th time now and sometimes it ends up going away but this time it isn't and it has been weeks.
    When I check my data usage under my settings it says I have little to no space available, yet when I look at the division of the data between apps, my music is the highest at 750mb (the 100ish of my favourite songs i was able to squeeze into the space available), so i assume there is some sort of corrupt data I am unaware of.
    I've called apple help in the past which fixed the problem by playing with my itunes and icloud sign in settings.  It fixed the issue, only to have it return the next week when I synced it again.
    Has anyone else had this problem?  If so, what did you do to make it go back to normal?
    Also, is there a way to restore to new, but also keep all texts/contacts/notes?  As I can simply re download apps and sync my music from my computer.
    Thanks for the help!

    ca$hbury828 wrote:
    I`ve tried restoring to new, but I don`t want to lose all my texts/contacts/notes etc. so I always end up backing it up, only to get the same problem yet again.
    Yes, because you have corrupted data in your back up. As long as you keep loading from that corrupted back up, you'll have the same problem.
    Your notes and contacts should be synced to something (e.g. iCloud, Gmail, etc). If you restore the phone as new and resync, you shouldn't loose them. Texts are a bit tricker. I use PhoneView (Mac) to make archive PDFs of text messages I want to keep. TouchCopy works for Mac and Windows. There's no good way that I know of to reload the texts. However, they may be part of the problem so, you may be better off archiving them (you could always copy a PDF of the texts back to the phone) and starting fresh.
    Best of luck.

  • Computer is balky random freezes across apps. Two hard drive cleans later (their scan reveals no hard drive problems) photo shop won't work at all, magic touch mouse inoperable and their diagnoses is corrupted data? Anybody heard of this?

    Computer is balky random freezes across apps. Two hard drive cleans later (their scan reveals no hard drive problems) photo shop won't work at all, magic touch mouse inoperable and their diagnoses is corrupted data? Anybody heard of this?

    Well, yes, data does get corrupted sometimes.
    The trick is finding what data.
    By 'cleaned' are you therefor meaning that the drive has been erased and the system re-installed?
    Because that's the quickest way to deal with such a situation.
    Back up the system first of course,
    Add back 3rd party apps one at a time in case one of them is causing the problem.

  • How can i check for corrupt data

    I have a lot of machine embroidery designs stored on my imac and have reason to believe some may have corrupt data which is not evident when opening but has caused major damage to memory board in sewing machine. Is there anyway to scan for corrupt files?

    My wifes sewing machine is in for service and repair because a couple of designs in the memory have somehow become too big for the machine to open them so it is not possible to edit or delete them. I sent the designs to brother and their machines developed a problem as well so they had to change the memory board and they can only put it down to a corrupt file even though they can't prove it as virus scans show all clear and the designs work fine on the computer with the sewing software program. Our machine worked fine except for not being able to remove 3 designs. Brother said their machines version number changed and also couldn't remove the designs. I have read that if a file is corrupt, backup software will detect it but again no problem there. I have sent the suspect designs to someone in the US who is going to access the design and see if they can find anything but at the moment I can't get any answers because its never happened before. Any ideas would be greatly appreciated.
    Regards
    Dennis

  • Error while saving general customer data....Help needed...!!!

    Hi all,
    I am testing peoplesoft 9.0 version for an upgrade project. When i try to save the general customer information using Home>Customer>generalinformation . i got the following error. *"Invalid parameter 1 for function currentrownumber (2.116) TABLENAME.FIELDNAME.savePostChange*"* . this is custom people code in a custom table. plz help me to solve this.

    One reason could be that the blocks that you are trying to save are locked either through excel-addin or someone else might be updating the same combinations. I have encountered such issues earlier and got the same error. Check if there are any locks in essbase while you are saving the planning data.

Maybe you are looking for

  • 64 bit installation in Lightroom 2 for MAC

    The readme file that came with Lightroom 2 for MAC states: "Mac: Lightroom 2 is a 32-bit application by default. For customers using OS X 10.5 on an Intel-based computer, Lightroom 2.0 can be used as a 64-bit application by selecting Adobe Lightroom

  • Trouble with Word Mole app

    Disappointed to find that Word Mole doesn't work properly on my new BB Bold 9790.  This is the second handset within  two weeks as it didn't work on that one either!  Worked fine on my old 9700. What happens is the cursor disappears every five levels

  • Help! I can't open kdesvn handbook.

    I have tried rapidsvn but I like kdesvn more. but I can't read the kdesvn handbook, because .... I meet error message below: Could not launch kde help center: Could not find service 'khelpcenter' my window manager is xfce4.4,  and I have already inst

  • Function Module Production order created via Variant Configuration conditio

    Hi, I am looking for a function module which can provide me with the following information. the component selected in  a production order and the corresponding VC condition which forced this selection in the production order. Any help appreciated. Th

  • How can I save "faces" when exporting a library?

    Trying to use more libraries but when I export most of the discription moved but none of the faces did.  Is there a way to move faces so I do not have to go throught the whole process again?