文档库标题异常:显示为"Documents ressources[3]"
Hey there, let’s dig into this SharePoint document library web part title issue! That trailing [3] showing up as "Documents ressources[3]" is almost always tied to duplicate or "ghost" libraries that aren’t visible in the regular UI. Here’s a practical troubleshooting plan to track this down and fix it:
The default Site Contents page might not show hidden libraries, so let’s access the full list:
- Go to your site’s Site Contents, then click the View all site content link (usually at the bottom of the page, or use the direct URL:
/_layouts/15/viewlsts.aspx). - Scan through all libraries here—look for any entries named "Documents ressources" (with or without numbers) that might be hidden (you’ll see a "Hidden" tag next to them).
If the UI doesn’t show everything, PowerShell will give you a full picture. Grab the SharePoint Online Management Shell (or use the PnP PowerShell module) and run these commands:
# Connect to your SharePoint site (you’ll be prompted to log in) Connect-PnPOnline -Url "https://yourtenant.sharepoint.com/sites/yoursite" -Interactive # Fetch all document libraries and key details Get-PnPList | Where-Object {$_.BaseType -eq "DocumentLibrary"} | Select-Object Title, Id, Hidden, Url
- Look through the output for any libraries with titles matching "Documents ressources" (including variants with numbers like
[1],[2],[3]). Note their IDs and whether they’re marked as hidden. - Compare these IDs to the one your web part is using (we’ll check that next).
Let’s confirm exactly which library your web part is pointing to:
- Edit the page with the problematic web part.
- Open the web part’s settings panel. Under the Document Library section, check the selected library name. If it’s showing the
[3]version, see if you can switch to the original "Documents ressources" library (if it exists). - For more detail, check the web part’s advanced properties:
- Click the Advanced tab in the web part settings.
- Look for the
List IDfield. Copy this ID and cross-reference it with the IDs you got from PowerShell. If the ID doesn’t match any active library, that’s your ghost library reference.
Sometimes the "ghost" library was deleted but the web part still references it:
- First, check your site’s Recycle Bin (found in Site Settings or the left navigation). Look for any deleted libraries named "Documents ressources".
- If you don’t see it there, check the Site Collection Recycle Bin (accessible via Site Settings > Site Collection Administration > Recycle Bin). Deleted items can end up here if they were removed from the site recycle bin.
Once you’ve identified the issue:
- If there’s a duplicate/hidden library you don’t need, delete it (after confirming it has no important content!). Then reconfigure the web part to point to the active "Documents ressources" library—this should remove the
[3]suffix. - If the original library was deleted and replaced, you can rename the current active library to remove the
[3](just go to the library settings > Title, description, and navigation). - If the web part is referencing a deleted library’s ID, edit the web part and select the correct existing library from the dropdown.
内容的提问来源于stack exchange,提问作者Alexandre

