I have a script that grabs a template, copies it, then replaces certain fields with data in a spreadsheet. It was working beautifully yesterday, but today I get this error:
"Service unavailable: Docs" (with reference to the line I've * below
I haven't touched the code, but suddenly this error. Any ideas why?
var file = DocsList.find("my TEMPLATE")[0];
var copy = file.makeCopy("my DOCUMENT");
var copyId = copy.getId(); //***This is the line the error points to
var docCopy = DocumentApp.openById(copyId);
var body = docCopy.getBody();
body.replaceText('{date}', Utilities.formatDate(new Date(sheet.getRange('A1').getValues()), "GMT", "MMM dd"));
By the way, when I searched this error online all the discussions related to tables, but I'm not copying or creating any tables in this script.
Thanks for your help!