Home

Open in Excel from Teams - Error: File Corrupt

%3CLINGO-SUB%20id%3D%22lingo-sub-201350%22%20slang%3D%22en-US%22%3EOpen%20in%20Excel%20from%20Teams%20-%20Error%3A%20File%20Corrupt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201350%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20a%20long-standing%20issue%20that%20is%20manifesting%20itself%20via%20Teams%20much%20more%20frequently.%26nbsp%3B%20I%20have%20found%20a%20ton%20of%20info%20online%20related%20to%20the%20opening%20of%20Excel%20files%20from%20Network%20locations%2C%20and%20have%20tried%20everything%20I%20can%20get%20my%20hands%20on%20to%20no%20avail.%3CBR%20%2F%3E%3CBR%20%2F%3EScenario%3A%26nbsp%3B%20Excel%20Spreadsheets%20in%20the%20FILE%20folder%20of%20Teams.%3CBR%20%2F%3EUser%20has%20a%20file%20called%20May%20Metrics.%26nbsp%3B%20They%20need%20to%20create%20June%20Metrics.%26nbsp%3B%20So%20they%20open%20May%20Metrics%20and%20make%20all%20the%20changes%20necessary%20inputting%20the%20new%20metrics.%26nbsp%3B%20Then%20they%20save%20it%20as%20JUNE%20METRICS.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ENow%20when%20another%20user%20tries%20to%20open%20that%20file%2C%20it%20will%20say%20that%20it%20is%20corrupt%2C%20try%20to%20repair%2C%20and%20fail%20because%20it%20cannot%20find%20the%20file%20in%20%25appdata%25%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20this%20point%2C%20the%20user%20can%20save%20the%20file%20locally%2C%20open%20it%20as%20expected%2C%20then%20upload%20it%20back%20to%20Teams.%26nbsp%3B%20Not%20acceptable%20to%20the%20users%20as%20it%20adds%20a%20significant%20amount%20of%20time%20and%20steps%20to%20the%20workflow.%26nbsp%3B%26nbsp%3B%20This%20DID%20occasionally%20happen%20to%20the%20users%20when%20using%20a%20file%20share%20as%20well%2C%20and%20the%20same%20workaround%20was%20used.%26nbsp%3B%20Copy%20locally%2C%20then%20move%20back.%26nbsp%3B%20However%2C%20that%20workaround%20was%20a%20tad%20easier%20and%20quicker%20when%20using%20a%20file%20share.%26nbsp%3B%20Not%20being%20able%20to%20drag%20and%20drop%20from%20Teams%20makes%20that%20more%20cumbersome.%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20appears%20that%20if%20they%20FIRST%20make%20a%20copy%20of%20the%20MAY%20METRICS%2C%20rename%20it%20to%20JUNE%20METRICS%20and%20then%20edit%20the%20copy%2C%20it%20will%20work.%26nbsp%3B%20That%20is%20rather%20confusing%20to%20me%2C%20but%20it%20does%20seem%20to%20be%20a%20workaround.%3CBR%20%2F%3E%3CBR%20%2F%3ESolving%20the%20root%20problem%20is%20really%20what%20I%20would%20like%20to%20do.%26nbsp%3B%20It%20just%20so%20happens%20that%20Teams%20makes%20the%20problem%20show%20up%20more%20frequently.%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20it%20seems%20apparent%20that%20this%20only%20comes%20into%20play%20when%20a%20file%20is%20NOT%20local.%26nbsp%3B%20Searching%20reveals%20a%20number%20of%20reasons%20for%20that.%26nbsp%3B%20Many%20talk%20about%20turning%20OFF%20the%20DDE%2C%20and%20going%20to%20the%20Trust%20Center%20and%20UNCHECKING%20the%20three%20Protected%20View%20settings%20(all%20seemingly%20counterproductive).%3CBR%20%2F%3E%3CBR%20%2F%3EI've%20seen%20the%20suggestions%20to%20go%20to%20Trust%20Center%20and%20turn%20off%20all%20the%20File%20Block%20Settings%20as%20well%20(again%2C%20counterproductive).%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E-%20The%20URL%20is%20added%20to%20the%20Trusted%20Zone.%26nbsp%3B%3C%2FP%3E%3CP%3E-%20I%20tried%20adding%20the%20URL%20to%20Trusted%20Locations%20(including%20subfolders)%20in%20Excel.%3C%2FP%3E%3CP%3E-%20Checked%20the%20%22Allow%20Trusted%20Locations%20on%20my%20network%20(which%20is%20not%20recommended)%3C%2FP%3E%3CP%3E-%20Turned%20off%20DDE%3C%2FP%3E%3CP%3E-%20Turned%20off%20the%20three%20Protected%20Views%20within%20Excel%3CBR%20%2F%3E%3CBR%20%2F%3ENOTES%3A%26nbsp%3B%20We%20can%20save%20the%20file%20locally%2C%20and%20it%20will%20open...but%20that%20isn't%20very%20efficient%20in%20our%20environment%20because%20they%20then%20have%20to%20upload%20it%20BACK%20to%20Teams%20(or%20OneDrive%2C%20or%20SharePoint%2C%20or%20Network%20Share)%20when%20they%20are%20done.%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20seems%20as%20if%20we%20CAN%20open%20it%20from%20Excel%20as%20opposed%20to%20clicking%20on%20the%20file%20itself.%26nbsp%3B%20Again...silly%2C%20but%20it%20does%20seem%20to%20work%20a%20lot%20of%20the%20time.%26nbsp%3B%20You%20have%20to%20then%20go%20through%20some%20dialogue%20boxes%20about%20links%20to%20other%20files%20in%20locations%20it%20cannot%20reach%2C%20but%20ultimately%2C%20you%20can%20get%20the%20file%20open.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20files%20are%20clearly%20NOT%20CORRUPT.%26nbsp%3B%20Maybe%20it%20has%20to%20do%20with%20the%20way%20users%20are%20making%20edits%20in%20some%20way%20that%20references%20a%20local%20location.%26nbsp%3B%20I%20can't%20really%20tell%20for%20sure%20because%20I%20am%20not%20an%20Excel%20Guru.%3CBR%20%2F%3E%3CBR%20%2F%3EWhat%20I%20do%20know%20is%20that%20the%20user%20expectation%20is%20that%20they%20should%20be%20able%20to%20click%20on%20a%20file%20and%20start%20working%20on%20it%20without%20having%20to%20jump%20through%20eleventy-billion%20hoops.%3CBR%20%2F%3E%3CBR%20%2F%3EHas%20anyone%20else%20had%20trouble%20opening%20Excel%20files%20from%20Teams%3F%26nbsp%3B%20I%20can't%20imagine%20we%20are%20the%20only%20ones%20considering%20how%20many%20people%20online%20seem%20to%20experience%20similar%20issues%20with%20Excel%20files%20in%20Network%20locations.%3CBR%20%2F%3E%3CBR%20%2F%3ELastly%2C%20the%20problem%20is%20happening%20to%202013%20and%202016%20users.%26nbsp%3B%20The%20only%20real%20difference%20there%20appears%20to%20be%20that%20each%20version%20provides%20slightly%20different%20dialogue%20when%20the%20file%20opens.%3CBR%20%2F%3E%3CBR%20%2F%3EThoughts%3F%26nbsp%3B%20Ideas%3F%26nbsp%3B%20Job%20references%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-201350%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-202185%22%20slang%3D%22en-US%22%3ERe%3A%20Open%20in%20Excel%20from%20Teams%20-%20Error%3A%20File%20Corrupt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-202185%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Todd!%3C%2FP%3E%3CP%3EI've%20experienced%20many%20of%20similar%20issues%20as%20you%20describe%20and%20a%20tip%20based%20on%20my%20experience%20with%20Excel%20is%20that%20if%20the%20files%20contain%20calculations%20or%20links%20to%20other%20files%2C%20you%20should%20use%20the%20Excel%20client%20instead%20of%20excel%20online.%20Therefore%2C%20when%20you%20are%20in%20the%20teams%20%22Files%20tab%22%2C%20select%20%22Open%20in%20Excel%22%20instead%20of%20just%20click%20on%20the%20file%20to%20open%20it%20(which%20will%20open%20it%20in%20Excel%20online).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-933959%22%20slang%3D%22en-US%22%3ERe%3A%20Open%20in%20Excel%20from%20Teams%20-%20Error%3A%20File%20Corrupt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-933959%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F146938%22%20target%3D%22_blank%22%3E%40Todd%20Purifoy%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20have%20any%20backup%20policy%20in%20your%20dept%3F%20If%20yes%20then%2C%20you%20can%20check%20the%20backup%20folder.%3CBR%20%2F%3E%3CBR%20%2F%3EAlways%20try%20to%20use%20save%20as%20option%20instead%20of%20Save%20when%20you%20perform%20any%20changes%20in%20the%20file%20or%20create%20a%20copy%20of%20it%20before%20performing%20any%20action.%20In%20my%20office%2C%20we%20also%20faced%20an%20issue%20related%20to%20Excel%20file%20corruption.%20We%20have%20a%20file%20on%20a%20shared%20network.%20The%20access%20of%20that%20file%20distributed%20to%2010%20people.%20One%20day%20I%20got%20file%20extension%20error%20i.e.%20file%20extension%20is%20not%20valid%20Bla%20bla%20bla.%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20you%20have%20mentioned%2C%20I%20tried%20different%20solutions%20to%20handle%20it%2C%20but%20no%20one%20worked%20for%20me.%20My%20friend%20suggested%20to%20try%20Excel%20repair%20software%2C%20and%20luckily%2C%20I%20got%20the%20software%20on%20the%20giveaway%20website.%20I%20downloaded%20it%20and%20repaired%20my%20file.%20The%20software%20name%20is%20Stellar%20Excel%20Repair%2C%20and%20It%20is%20a%20paid%20tool%20(%2439)(luckily%20I%20got%20it%20on%20giveawayoftheday).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1112537%22%20slang%3D%22en-US%22%3ERe%3A%20Open%20in%20Excel%20from%20Teams%20-%20Error%3A%20File%20Corrupt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112537%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F146938%22%20target%3D%22_blank%22%3E%40Todd%20Purifoy%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Todd%2C%3C%2FP%3E%3CP%3EDid%20you%20get%20a%20resolution%20to%20your%20problem%20below.%20I%20am%20having%20an%20ongoing%20problem%20with%20file%20corruption%20and%20teams.%20The%20following%20is%20the%20situation%3A-%3C%2FP%3E%3CP%3E1)%20I%20have%20developed%20a%20system%20where%20an%20Excel%20file%20hosts%20a%20set%20of%20VBA%20routines.%20Triggering%20these%20routines%20causes%20files%20to%20be%20loaded%20or%20created%2C%20processed%20and%20saved.%3C%2FP%3E%3CP%3E2)%20For%20a%20considerable%20time%20I%20based%20the%20whole%20directory%20structure%20in%20a%20OneDrive%20account%20and%20it%20worked%20perfectly.%20I%20wanted%20to%20move%20to%20Teams%20so%20as%20the%20make%20the%20files%20more%20easily%20available%20to%20the%20various%20users%20(distributed%20globally).%20Moving%20the%20whole%20file%20structure%20to%20Teams%20was%20easy.%3C%2FP%3E%3CP%3E3)%20However%2C%20after%20loading%20an%20Excel%20workbook%20within%20this%20environment%2C%20I%20now%20occasionally%20experience%20a%20total%20Excel%20crash%20i.e.%20it%20just%20turns%20off%20and%20then%20reloads.%20Excel%20now%20tells%20me%20that%20the%20file%20is%20corrupt%20and%20cannot%20be%20repaired.%20If%20I%20download%20the%20file%2C%20send%20it%20to%20a%20colleague%20who%20loads%20and%20renames%20it%20and%20sends%20it%20back%20to%20me%2C%20the%20file%20is%20fine.%3C%2FP%3E%3CP%3E4)%20If%20I%20delete%20the%20original%20(i.e%20supposedly%20corrupted%20file)%20in%20Teams%20and%20upload%20the%20file%20returned%20by%20my%20colleague%20with%20the%20new%20name%20into%20Teams%2C%20it%20runs%20fine.%3C%2FP%3E%3CP%3E5)%20If%2C%20however%2C%20I%20rename%20the%20uploaded%20file%20to%20the%20original%20filename%20and%20attempt%20to%20load%20from%20Teams%2C%20it%20loads%20the%20original%20(supposedly%20corrupted)%20file%20and%20tells%20me%20it%20is%20corrupt.%3C%2FP%3E%3CP%3E6)%20I've%20had%20to%20abandon%20my%20attempt%20to%20use%20Teams%20and%20have%20returned%20the%20system%20to%20OneDrive%20where%20it%20works%20fine%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20or%20anyone%20else%20have%20any%20thoughts%20on%20what%20is%20causing%20this%20problem.%20It's%20very%20frustrating%20as%20Teams%20looks%20like%20a%20great%20environment%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBrian%3C%2FP%3E%3C%2FLINGO-BODY%3E
Todd Purifoy
Contributor

