Excel COMException : 0x800A03EC Document not saved.

Hello,
I am using Interop.Excel in my WinForms application. The application is used to copy some sheets from one workbook to newly created one.
The newly created workbook is saved when I don't copy shapes. But, when I copy shapes into newly created sheet, the workbook is not saved and COMException is raised with message "Document not saved".
Scenario :
I am working with three workbooks simultaneously. 
MainWorkbook - this workbook contains data to be written into new workbook.
ResourceWorkbook - this contains sheets that are copied into new workbook.
OutputWorkbook - this is the result workbook.
Step 1: Open MainWorkbook. Get data to write in OutputWorkbook.
Step 2: Write data into OutputWorkbook.
Step 3: Open ResourceWorkbook from resource file for copying the sheets.
Step 4: Copy sheets from ResourceWorkbook into OutputWorkbook.
Step 5: Save OutputWorkbook.
In step 5, if there are no sheets with images copied in step 4, then the OutputWorkbook is saved. But, if there are sheets containing images, the OutputWorkbook is not saved.
I am using VS2010 and MS Office 2010.

Hi,
According to the description, the issue seems that relative to the specific worksheet which containd shapes.
I am trying to reproduce this issue in Excel 2010 using VBA, howerever it failed. Here is the test sample which set write the value to the Book2 and copy the worksheet contained shapes from Book1 to Book2:
Sub CopySheet()
Application.Workbooks("Book2.xlsx").Worksheets("Sheet1").Range("A1") = "Hello Word!"
Worksheets("Sheet1").Copy Application.Workbooks("Book2.xlsx").Worksheets("Sheet1")
Application.Workbooks("Book2.xlsx").Save
End Sub
Could you reproduce the issue with code above? If not, a sample worksheet and code snippet to help us reproduce this issue is much appericate.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Windows 7 (64bit) & Office 2010 (32bit) Excel 'Document not saved' over WAN to network drive

    Hi All
    We are currently in the process of upgrading all PC's on our WAN to windows 7 across multiple locations
    I know this has been asked numerous times but nothing is working for me.
    We are experiencing the dreaded 'Document not saved' error at only some locations (5 or 6 out of 200 for all users, these sites generally have slow network connections) when trying to save to a network share back at our HQ. it creates a .tmp file and leaves
    the original document intact but without the changes, changing the name of the document in save as doesn't work. saving locally and copying to the share works. We can save locally and to other onsite network shares. It constantly happens so the document can
    never be saved to that network share.
    Always worked on XP SP3 with Office 2010.
    the files in question are around 4mb. smaller excel files with no contenct do work.
    I have tried literally everything listed on all forums and nothing seems to resolve it...I've tried
    - the hotfix - doesn't apply to my enviroment and the offending KB aren't installed.
    - the network resiliency, pivot table network resiliency and Enable simply copy for UNC registry keys
    - disabling offline folders, windows search and indexing
    - disabling SMB2 on the client
    - turning off QOS on the IP4 settings.
    - trusted documents.
    event log gives
    Log Name:      OAlerts
    Source:        Microsoft Office 14 Alerts
    Date:          28/03/2014 18:47:23
    Event ID:      300
    Task Category: None
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Description:
    Microsoft Excel
    Document not saved.
    P1: 100490
    P2: 14.0.7015.1000
    P3: xsmh
    P4: 0x80070040
    and numerous other things.
    My guess is me the issue points to Excel loosing connection to the network share when saving and then the .tmp becoming corrupt.
    Does any one have any ideas? Is there a way to sure the connection when saving? is there a way to force it to stay connected?
    any help highly appreciated.
    Thanks

    Hello, We've been having this same issue, and I think we have a work-around.
    If we change HKLM\System\CurrentControlSet\services\LanmanWorkstation\Parameters\RequireSecuritySignature from "0" to "1" we still get the error message but the tmp file is NOT created. If the user tries to save again, it is then successful.

  • Document not saved in excel

    Hi
    I have been trying to save a already existing excel document (Microsoft 11) however now getting a message saying "Document Not Saved" I have already tried Saving as and in another location
    What could be the problem and/or solution
    Thank you in advance
    Sam

    http://answers.microsoft.com/en-us/mac/forum/macexcel?tab=QnA

  • "Document Not Saved" Microsoft Excel 2010 SP1

    We have a remote office which has a 2mb WAN link, The users in the remote office have a variety of Office installs from 2003 to 2010 SP1.
    When attempting to open an excel file over the WAN link (The file is on our main shared drive in Sydney) they can open and edit the document however when it comes to saving they receive "Document not saved" and the original document is gone and a .tmp file
    remains where the original file was on the network drive/shared folder.
    If they then hit save a second time it saves correctly and the document is in the correct .xls format.
    The excel files do have some funky tables etc in them and are a few mb's in size, however we have the same issue with a new excel document with only one word written in it.
    Does anyone know what would be causing this issue?
    We have tried added NetworkResiliency and PivotTableNetworkResiliency as per http://support.microsoft.com/kb/291204.
    We have tried removing certain hot fixes from Microsoft as mentioned in http://support.microsoft.com/kb/983458.
    We added the share to be a trusted site.
    There are no errors in Event Viewer. 
    I have found another few threads on similar issues with no fix:
    http://social.technet.microsoft.com/Forums/en-US/office2010/thread/f559b061-b98f-4b33-ab8a-d1a41d2e8cb8/
    http://social.technet.microsoft.com/Forums/en-US/officeappcompat/thread/4af962a0-d883-4e82-8995-7eb766d6c720
    We do have a RiverBed at the remote office and one at the site in Sydney which is for network optimization. On the RiverBed with have all CIFS ports added and QoS marking done so it should be optimized.
    Any assistance with how to fix this annoying issue would be greatly appreciated.
    Thanks

    We're having the same exact issue in our office where we just installed a new Riverbed Steelhead as well... only happening in that office as well...User opens a document on a network share that the rest of the company works from day to day, they save 10
    or 20 minutes later and BAM... "There has been a network or file permissions error. The network connection may be lost", then a non-hidden *.tmp file is then created in the same network directory as the actual file and the original file doesn't get
    written to, you click [OK] on the error and then try to save again and it magically works...and you're left with a messy TMP file as well in the directory now. I doubt it's related to antivirus, definitely not firewall, reinstalling/repairing office and tweaking
    settings doesn't help, I agree it has nothing to do with locking files or read-only files as they're plain old word docs and excel files...MAYBE it has to do with the Riverbed WANOP appliance but either way... don't you love how this thread just randomly died
    with no solutions? :'(   Thanks Micro$oft ;)
    {Edit} Oh! And one last thing...this MIGHT help steer someone in the right direction in the future... there could be a problem related to your network filer such as a NetApp appliance, EMC, Netgear etc where there is an SMB version mis-match or a bug of some
    kind requiring you to apply a patch your storage device in order to fix this type of issue.

  • Office 2010, Excel - Document not saved

    Hello.
    I've got a computer in my work that have randomly have "Document not saved" when trying to save excel files on the local network. In periods It happen everytime she' tryin to save, but It most happen like now and then.
    She had the same problem when having Office 2007. I'd hope It was a Office 2007 issue, but when upgraded to Office 2010 It happens often as before.
    I've have been tryin some hotfixes and some other tricks for Office 2007.
    Computer: HP Elitebook 6930p with Windows 7 enterprise x86, office 2010 Pro

    Hi,
    There is a KB article taking about the problem when saving Excel files to network location. Please check if it helps:
    You receive an error message when you save a file after the network connection is lost in Excel
    http://support.microsoft.com/kb/291204
    If the problem persists, you can also troubleshoot the issue by the suggestions here:
    How to troubleshoot errors when you save Excel files
    http://support.microsoft.com/kb/271513
    Hope it helps.
    Best Regards,
    Sally Tang

  • Error "document not saved" when want to save Word/Excel files on NAS server

    Hello everybody!
    I have a NAS server (QNAP storage).I want to have some folders with these permissions : 
    1.nobody can create or delete folders in first parent folders (blue folder and red folders )
    2.everybody can create/save folders,docs... in it. (Black folders)
    when I set permission like picture below,people can not save documents in Excel or Word format in folders ( I have this problem just for Word and Excel).they face with errors : document not saved / access denied,contact your administrator.
    special permission for blue folder (domain users) 
    (include inheritable permission) and (replace all child subfolders...) are unchecked.
    traverse / execute files
    List folders/ read data
    Read attribiutes
    Read extended attribiutes
    Read permission
    special permission for red folder :
    (include inheritable permission) and (replace all child subfolders...) are unchecked.
    traverse / execute files
    List folders/ read data
    Read attribiutes
    Read extended attribiutes
    create files / write data
    create folders / append data
    write attributes
    write extended attributes
    delete subfolders
    delete
    Read permission
    special permission for black folder :
    these folders inherit permissions from parents.
    (include inheritable permission is checked.
    (replace all child subfolders...) is unchecked.
    when I uncheck "delete" permission in red folders and save it,"modify" permission in main permission will uncheck,too.I dont know why?in this situation,people can save docs, but they can rename/delete folders,too ( I dont want they delete
    or rename parent folders).
    what I must do?
    regards,
    atiye moghaddam

    Hi.
    How are the rights configured to be inherited? Could you do a "icacls <folder>" on each level and post it back.
    Also worth considering is that this is a Linux Samba system, so it might not work as a regular windows system.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. Even if you are not the author of a thread you can always help others by voting as Helpful. This can
    be beneficial to other community members reading the thread.
    Oscar Virot

  • Save as failed to process. document not saved

    Save as failed to process. document not saved. This is the error message i get when trying export pdf document to word. I only just upgraded window to 8 pro from windows 7.
    Any suggestions?
    Thanks

    What version of Acrobat. That might be the problem.

  • Document not saved

    When i use exel and add a comment to a cell "Document not saved" some times comes up. To get past this i have to delete the coment and re do it, it then some times saves. I dont know what I am doing wronge and what I am doing right because it does some times save.
    Thanks. Lewis

    Hi.
    Thanks for answering.
    Its version 14.0.0

  • CRM_ORDER_SAVE document not saved

    Hi All,
    I have created a custom report and have used CRM_ORDER_SAVE in my report program. But the problem is that when I execute this program in our production environment, I do not get the required results and the exception is raised as "document not saved". This works fine in the development environment and quality system. But fails in production and not commiting.
    Please suggest what can be the root cause of this problem and how shall i correct it.
    Here is the code ::
        CALL FUNCTION 'CRM_ORDER_SAVE'
          EXPORTING
            it_objects_to_save = guids
          EXCEPTIONS
            document_not_saved = 1
            OTHERS             = 2.
        IF sy-subrc <> 0.
        ELSE.
          COMMIT WORK AND WAIT.
    ENDIF.

    Hi,
    After calling the CRM_ORDER_SAVE, you need to call the following function module in the proper order to make the save successful and to initialize the order.
    1. BAPI_TRANSACTION_COMMIT
    2. CRM_ORDER_INITIALIZE
    If you need to look in the code base, then put a debug point in the function module CRM_ORDER_MAINTAIN and have a look at all the import parameters and order of the function modules.
    Hope this will help.
    Thanks,
    Samantak.

  • Share microsoft office documents not saving on all users

    Set up new user account for my wife
    shared my "desktop" where regular microsoft excel and word documents we use are saved
    Wife's account can access documents and save, but when testing and i try on my user, the file alterations have not been done.
    I log back into wife's account, open file, changes are there as previously saved, it's not being reflected on my user.
    Permissions set to read+write
    I tried a normal text document on my wife's account, saved it onto shared desktop, opened it from my user and that was fine.
    Please help

    Set up new user account for my wife
    shared my "desktop" where regular microsoft excel and word documents we use are saved
    Wife's account can access documents and save, but when testing and i try on my user, the file alterations have not been done.
    I log back into wife's account, open file, changes are there as previously saved, it's not being reflected on my user.
    Permissions set to read+write
    I tried a normal text document on my wife's account, saved it onto shared desktop, opened it from my user and that was fine.
    Please help

  • Document not saving data

    Hi,
    as I already mentioned here:
    http://forums.adobe.com/thread/432254?tstart=0
      I hope somebody here will know. The form is not saving it´s data  in the process. I fill the form in the Assign task in the Workspace, but after submitting it, it´s empty.
    I am exporting the log, but the (correct from the schema) xml is empty (no data). Data connection is ok.
    Thanks for ANYsuggestions.
    Lukas

    Can you try to use a Document Form variable instead of a document variable.
    You can set the @document attribute  of the Document Form with your PDF using the following xPath /process_data/myDocForm/object/document = yourdocvar.
    Then use that Document Form varibale for you input and ouput data mapping.
    Jasmin

  • Excel .xlsx "document not saved"

    I have migrated a workbook from Microsoft excel 2010 to my new iMac. I have made several updates. It is now giving the above message.
    I have looked at Help which says the .xlsx extn is fine. I have tried saving a copy but it still gives the same message.
    What do I do please?
    Thank you

    I guess I must be!! It came with the Microsoft Office  for iMac installed when I bought in around April 2013.

  • Changes to Excel link sources are not saved after closing the workbook

    We've had several instances over the last few weeks where users are updating the source files for various links within a spreadsheet, saving their changes and closing the file. Then, next time another user goes into the file, the links have reverted back
    to their previous values, as if the first user never went in and changed them.
    Anyone ever hear of such a thing? The user changing the links is running Excel 2013. The user opening the file for review is using Excel 2010. Could there be some issue there?
    Shaun

    Hi,
    According to your description, let us more test to narrow down this issue.
    Firstly, since the three users using different pc to open these file, I recommend the third user logon the other two PC with Excel 2013 to test.
    If third user could see the well file with Excel 2013, this issue is more relate to Excel 2010 or the third PC itself.
    Secondly, we could use the forth pc with Excel 2010 to test. If third user could see the well file in the forth pc with Excel 2010.
    I'd better check the third PC itself. There are some third party add-ins or program will caused it. Try following methods:
    Install the Windows and Office 2010 update patches.
    Start with Excel safe mode.
    If it still not work well with Excel 2010, there might be some compatibility issue between Excel 2010 and Excel 2013. Please try to run
    the Compatibility Checker for 2010
    Hope it's helpful.
    Regards,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • Check Boxes in Excel Wookbook 97-2003 Not Saving Correctly in 2010

    Hello and Thank You for Your Time,
    We have a large number of workbooks with selection / check boxes that were originally save in the .xls (97-2003) format.  
    The reasoning for saving in this format is that we have a large organization with a number of different computers running different versions of Office products.
    When these .xls files are opened in 2010 and then "re-saved", the text boxes lose their positioning and the fields become overlapped.
    How do we avoid this, or what exactly is happening ?
    Thank You

    Hi,
    When you say "re-saved", do you mean save the workbooks to the current file format?
    Convert a workbook (Excel 97-2003) to new file format (from .xls to .xlsx) will cause compatibility issues, and it will cause a significant loss of functionality or a minor loss of fidelity in an earlier version of Excel as .xlsx format is XML-based
    file format, whereas .xls is a binary file format.
    I would suggest you to keep working on Compatibility Mode instead of resaving these files to .xlsx files.
    Hope this helps.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support

  • Excel not saving

    When i use Excel and add a comment to a cell "Document not saved" some times comes up. To get past this i have to delete the coment and re do it, it then some times saves. I dont know what I am doing wrong and what I am doing right because it does some times save.
    Thanks. Lewis

    Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive & clear caches.)

