繁体   English   中英

Google Apps 脚本 - 例外

[英]Google Apps Scripts - Exception

function moveFiles(sourceFile, targetFolder) {
  var file = DriveApp.getFileById(sourceFile);
  var folder = DriveApp.getFolderById(targetFolder);
  file.moveTo(folder);
}

运行此代码时,我收到错误:

例外:无效参数:id moveFiles @ Code.gs:16

我已关闭禁用 Chrome V8 运行时。 但是抛出了一个更严重的错误。 提前致谢。

已修复,我提供给脚本的文件 ID 不正确。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM