SharePoint链接应在文件资源管理器打开却跳转至浏览器的问题排查
Hey Jadda, sorry to hear your UiPath automation for accessing SharePoint/OneDrive via File Explorer stopped working overnight. Let’s walk through the most likely causes and fixes to get your batch Excel scraping back on track.
Possible Causes
- Link Format Changes: Microsoft might have updated how SharePoint handles direct URL inputs in File Explorer—old web URLs that once redirected to the file system view now default to the web interface.
- Protocol Association Shifts: Your system’s default handler for SharePoint links could have switched to a browser, bypassing the File Explorer/WebDAV integration.
- Expired/Corrupted Credentials: Cached authentication tokens for SharePoint might have expired, so File Explorer can’t authenticate silently and redirects to the web login page.
- WebDAV Access Disabled: Your SharePoint admin might have disabled WebDAV support for the site, which is required for File Explorer to access it directly.
Step-by-Step Fixes
1. Verify & Use the Correct WebDAV Path
Instead of pasting the standard SharePoint web URL into File Explorer, use the dedicated WebDAV network path. For example:
- For a site’s shared documents:
\\<your-tenant>.sharepoint.com@SSL\DavWWWRoot\sites\<site-name>\Shared%20Documents - For personal OneDrive:
\\<your-tenant>-my.sharepoint.com@SSL\DavWWWRoot\personal\<your-email-slug>\Documents
Test this path manually in File Explorer first—if it works, update your UiPath workflow to input this path instead of the web URL.
2. Reset Credentials in Windows Credential Manager
Expired cached credentials often cause silent authentication failures:
- Open Control Panel > Credential Manager > Windows Credentials
- Look for entries labeled with your SharePoint/OneDrive URL (e.g.,
MicrosoftOffice16_Data:https://<tenant>-my.sharepoint.com) - Delete these entries, then try accessing the path in File Explorer again—you’ll be prompted to re-login, which will refresh the credentials.
3. Check System Protocol & File Explorer Settings
Ensure File Explorer is set to handle WebDAV requests properly:
- Open File Explorer > Options > View
- Enable the option Launch folder windows in a separate process (sometimes fixes integration glitches)
- For protocol associations: Go to Settings > Apps > Default apps > Choose default apps by protocol—ensure
http/httpsaren’t set to override WebDAV handling (though this is less common, it’s worth checking)
4. Switch to UiPath’s Native SharePoint Activities
If the File Explorer method keeps breaking, using UiPath’s built-in SharePoint activities is a more reliable long-term solution:
- Install the
UiPath.SharePoint.Activitiespackage in your project - Use activities like
Get Filesto list all Excel files in the target SharePoint folder - Use
Download Fileto save them locally for processing—this avoids relying on system-level link redirects entirely, and works with your project’s existing authentication (you can use OAuth or service account credentials)
5. Confirm WebDAV is Enabled on the SharePoint Site
If none of the above work, reach out to your SharePoint admin to verify:
- WebDAV is enabled for the site collection
- Your user account has the necessary permissions to access the site via WebDAV (usually the same as web access, but sometimes restricted)
内容的提问来源于stack exchange,提问作者jadda123876

