Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't change Cloud project for Apps Script

We are no longer able to associate our Apps Script projects with our Cloud platform project. When going to Resources: Cloud platform project in the GAS editor, and entering the project ID, it says "Project doesn't exist or you need Edit access to it.". The project definitely exists and the same Google account is an owner of it. With the same workflow, we previously managed to associate many projects.

Is there maybe a limit on how many GAS projects can be associated with one Cloud project? We've associated about two dozen recently, and then it started to produce this error. Or what could be going on?

like image 207
user2960019 Avatar asked Sep 08 '17 06:09

user2960019


People also ask

What Google Cloud project attributes can be changed?

Steps To Update A Project Projects in the Google Cloud Platform can be updated via either the Cloud Console or the projects. patch() method. As of now, only two attributes of a project can be edited – the name and the labels associated with it.

How will you differentiate a project ID and project number?

The Project number consists only of digits, while the Project ID is alphanumeric.

Can we change project name in GCP?

Select your project from the list that appears. To change the project name, edit Project name, then click Save.


2 Answers

This is explained in details here: https://developers.google.com/apps-script/guides/cloud-platform-projects

Specifically, quoting: "There may be cases in which you want multiple Apps Script projects to share the same Google Cloud Platform project. Since these default Cloud Platform projects for Apps Scripts are hidden, they cannot be used as the destination projects for a switch. If you see a "Project does not exist or you need edit access to it" error when attempting to switch a script's project, that usually means you are attempting to move it to one of these default projects.

To get around this restriction, create a new, blank Cloud Platform project, and use the steps above to add each script to that."

like image 74
Michael M Avatar answered Oct 10 '22 18:10

Michael M


I was able to solve this by switching from the Classic Editor to the New Editor, adding the Cloud Project, then reverting back to the Classic Editor (if needed).

like image 21
spikeston Avatar answered Oct 10 '22 16:10

spikeston