We have a long-standing issue that is manifesting itself via Teams much more frequently.  I have found a ton of info online related to the opening of Excel files from Network locations, and have tried everything I can get my hands on to no avail.

Scenario:  Excel Spreadsheets in the FILE folder of Teams.
User has a file called May Metrics.  They need to create June Metrics.  So they open May Metrics and make all the changes necessary inputting the new metrics.  Then they save it as JUNE METRICS. 

Now when another user tries to open that file, it will say that it is corrupt, try to repair, and fail because it cannot find the file in %appdata%

 

At this point, the user can save the file locally, open it as expected, then upload it back to Teams.  Not acceptable to the users as it adds a significant amount of time and steps to the workflow.   This DID occasionally happen to the users when using a file share as well, and the same workaround was used.  Copy locally, then move back.  However, that workaround was a tad easier and quicker when using a file share.  Not being able to drag and drop from Teams makes that more cumbersome.

It appears that if they FIRST make a copy of the MAY METRICS, rename it to JUNE METRICS and then edit the copy, it will work.  That is rather confusing to me, but it does seem to be a workaround.

Solving the root problem is really what I would like to do.  It just so happens that Teams makes the problem show up more frequently.

So it seems apparent that this only comes into play when a file is NOT local.  Searching reveals a number of reasons for that.  Many talk about turning OFF the DDE, and going to the Trust Center and UNCHECKING the three Protected View settings (all seemingly counterproductive).

