Diagnostic reference
Your script has more than 50 properties (read-only list)
Fix Apps Script's 'Your script has more than 50 properties. The above list shows the first 50 and is read-only' message with PropertiesService.
Updated December 6, 2026
Apps Script error
Your script has more than 50 properties. The above list shows the first 50 and is read-only. To manage or view all of your properties, do so programmatically using the Properties service.
What it means
The Project Settings UI in the Apps Script editor displays and edits at most 50 Script Properties. Once your script stores 51 or more keys, the Settings panel switches to read-only mode so it cannot accidentally drop hidden keys when you click Save. Your script can still read, update, and delete all properties in code using PropertiesService.
Related error messages
- Your script has more than 50 properties. The above list shows the first 50 and is read-only.
- Exception: Argument too large: value (PropertiesService)
Before and after
The code before and after the fix.
// Storing one Script Property per row or user quickly passes 50 keys,
// locking the Project Settings -> Script Properties editor as read-only.
function saveItemStatus(itemId, status) {
PropertiesService.getScriptProperties().setProperty('item_' + itemId, status);
}// Manage more than 50 properties programmatically, or group related keys
// into one JSON value (staying under 9 KB per value and 500 KB total).
function inspectAndPruneProperties() {
const props = PropertiesService.getScriptProperties();
const all = props.getProperties();
const keys = Object.keys(all);
Logger.log('Total script properties: ' + keys.length);
for (const key of keys) {
if (key.startsWith('temp_')) {
props.deleteProperty(key);
}
}
}
function setConfigValue(key, value) {
PropertiesService.getScriptProperties().setProperty(key, value);
}How to fix it
- Use PropertiesService.getScriptProperties().getProperties() in a helper function to list every key and count how many exist.
- Update or remove keys programmatically with setProperty(key, value), deleteProperty(key), or deleteAllProperties() instead of the Project Settings form.
- To re-enable the Project Settings UI editor, delete obsolete keys or consolidate related settings into a small number of JSON-serialized keys until 50 or fewer keys remain.
- Move growing per-row or per-record datasets into a Google Sheet tab or Drive JSON file instead of creating a new Script Property per item.
Things to check
- PropertiesService allows up to 9 KB per property value and 500 KB total per property store, regardless of the 50-key UI limit.
- Do not call deleteAllProperties() unless you have exported existing API keys and tokens first.
In the Apps Script editor
Catch errors like this before clicking Run.
myFunction (published as Error Checker for Google Apps Script on the Chrome Web Store) checks your code while you edit at script.google.com. Diagnostics, autocomplete, and rule-based quick fixes are free without an account, run in your browser, and request no Google Drive, Gmail, or Apps Script project OAuth scopes. Writing Apps Script with an AI coding agent? Connect the Apps Script MCP server to run the same static checks before pasting code.