Google Apps Script is a powerful scripting language that enables users to automate various tasks within the Google Suite of applications, including Google Sheets, Docs, and Forms. However, like any other programming language, it's not uncommon to encounter errors when working with Google Apps Script.
One common error that you may encounter is the "We're sorry, a server error occurred while reading from storage. Error code: not_found." This error message can be frustrating, as it doesn't provide much information on which library is causing the issue.
In this blog post, we'll discuss what causes this error and provide a step-by-step guide on how to fix it.
Understanding the "We're Sorry, A Server Error Occurred While Reading From Storage. Error Code Not_Found" Error:
The "We're sorry, a server error occurred while reading from storage. Error code: not_found" error message typically appears when a Google Apps Script is trying to access a library that has been deleted or no longer exists. It can also occur when a script is trying to use a library version that is no longer available.
To determine which library is causing the issue, follow the steps below:
Open the script editor for the script that's producing the error.
Click on the "Resources" menu and select "Libraries.
A list of libraries being used in the script will appear. The library causing the error will be marked with an error icon.
Once you've identified the problematic library, you can follow the steps below to fix the issue.
How to Fix the "We're Sorry, A Server Error Occurred While Reading From Storage. Error Code Not_Found" Error:
To fix the "We're sorry, a server error occurred while reading from storage. Error code: not_found" error in Google Apps Script, you'll need to change the library version from the header to the deployed version and then redeploy the library.
Follow the steps below to resolve the error:
Step -1: Go to the project and check libraries.
Test the script to ensure the error is resolved.
Conclusion:
Encountering errors when working with Google Apps Script can be frustrating, but with the right solutions, these errors can be easily resolved. The "We're sorry, a server error occurred while reading from storage. Error code: not_found" error is a common error that can occur when a script is trying to access a deleted or non-existent library or an outdated library version. By following the steps outlined in this blog post, you can easily fix this error and continue working on your Google Apps Script project.