Maybe you are looking for

  • Problem with alv output export to text file

    hi experts, when iam exporting alv output to text file, some data is missing in text file.say for example sold-to-party value is 1155027 in alv out put,but in text file it is showeing only 115502 , the last digit is missing, can anyone help urgent!!!

  • Dreamweaver 4 no longer working after downloading files created with MX

    I downloaded files that were created with Dreamweaver MX to my pc in order to update them for a new client. I've been using Dreamweaver 4 and now I cannot even open Dreamweaver 4. Luckily I also have Dreamweaver 8 installed and can view all the files

  • Screen Saver "The selected folder contains no pictures"

    Hello, I recently had my HD replaced on my IBook after thermal damage took out the old one, and the good Apple Store folks recovered and replaces the date from the old fwinky drive. However, tweaking the configuration back into place, I noticed that

  • Error in data transfer process

    Hi,    Can any one tell me whats the cause of error coming in DTP's process and that too in HEADER tab?It shows red in technical status although data is loaded in the target. Regards, Sanyukta

  • How do I exclude a folder in the 'Root Folders for Search (csv)' field?

    Problem: I have a folder structure as shown below. A |-----b |-----c |-----d |-----more folders may be added later. I have three folders b,c and d under 'folder A'.More folders may be added later on. How can I specify all folders under 'folder A' exc