Status Update
Comments
jp...@google.com <jp...@google.com> #2
It doesn't look like this bug has a link to the affected dataset(s) in Earth
Engine. Please reply to this bug with a comment containing a URL of the form
"
If this issue doesn't affect an existing dataset, consider moving in into the "Public Trackers > Earth Engine > Datasets > New Datasets" component. If the dataset is a new or updated version of an existing dataset, you can add the URL of the existing one. And if you cannot add a URL, you can disable future automated messages by adding a comment with "dataset_bug_ranker: disable" on its own line.
Reason: Issue does not contain a dataset URL. dataset_bug_ranker: remind=P7D
bl...@google.com <bl...@google.com> #3
On Thu, 16 Jan 2025, 13:25 , <buganizer-system@google.com> wrote:
Description
Before opening a new issue, please search for other related issues , click the ★ to subscribe to updates, and click
+1
to vote.Description
I have tried all steps suggested by Gemini below and still receive the DocsApp not defined error.
Code
function testDocsApp() { try { var doc = DocsApp.create("Test Document"); Logger.log("Document created: " + doc.getName() + " (ID: " + doc.getId() + ")"); } catch (error) { Logger.log("Error creating document: " + error); } }
Output
10:56:18 AM Info Error creating document: ReferenceError: DocsApp is not defined
Steps
I have enabled both Drive API v3 and Docs API v1 in App Script I am administrator and have no restrictions on Drive API or Docs API I have cleared cache and tried the function below on two different accounts and two different laptops - one a ASUS Windows 11 Home and Other MacBook Pro OS Big Sur. No other functions have any such error except this. I have entered the correct project number and API services account email address for use with sharing but that's not the issue as the code below only creates a document using DocsApp. I have tried all the steps given by Gemini to resolve the error and not fixed. Are you able to take a look at my settings and suggest something I haven't ticked? Many thanks