SharePoint Document Issues

Fix Excel Asking for Password on Cached SharePoint Files

John WilsonJohn Wilson Oct 29, 2026 868 views

Question details

Excel prompts the user to enter a password for a randomly named local file, which is actually a cached copy of a password-protected SharePoint workbook.

Why Does Excel Request a Password for a Cached SharePoint File?
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user opens a workbook containing background links pointing to a password-protected SharePoint file, triggering a password request for a local cached version.
Observed behavior
Excel displays a password prompt for a local file located in the user profile (such as AppData), rather than the expected SharePoint URL.
Before you start

Before troubleshooting, ensure you have the correct password for the original password-protected SharePoint workbook and save any unsaved work in your current Excel files.

Solution 1Recommended

Verify Workbook Links and Clear Office Cache

Resolve the unexpected password prompt by checking for hidden SharePoint links and clearing the local Office and OneDrive document cache.

When you open online Office files in desktop applications, Office and OneDrive automatically create local cache files in your user profile (typically under the AppData directory).

If your workbook contains links pointing to a password-protected SharePoint file, Excel may try to update these links in the background, prompting a password request for the cached version instead of the live online file.

1
Identify Workbook Links

In Excel, go to the 'Data' tab and click on 'Edit Links' (or 'Queries & Connections') to check if the current workbook is linked to a password-protected SharePoint file.

2
Provide the Password or Break Links

If the link is legitimate, enter the password for the source file. If the link is outdated or unnecessary, select the link in the dialog box and click 'Break Link'.

3
Clear Office Document Cache

Navigate to Excel Options > Save > Cache Settings, and click 'Delete cached files' to clear temporary SharePoint files.

4
Reset OneDrive Sync (Optional)

If the issue persists, right-click the OneDrive icon in your system tray, select 'Settings', and under the sync settings, review how Office applications handle synced files.

Verify Workbook Links and Clear Office Cache
Cache File Locations: Cached files are usually stored in hidden AppData folders. You may need to enable 'Show hidden files and folders' in Windows File Explorer to locate them manually.
Free Microsoft Office alternative

Try WPS Office for Seamless Document Management

If you are tired of complex cache issues and sync conflicts with Microsoft Excel and SharePoint, consider switching to WPS Office. It provides a lightweight, highly compatible alternative for handling spreadsheets, including those with password protection.

Fully compatible with Microsoft Excel (.xlsx, .xls) and CSV formats.Lightweight design that minimizes complex local caching issues.Familiar user interface requiring no learning curve for Excel users.Built-in cloud storage options for easy file sharing and collaboration.
QA img-9

Frequently Asked Questions

Why does the Excel password prompt show a random string of characters instead of the file name?

When Office caches a SharePoint or OneDrive file locally, it often renames the temporary file using a randomized string (GUID) in the AppData directory. The prompt is asking for the password to unlock this specific cached copy.

Can I disable local caching for SharePoint files in Excel?

You can reduce caching issues by adjusting your Office Sync settings. In Excel, go to Options > Save, and check the settings under 'Cache Settings' to manage how cached files are stored and deleted.

Will breaking the workbook links delete my SharePoint data?

No. Breaking a link in Excel simply converts the previously linked data in your current workbook into static values. It does not delete or modify the source file stored on SharePoint.

How do I find the hidden AppData folder to delete the cache manually?

Press the Windows Key + R, type '%appdata%' or '%localappdata%', and press Enter. Navigate to the Microsoft Office cache folders (usually under Microsoft\Office\16.0\OfficeFileCache) to delete the temporary files.