Develop AI · Cleaning companies · Explain this error
Guide for cleaning companiesExplain this error, for cleaning companies.
The script that copies tomorrow's schedule into each cleaner's tab stopped with a strange error. Paste it and I explain what it means and what to change.
What to give it
Start with what you have
- The full error message
- The line of the script it points to
- Anything you renamed or moved recently
What you get
Example for Sparrow Clean Co
Example · Sparrow Clean Co is a made-up business
You: Script error: TypeError: Cannot read properties of null (reading 'getRange') at line 4
Develop AI: DV5431: Line 4 asks for a tab by name, and no tab has that name, so it gets nothing (null). Check the name in getSheetByName("...") matches the tab exactly, including spaces and capitals. If you renamed "Schedule" to "Schedule Nov", change the script to match.
YES DV5431 to approve, EDIT DV5431 to change.Then
What to do next
Today
Match the names
Rename the tab back, or change the script.
This week
Avoid renaming
Use a date column instead of dated tab names.
Every week
Run it once by hand
Check it works before the timer runs it.
More