Rename folder in big library sharepoint online

Elmata 136 Reputation points
2020-11-16T18:44:04.617+00:00

Hello,
Someone know how can I edit/rename a folder when my list or library contains more than 5000 elements ?
I tried a lot of possibilities but nothing fixes it.
Best regards,
Elmata

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

5 answers

Sort by: Most helpful
  1. Allen Xu_MSFT 13,866 Reputation points
    2020-11-17T08:15:20.003+00:00

    Hi @Elmata ,

    To understand your issue better, could you share with me what error messages or scenarios you encountered while renaming the folder and what possibilities you have tried?

    If your issue is caused by 5000 items list/library view threshold and you are using modern library, Please try the solutions listed in this article to manage your large library: Manage large lists and libraries

    If you are using classic library in SharePoint Online, you can try the following method:
    Access your problem library via IE -> Click “Open with explorer” in the ribbon -> rename the folder in the File Explorer:
    40260-1-4.png

    If the issue still exists, please try the following PnP PowerShell to rename the folder:

    #Config Variables  
    $SiteURL = "https://<TenantName>.sharepoint.com/sites/<SiteName>"  
    $FolderURL= "<LibraryName>/<FolderOldName>" #Site Relative URL  
    $FolderNewName ="<FolderNewName>"  
       
    #Connect to PnP Online  
    Connect-PnPOnline -Url $SiteURL -Credentials (Get-Credential)  
       
    #Rename the Folder  
    Rename-PnPFolder -Folder $FolderURL -TargetFolderName $FolderNewName  
    

    I hope this information has been useful, please let me know if you still need assistance.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Ali Choudhry 1 Reputation point
    2020-12-01T18:56:13.647+00:00

    Did you try setting up a view with filters that would restrict the returned items to less than 5k and edit the folder name?

    0 comments No comments

  3. Emily Willard 1 Reputation point
    2022-09-30T16:55:28.293+00:00

    This is my first time participating in a tech-related chat and I don't have an answer. But I do have the exact issue mentioned above.

    I want to change the name of a folder in SharePoint and have tried using the desktop app and using a Chrome browser. When I try to rename I get the following messages:

    "You can't rename this folder because there are too many items in the folder"

    Are there any other ways to make this change?


  4. Richard Boyd 1 Reputation point
    2022-11-04T11:21:24.683+00:00

    Create a new folder with the name you want. Move the contents of the folder with the name you don't want. Delete the now empty folder.

    0 comments No comments

  5. Alessandro Nardoni 1 Reputation point
    2022-11-30T15:49:46.597+00:00

    Hello!

    I am having the same issue - I cannot rename a folder because it contains to many items
    265779-capture.png

    Similarly, I cannot delete this folder because it's too big.

    I am wondering why not allowing users to do such simple actions - they actually become a big issue, not being able to perform such actions .

    Regards,
    Alessandro

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.