If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Repair Error in Model that was saved from 2003 to 2007

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-11, 10:18
rich8008 rich8008 is offline
Registered User
 
Join Date: Jan 2006
Posts: 47
Repair Error in Model that was saved from 2003 to 2007

I received a "Repair" error in a Excel 2007 Model that was originally in Excel 2003 that I just Saved As.

The repair list a bunch of sheets and and has an xml extension. It looking further it turns out the "Repairs" are to overwrite a formula with its value. We found a Hot Fix from 2008 (kb954894) that reference this but it doesn't seem to completely handle the issue.

Does anyone have any insight on what causes the formulas to be overwritten, how to find the ones that were and how to prevent this in the future?
Reply With Quote
  #2 (permalink)  
Old 03-04-11, 11:29
rich8008 rich8008 is offline
Registered User
 
Join Date: Jan 2006
Posts: 47
Here is the specific Error.

We were able to get the "error" to happen again. See below:

"Excel found unreadable content in 'File.xls'. Do you want to recover the contents of this workbook? If you trus the source of this workbook, click Yes."

It also has an log of what was "repaired". See below:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<logFileName>error016600_01.xml</logFileName>
<summary>Errors were detected in file 'File.xlsx'</summary>
- <removedRecords summary="Following is a list of removed records:">
<removedRecord>Removed Records: Shared formula from /xl/worksheets/sheet1.xml part</removedRecord>
<removedRecord>Removed Records: Shared formula from /xl/worksheets/sheet81.xml part</removedRecord>
<removedRecord>Removed Records: Shared formula from /xl/worksheets/sheet99.xml part</removedRecord>
<removedRecord>Removed Records: Formula from /xl/calcChain.xml part (Calculation properties)</removedRecord>
</removedRecords>
</recoveryLog>
Reply With Quote
  #3 (permalink)  
Old 03-21-11, 17:29
rich8008 rich8008 is offline
Registered User
 
Join Date: Jan 2006
Posts: 47
What we have figured out so far...

So far this is what we have figured out. Anything else anyone has come accross would still be appreciated as it doesn't look like a problem that is going away.

The "Repaired" Sheets listed in the "Log" are in literal order and not by actual sheet name when viewed in VB Editor.

As mentioned, the repairs overwrite the formulas with a hard code value. To find these we select the areas that should only be formulas and then use "Go To Constants" (Ctrl-G > Special > Constants) which isn't very creative but has been helping.

Beyond this we are still lost as to why it happens and how to prevent it.
Reply With Quote
  #4 (permalink)  
Old 03-21-11, 19:11
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Can you give us an example of one of the formulas which was overwritten by a constant? The log says the formulas are shared, so I assume they are array formulas which span several cells?
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #5 (permalink)  
Old 03-22-11, 11:56
rich8008 rich8008 is offline
Registered User
 
Join Date: Jan 2006
Posts: 47
Examples of Formulas

Below are some of the Formulas that were overwritten.

=DATE(YEAR(AC7),MONTH(AC7)+1,1) where AC7 is hard coded date
=IF(Q21=0,1,AC21/Q21) references a cell which references data from another sheet
=AD210 references a cell which references data from another sheet

All the data is contained in the Workbook with no external links but I am copying and pasting values from other Workbooks into this one.

Thank you!
Reply With Quote
  #6 (permalink)  
Old 03-22-11, 17:41
rich8008 rich8008 is offline
Registered User
 
Join Date: Jan 2006
Posts: 47
Full Calc Rebuild

We are also running a Full Calc Rebuild using VBA on the file. This could have something to do with it but it doesn't always happen so it could just be a coincedence.
Reply With Quote
  #7 (permalink)  
Old 03-22-11, 18:33
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
If the file does not contain sensitive data, would you zip and attach the .xls (containing all formulas) to the thread? I could then try opening and saving it as .xlsx in Excel 2007 and Excel 2010 to see if I can get the same error as you?
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #8 (permalink)  
Old 03-23-11, 10:11
rich8008 rich8008 is offline
Registered User
 
Join Date: Jan 2006
Posts: 47
File

The file does contain sensitive data so I wouldn't be able to add it. It is also difficult to "replicate" as it doesn't always happen. It does seem to happen more often for one of my team members then for me but I am not sure what the difference is.

I appreciate the interest. Thank you.
Reply With Quote
  #9 (permalink)  
Old 03-23-11, 20:34
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hi Rich

I remember reading a thread on another forum where a user experienced this because they had undocked/redocked their laptop while the file was open. This shows that there could be "non Excel" factors at play which makes problem shooting it (especially from where I'm sitting!) quite tricky. Until a more distinct pattern emerges, the only suggestion I have is to ensure that all users have the latest Office updates installed (which it sounds like you have).

The formulas you posted look very straightforward (no ATP functions etc), so I can't see a problem with them. You were saving the file as an xlsx which implies to me that there is no VBA in the workbook - so again, this can't be the cause of the issue.
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #10 (permalink)  
Old 03-25-11, 09:42
rich8008 rich8008 is offline
Registered User
 
Join Date: Jan 2006
Posts: 47
Thank you!

Thank you Colin! I was hoping it wasn't something like that but it does seem to be. I appreciate you assitance!
Reply With Quote
  #11 (permalink)  
Old 04-29-11, 12:25
rich8008 rich8008 is offline
Registered User
 
Join Date: Jan 2006
Posts: 47
Copying or Moving Worksheets

While continuing with this issue, one pattern has emerged. It seems that Moving and/or Copying Worksheets in and out of the Workbook increases that chances of the file Corrupting.

I have managed this by using copy and paste or creating from scratch when I need to incorporate a new worksheet.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On