I've seen the suggestions to go to Trust Center and turn off all the File Block Settings as well (again, counterproductive).


- The URL is added to the Trusted Zone. 

- I tried adding the URL to Trusted Locations (including subfolders) in Excel.

- Checked the "Allow Trusted Locations on my network (which is not recommended)

- Turned off DDE

- Turned off the three Protected Views within Excel

NOTES:  We can save the file locally, and it will open...but that isn't very efficient in our environment because they then have to upload it BACK to Teams (or OneDrive, or SharePoint, or Network Share) when they are done.

It seems as if we CAN open it from Excel as opposed to clicking on the file itself.  Again...silly, but it does seem to work a lot of the time.  You have to then go through some dialogue boxes about links to other files in locations it cannot reach, but ultimately, you can get the file open.

The files are clearly NOT CORRUPT.  Maybe it has to do with the way users are making edits in some way that references a local location.  I can't really tell for sure because I am not an Excel Guru.

What I do know is that the user expectation is that they should be able to click on a file and start working on it without having to jump through eleventy-billion hoops.

Has anyone else had trouble opening Excel files from Teams?  I can't imagine we are the only ones considering how many people online seem to experience similar issues with Excel files in Network locations.

Lastly, the problem is happening to 2013 and 2016 users.  The only real difference there appears to be that each version provides slightly different dialogue when the file opens.

