Getting an error when adding a folder or renaming one

Victoria B 0 Reputation points
2026-11-18T22:14:29.5133333+00:00

I am trying to create a folder and getting an error message that states:

"The security validation for this page is invalid and might be corrupted. Please use your web browser's Back button to try your operation again. "

I am the owner of the account that I am trying to add to.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Jay1 Tran 2,095 Reputation points Independent Advisor
    2026-11-18T22:26:10.8366667+00:00

    Hi Victoria,

    Thank you for reaching out.

    This error may occur when the browser session or the SharePoint page’s security validation information has expired or become corrupted. Please try the following steps:

    1. Clear the browser cache
    • Launch the browser, and press Ctrl + Shift + Delete to open the Clear browsing data utility. 
    • Now, select All time from the Time range dropdown menu, tick the checkboxes for Cookies and other site data and Cached images and files, then click on Clear data towards the bottom. 

    Delete browsing data X Time range Last hour > Browsing history 22 items. Includes autocompletions in the address bar. Download history None Cookies and other site data From 41 sites. Signs you out of most sites. Cached images and files Frees up less than 320 MB. Some sites may load more slowly on your next visit. Passwords None Autofill form data (includes forms and cards) This will clear your data across all your synced devices signed in to To clear browsing data from this device only, sign out first. Cancel Clear now

    1. Verify your SharePoint permissions

    Owning the Microsoft 365 account does not necessarily mean that the account has permission to create folders in every SharePoint site or document library. In the affected SharePoint site, select Settings > Site permissions and confirm that your account has Edit, Design, or Full Control permission.

    If you cannot view or manage the permissions, contact the SharePoint site administrator and ask them to verify your access to the affected document library.

    1. Check the folder name
    • Try creating a folder with a short and simple name that contains only letters and numbers. Avoid special characters such as: " * : < > ? / \ |
    • Also ensure that the folder name does not end with a period or a space. For example, try creating a folder named TestFolder to determine whether the original folder name is causing the error.
    1. Try another browser

    If the issue continues, test the same operation in another supported browser, such as Microsoft Edge or Google Chrome. This can help determine whether the problem is specific to the current browser profile.

    I hope your issue gets resolved soon. Any updates would be greatly appreciated.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-18T22:16:00.7333333+00:00

    Open the SharePoint library in an InPrivate browser window, sign in with your work account, and retry the folder operation because this exact validation error is commonly associated with stale page or browser-session data.^1^

    1. Test with a clean browser session

    1. In Microsoft Edge, select Settings and more (…) → New InPrivate window.
    2. Sign in to Microsoft 365 and open the SharePoint document library directly.
    3. Create a folder named TestFolder123.
    4. Try renaming it from … → Rename. That is the supported rename path in a SharePoint library.^2^

    If both operations work in InPrivate, the normal browser profile contains stale site data. Remove only the affected SharePoint site’s cookies rather than clearing every Microsoft 365 site:

    1. Edge → Settings and more → Settings → Privacy, search, and services.
    2. Select Cookies → See all cookies and site data.
    3. Search for your organization’s SharePoint site and delete its stored data.
    4. Close all Edge windows, reopen Edge, sign in, and test again.^3^

    Deleting cookies signs you out, so save any unfinished browser work first.

    If InPrivate still fails, test another browser or device. Temporarily disable ad blockers, privacy/script blockers, and other extensions that modify webpages, then retry.

    2. Rule out a folder-name restriction

    Test with a short name containing only letters and numbers. SharePoint and OneDrive do not allow these characters in folder names:

    " * : < > ? / \ |
    

    Leading or trailing spaces are also unsupported, as are reserved names such as CON, PRN, AUX, NUL, and .lock.^4^

    If the simple test name works, shorten the intended name, remove unsupported characters, and check whether the full nested path is excessively long.

    3. If the library is synchronized with OneDrive

    If this SharePoint library is synced to Windows:

    1. Temporarily pause OneDrive synchronization.
    2. Ensure nobody has a file open inside the folder being renamed.
    3. Perform the operation directly in SharePoint on the web, not File Explorer.
    4. Resume synchronization after the web operation completes.

    Sync or locked-file interference can affect library operations; Microsoft provides separate SharePoint Online sync troubleshooting guidance.^5^

    4. Determine the failure scope

    Test:

    • Another folder in the same library.
    • Another document library on the same site, if available.
    • Whether another user with edit access gets the same error.

    Although you own the account, SharePoint permissions are assigned at the site, library, folder, and item levels. If only one folder fails, create a replacement folder with the desired name, move its contents, and then remove the original folder if permitted. If the entire library fails, ask the Microsoft 365 administrator to investigate the library configuration or open a Microsoft support request.^6^

    Provide the administrator with:

    • The exact error and timestamp.
    • Site and library names.
    • Browser name and version.
    • Results from InPrivate and another device.
    • Whether all folders, one folder, or all users are affected.
    • A screenshot with personal information removed.

    References

    1. Security validation for this page is invalid | Microsoft Community Hub
    2. Rename a file, folder, or link in a document library | Microsoft Support
    3. Manage cookies in Microsoft Edge: View, allow, block, delete and use | Microsoft Support
    4. Restrictions and limitations in OneDrive and SharePoint | Microsoft Support
    5. Fix SharePoint Online sync problems | Microsoft Support
    6. SharePoint Online troubleshooting - SharePoint | Microsoft Learn
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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