How to Fix TypeError: Cannot Read Properties of Undefined Reading allRings
Question details
The user is encountering a JavaScript-style TypeError mentioning 'reading allRings' when attempting to open or process a document.

- Product
- Microsoft Office or Web-based File Viewer
- Device & OS
- not provided
- Scenario
- Opening a file or interacting with a document that contains script-driven elements, web add-ins, or complex chart data.
- Observed behavior
- The application fails to load the file or process the action, displaying the error message 'TypeError: Cannot read properties of undefined (reading allRings)'.
Before proceeding, check if the error only occurs with a specific file by opening a new, blank document. This helps determine whether the issue lies within the software or a corrupted file.
Identify and Disable Conflicting Add-ins
Third-party add-ins or extensions can cause script execution errors. Running the application in Safe Mode helps identify the culprit.
Script errors like 'Cannot read properties of undefined' are frequently caused by outdated or incompatible third-party add-ins trying to read data that doesn't exist in the current document context.
Hold down the 'Ctrl' key on your keyboard and double-click the application shortcut to open it in Safe Mode.
Navigate to 'File' > 'Options' > 'Add-ins' in the main menu.
Select 'COM Add-ins' from the Manage drop-down list at the bottom and click 'Go'. Uncheck all add-ins and click 'OK'.
Restart the application normally. If the error is gone, enable your add-ins one by one to find the one causing the issue.

Clear Application or Browser Cache
Outdated cache data can cause web-based scripts to malfunction and return undefined properties.
Verify File Content and Chart Objects
The 'allRings' property is often related to mapping or chart data scripts. The file itself might contain broken object references.
Experience Error-Free Document Editing with WPS Office
Tired of encountering script errors like 'TypeError' in your current office software? Switch to WPS Office for a stable, lightweight, and highly compatible desktop experience that avoids browser-based script failures.
- 1. Download and Install: Visit the official WPS website to download and install WPS Office for free.
- 2. Launch the Application: Open WPS Office and select the 'Open' option from the main dashboard.
- 3. Access Your File: Select the problematic file to open it safely in a stable environment, bypassing previous script errors.

Frequently Asked Questions
What does the 'TypeError: Cannot read properties of undefined' error mean?
It is a common JavaScript error indicating that the program attempted to read a variable or object property (like 'allRings') that has not been defined, initialized, or found in the data.
Can a corrupted file cause this specific error?
Yes. If a document contains embedded scripts, charts, or map objects that are improperly formatted or corrupted, the software may fail to read the expected properties, triggering this error.
How can I safely extract the text from a file throwing this error?
You can try opening the file in Safe Mode, uploading it to a different cloud viewer, or using an alternative suite like WPS Office to bypass the specific script causing the failure and recover your text.