Thoughts?  Ideas?  Job references?

3 Replies

Hi Todd!

I've experienced many of similar issues as you describe and a tip based on my experience with Excel is that if the files contain calculations or links to other files, you should use the Excel client instead of excel online. Therefore, when you are in the teams "Files tab", select "Open in Excel" instead of just click on the file to open it (which will open it in Excel online).

@Todd Purifoy 

Do you have any backup policy in your dept? If yes then, you can check the backup folder.

Always try to use save as option instead of Save when you perform any changes in the file or create a copy of it before performing any action. In my office, we also faced an issue related to Excel file corruption. We have a file on a shared network. The access of that file distributed to 10 people. One day I got file extension error i.e. file extension is not valid Bla bla bla.

As you have mentioned, I tried different solutions to handle it, but no one worked for me. My friend suggested to try Excel repair software, and luckily, I got the software on the giveaway website. I downloaded it and repaired my file. The software name is Stellar Excel Repair, and It is a paid tool ($39)(luckily I got it on giveawayoftheday).

@Todd Purifoy 

Hi Todd,

Did you get a resolution to your problem below. I am having an ongoing problem with file corruption and teams. The following is the situation:-

1) I have developed a system where an Excel file hosts a set of VBA routines. Triggering these routines causes files to be loaded or created, processed and saved.

2) For a considerable time I based the whole directory structure in a OneDrive account and it worked perfectly. I wanted to move to Teams so as the make the files more easily available to the various users (distributed globally). Moving the whole file structure to Teams was easy.

3) However, after loading an Excel workbook within this environment, I now occasionally experience a total Excel crash i.e. it just turns off and then reloads. Excel now tells me that the file is corrupt and cannot be repaired. If I download the file, send it to a colleague who loads and renames it and sends it back to me, the file is fine.

4) If I delete the original (i.e supposedly corrupted file) in Teams and upload the file returned by my colleague with the new name into Teams, it runs fine.

5) If, however, I rename the uploaded file to the original filename and attempt to load from Teams, it loads the original (supposedly corrupted) file and tells me it is corrupt.

6) I've had to abandon my attempt to use Teams and have returned the system to OneDrive where it works fine again.

 

Do you or anyone else have any thoughts on what is causing this problem. It's very frustrating as Teams looks like a great environment

 

Thanks,

 

Brian

Related Conversations
'Open in Sharepoint' URL opens to Blank page
John Benak in Microsoft Teams on
4 Replies
Error when try to add Shifts to my Team in Teams
PabloBarba in Microsoft Teams on
3 Replies
Help Needed, Warning, upon opening the sheet.
RaynoM1989 in Excel on
2 Replies
Teams error code - 6
damnit95 in Office 365 on
4 Replies