sheet.getProtections 不再有效?

Fre*_*des 5 protection google-sheets google-apps-script

我有一个脚本可以自动保护我的工作表中的一系列过去日期。

我用标准 sheet.getProtections(SpreadsheetApp.ProtectionType.RANGE);

它工作了好几个月,但从昨天开始就没有工作了。

对实现有任何修改吗?

谢谢

PS:工作表对象在我的测试中很好地返回

var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("TRAVAUX");
var debug = sheet.getName();
var protections = sheet.getProtections(SpreadsheetApp.ProtectionType.RANGE);
Run Code Online (Sandbox Code Playgroud)

运行该函数时的错误信息

服务错误:电子表格

zig*_*hka 7

似乎有几个开发人员遇到了这个问题,这可能是一个错误或临时问题。

该问题已在Public Issue Tracker上报告。给它一个“星”以表明您也受到影响。