How to Fix SharePoint Copy Error: Cannot Read Property of Undefined
Question details
The user needs to resolve a JavaScript error that occurs when attempting to copy a large folder.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Copying an approximately 1.8 GB folder between two document libraries within the same SharePoint site.
- Observed behavior
- A JavaScript error appears stating that it cannot read the property 'value' of undefined, causing the folder copy operation to fail.
Ensure you have a stable internet connection and the necessary permissions to copy files between the source and destination document libraries.
Troubleshoot Browser and Network Environment
Switching to a different device, browser, or network can bypass local cache corruption, conflicting extensions, or network restrictions causing the JavaScript error.
SharePoint relies heavily on background JavaScript to handle large file operations. When copying massive folders (like 1.8 GB) via the web interface, browser timeouts, stale cache, or restrictive network firewalls can interrupt the script, leading to an 'undefined' property error.
Log out of SharePoint and open a different supported browser (such as Microsoft Edge, Google Chrome, or Mozilla Firefox). Log back in and attempt the copy operation again to rule out browser-specific glitches.
Navigate to your browser's settings, locate the 'Privacy and security' section, and clear your cached images, files, and cookies. Restart the browser and try copying the folder again.
Connect your device to a different Wi-Fi network (or a mobile hotspot) to bypass local network restrictions. Alternatively, log into your SharePoint account from a completely different computer and perform the copy operation.

Looking for a Reliable Offline Office Suite?
If you are frustrated by browser-based JavaScript errors and online synchronization issues with SharePoint and Microsoft Office, consider an offline-first desktop alternative. WPS Office provides a free, lightweight, and highly compatible solution for managing and editing your documents locally without relying on web browser stability.
- 1. Download the installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install the software: Run the downloaded installer and follow the on-screen prompts to complete the quick installation process.
- 3. Open your files: Launch WPS Office and directly open your existing .docx, .xlsx, or .pptx files to continue your work without formatting loss.

Frequently Asked Questions
Why does SharePoint show a 'Cannot read property of undefined' error?
This is typically a JavaScript error triggered when the web browser fails to execute a background script correctly. It is often caused by browser cache conflicts, conflicting extensions (like ad blockers), or network interruptions during heavy operations like transferring gigabytes of data.
What is the best way to move or copy very large folders in SharePoint?
While SharePoint allows web-based copying, moving massive folders in a single browser session can time out. It is often more reliable to use the OneDrive desktop sync client. By syncing the SharePoint libraries to your computer's File Explorer, you can copy large folders locally, and the client will handle the background upload securely.
Can browser extensions interfere with SharePoint operations?
Yes, certain privacy extensions, script blockers, or ad blockers can prevent SharePoint's JavaScript from executing properly. Disabling these extensions or using an incognito/private browsing window can help determine if an extension is causing the error.




