-
Notifications
You must be signed in to change notification settings - Fork 39
Range not found (line 373, file "Code") #18
Comments
Dr. Whodini (love the name, btw) have you attempted any further troubleshooting on your error? I re-installed the scripts in an attempt to correct an error I was having. My error went away but now I get the exact error you do. Thanks. |
The most common reason I've seen for this error is that someone goes in an manually changes the value in cell B1 or B2 on the data tab in order to put in their current streak. But you can't overwrite those values because they are calculated and if you overwrite them, you'll break the scripts. |
I started over without my previous data. (I preserved it in another spreadsheet.) The only number that exists is the goose egg created when I manually ran the WritingStats script earlier. |
LOL, well I fixed this issue by switching to the Beta track. Now, I get a different error. I'll post the error and any comments there so I don't hijack this thread. Thanks Jamie! |
I had trashed all my scripts files and started over from scratch and I got this same error as well. I as getting both a writingstats and Daily Almanac error each day. Now just this has appeared. When I run the 'run' button in the script it also gives this error. I logged out of my gmail account and logged back in to see if that would change anything. It did not. Any ideas? |
I am having the exact same problem on a fresh install :( Not sure where to even begin. |
Guys I found the way to fix this!! All I did was check the Execution Transcript after each error to realize the problem was that the cell names need to be assigned on the Records sheet. Here, I'll explain: All you have to do is assign names to cells B3, C3, D3 and E3 as follows: B3: RecordWritingDate Do this and run the getAlmanacText trigger and you are done. Mine is finally working! Good luck. |
Question on this: were you using the version of the spreadsheet that I Good catch! Jamie Todd Rubin (@jamietr http://twitter.com/jamietr) On Mon, Sep 15, 2014 at 12:34 PM, coes123 notifications@github.com wrote:
|
I'm sorry, I can't find that Shared Spreadsheet you mention on any readme :( I'll keep looking. Thank you. |
It should be listed in the readme in the beta-version-2 branch. Jamie Todd Rubin (@jamietr http://twitter.com/jamietr) On Mon, Sep 15, 2014 at 1:02 PM, coes123 notifications@github.com wrote:
|
Hi, I found your shared spreadsheet file but I ran into a new error.
I checked issue #16 and followed the instructions, such as making sure both scripts and the spreadsheet had the same time zone (I am in CDT). I tried EST and CDT to no avail. I also made sure the spreadsheet wasn't in Test Mode and I added the sandbox folders... I am lost now. I'll keep trying :( Btw, I changed the timezone in DailyAlmanac in lines 25, 231 and 359.
Oh and I also changed the spreadsheet ID on both scripts. |
What's curious is this. If I switch the DailyAlmanac script to my original spreadsheet the Script runs well but it emails me the NaN (not a number) error. What's also interesting is that my original spreadsheet is in a different time zone setting than the scripts. This, in my opinion, rules out the problem being the time zones. If has something to do with the cells. I tried removing number formatting on everything too, just in case. I got nothing... |
Firstly - For someone who advertises 'lack of' support, it's great to see you replying to our niggles and problems.
Secondly - I'm loving these scripts, they are great motivational tools that make a difference to how I write.
Lastly - The error - Installation was pretty straightforward, although I needed to totally quite drive and log back in for the stats to work. The Almanac, however repeatedly comes up with this the same error - Range not found (line 373, file "Code")
370 function getNamedRangeCellValue(strRangeName)
371 {
372 var ss = SpreadsheetApp.openById(QS_WRITING);
373 if (ss.getRangeByName(strRangeName) != null)
374 return ss.getRangeByName(strRangeName).getValues()[0];
375 else
376 return null;
377 }
I'm no coder, but I can sometimes get a feel where an issue may lie. Here, however, I'm lost.
Thanks
The text was updated successfully, but these errors were encountered: