Obsolete
Status Update
Comments
bl...@google.com <bl...@google.com> #2
Generated Metadata
- Summary: The Apps Script application is not working as expected. The first page works, but the second page does not. It is difficult to determine the root cause without additional information.
- Tags:
Additional resources:
https://developers.google.com/apps-script/guides/support/troubleshooting https://developers.google.com/apps-script/support https://stackoverflow.com/.../how-to-debug-or-view-logs-in-google-app-scr... https://stackoverflow.com/.../appscript-webapp-hyperlink-not-working-the-... https://stackoverflow.com/.../serve-separate-html-pages-google-apps-script-...
You can
id...@gmail.com <id...@gmail.com> #3
Automated by Blunderbuss job workspace-devrel-public-issue-tracker-blunderbuss-autoassigner for config assign for component 191640.
jp...@google.com <jp...@google.com> #4
I get an error when trying to create test1
named range.
There is already a range with this name.
Description
A short description of the issue:
A small code sample that reliably reproduces the issue. The sample should run as-is or with minimal setup, without external dependencies.
let spreadSheet = SpreadsheetApp.getActiveSpreadsheet();
let namedRanges = spreadSheet.getNamedRanges();
for(let range of namedRanges){
let myRange = spreadSheet.getRangeByName(range.getName());
console.log("range Name ::" + range.getName() + " refers to ::" + myRange.getA1Notation());
}
What steps will reproduce the problem?
1. Create tow named ranges with Names Test1 and test1
2. Now run the above code using appscript
3.Observe that the range address pinted belongs to only one and is not correct
4. Check the Name Manager and you see that these named ranges are valid and point to two different ranges.
What is the expected output?
getRangeByName() should give correct range information.
Please provide any additional information below.