I’m using the Excel extension in a Workflow and I’ve found that I can’t find a specific Excel file when it’s Teams, but can find it when it’s in OneDrive. There are other Excel files in the same folder in Teams that the Workflow can find so the issue isn’t a permissions problem.
CLEARING THE FILES
In trying to figure out what the difference is between the two files I copied both files to my computer, removed all sheets except for a new empty one in both files, saved the files with new file names, and uploaded them back into Teams. The workflow was still able to see the re-saved older file but not my re-saved new file. I don’t know exactly which version of Excel was used for the older file but my version of Excel is Version 2401 (Build 1723.20084 Click-to-Run).
FILE SIZE DIFFERENCE
I also found that while both files have no actual content in them, the new file has a smaller file size than the older file, 8.61 KB for the new file and 17.7 KB for the older file. While they should be identical, my thought is that there must be something in the underlying data structure of of the older file that’s allowing it to be found in Teams.
DOCUMENT INSPECTOR
The only apparent difference I can find between the files is when looking at the document inspector. Both files show ‘Document Properties and Personal Information, but the older file also has “Custom XML Data”. However, opening the XML Source from the Developer tab doesn’t show any XML maps. The only thing I’ve found that has an affect on the older file is running the document inspector and removing the ‘Document Properties and Personal Information’ OR removing the ‘Custom XML Data’. Choosing to remove either, saving a new file, and uploading it to Teams results in the re-saved older file no longer being able to be found by the Excel workflow.
WORK-AROUND
For now the work-around for this issue is to simply save a copy of the older file and then use a copy of it for any future Excel workflows that I need.
ANY IDEAS ABOUT WHAT’S HAPPENING?
I would still like to know if anyone has insight into why the older file can be found but the new file cannot.