drive.files.copy failed with error

430 views
Skip to first unread message

in...@premiercarts.com

unread,
May 31, 2023, 11:29:52 AM5/31/23
to Google Apps Script Community
I have a published add-on that I have NOT made a change in the code to since December of 2019. In the last couple of weeks I have gotten a handful of users who are experiencing a "drive.files.copy failed with error" when trying to create a document merge from a Spreadsheet. I am using the Drive API and the users select their template file using the Drive Picker, so they have the correct permissions. The people I have heard from so far have been using the add-on successfully for many months or years. It has not happened to any of my accounts yet and my overall error rate for the add-on is still fairly low / normal, but error seems to be not resolving for those who start to experience the issue. Curious if anyone else is experiencing something similar?
2023-05-31_Add-on-HealthSummary.png

Ed Sambuco

unread,
May 31, 2023, 3:22:20 PM5/31/23
to google-apps-sc...@googlegroups.com
Occasionally the Drive service jst fails wilthsoem kind of internal system error.  I use Drive.Permissions and there have been a ew times over the last few months when it failed and then ran fine on resubmit.  Does the file copy perhaps work for you on resubmit?

Tht is to say, ther are occasional Google system errors .. ghosts in the machine.

On Wed, May 31, 2023 at 11:29 AM in...@premiercarts.com <in...@premiercarts.com> wrote:
I have a published add-on that I have NOT made a change in the code to since December of 2019. In the last couple of weeks I have gotten a handful of users who are experiencing a "drive.files.copy failed with error" when trying to create a document merge from a Spreadsheet. I am using the Drive API and the users select their template file using the Drive Picker, so they have the correct permissions. The people I have heard from so far have been using the add-on successfully for many months or years. It has not happened to any of my accounts yet and my overall error rate for the add-on is still fairly low / normal, but error seems to be not resolving for those who start to experience the issue. Curious if anyone else is experiencing something similar?

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/b478393f-384c-4466-ad77-3cb533843d7an%40googlegroups.com.

in...@premiercarts.com

unread,
Jun 2, 2023, 10:47:21 AM6/2/23
to Google Apps Script Community
Thanks for the reply. The people I am communicating with are telling me they are receiving this error repeatedly and basically the add-on is not working for them anymore because of this error. I am hoping it is an anomaly, but the handful of people I have communicated with are telling me it is not. I am not getting the error on any of my accounts. So far all of the users I have heard from are outside of the United States. I can not think of any code changes to make, which is why I decided to post to this group to see if there were others experiencing this.   

Ed Sambuco

unread,
Jun 2, 2023, 2:44:26 PM6/2/23
to google-apps-sc...@googlegroups.com
From what you tell us, this really sounds like some kind of Googlle internal error.  Have yu contacted Google support?

Jonathan Butler

unread,
Jun 2, 2023, 4:28:07 PM6/2/23
to google-apps-sc...@googlegroups.com
I am experiencing an error like this. The application fails at the call "drive.files.insert". The full error is below.


Jun 2, 2023, 1:08:49 PM
Debug
{ [GoogleJsonResponseException: API call to drive.files.insert failed with error: Internal Error]
  details: { code: 500, message: 'Internal Error', errors: [ [Object] ] },
  name: 'GoogleJsonResponseException' }

Reply all
Reply to author
Forward
0 new messages