Reputation: 397
I am attempting to publish a simple Google Docs add-on, following these instructions: Publishing an Add-on
However when completing the configuration for Google Apps Marketplace SDK, I enter my script project key (found from file --> project properties) and receive the following error: 'Project Key is not associated with the current project.'
Only instance where I can find someone with the same problem (here) occurred when they created a project on the Google Developers Console instead of going through resources --> Advanced Google Services. This is not the reason for my error, can anyone shred any light onto my problem?
Any help would be gratefully received, Connor
Upvotes: 18
Views: 4318
Reputation: 321
It is a bit confusing on the GAS UI that it has a copy button for the ID on App Script > Project Settings page, however, it doesnt let me save until I found out the real ID.
As shown below, to get your ID (at least my case), after deployment or manage deployment, you can get the version number and the ID, here is the tricky part that the ID you get here on the URL is different with the one from the copy button.
Upvotes: 0
Reputation: 530
My solution: I was using the wrong ID. I had copied the Deployment ID from after the deployment (a Youtube video I watched showed this)
The solution was using the Script ID from the App Script->Project Settings page
Upvotes: 0
Reputation: 41
Looks like it is not possible to change scriptId after a round of review. So you can just update only version. I changed to last number of deployment version like '6' and it is saved.
Upvotes: 0
Reputation: 343
I was able to fix by combining two successful responses from this post:
Upvotes: 24
Reputation: 175
Try to use the Google Workspace Add On and enter the App Script Deployment ID. That accepted for me and showed it as a Sheets Add-On
Upvotes: 1
Reputation: 61
I got the same error today, I made it finally work. I will go through the fields I checked.
The above steps worked for me.
Upvotes: 1
Reputation: 28162
Hmm I had issues as well. It didn't work with version 1 in "Docs Add-on script version" but while I tried a bunch of stuff I ended up deploying again and then I incremented version to "2" and then it worked.
Upvotes: 1
Reputation: 1
It's different in deploy or test in legacy editor and new editor.
And I'm using legacy editor before (because some following steps from documents is not work in new editor),
So when I lookup Mange deployment in new editor,
It wasn't exisisted,
And the deployment ID it's not work when I fill out App configuration in Google Workspace Market.
For me I just change to following the Legacy editor's following steps https://developers.google.com/workspace/marketplace/enable-configure-sdk#legacy-editor_2
and It works.
Upvotes: 0
Reputation: 186
For me, the Google App Script file needed to be associated with the project.
That's what worked for me, but maybe other developers get that error for other reasons.
Upvotes: 1
Reputation: 2192
I needed to include a correct version number (1,2,3,4; not "v0.1") in addition to the script ID. The error suggested my script ID was wrong, but the error went away when I picked a valid version number.
Upvotes: 3
Reputation: 41
For me I need to go Publish->Deploy as API. Select the correct version and then the publish screen worked
Upvotes: 4
Reputation: 397
Kept trying, did not change the way I tried publishing nor the project key I was entering and it worked after so many retries. Wish I could give a more detailed answer...
Upvotes: 3