ERROR: Drive File ID: xxxxx, Not Found

51 views
Skip to first unread message

Matt Broughton

unread,
Oct 15, 2025, 10:58:00 PM (13 days ago) Oct 15
to GAM for Google Workspace
Hi all,

I'm trying to run a command that I've used many times in the past, but I'm having problems once I migrated to a new GAM server. 

The command:

gam redirect csv - multiprocess todrive tdfileid <drive file id> tdsheet id:1975549845 tdupdatesheet tdretaintitle tdnoemail tdnobrowser csv gsheet us...@domain.com <drive file id> id:0 gam user us...@domain.com copy drivefile <template drive file id> newfilename "~filename" parentid "~folderid" csv addcsvdata username "~username"

When I run that on our new sever, I get:

ERROR: Drive File ID: <drive file id>, Not Found

At first I thought it was an API Scope issue (via gam user service...@domain.com update serviceaccount), but updating that to include the relevant scopes didn't fix it. 

Any ideas?

Cheers,
Matt

Ross Scroggs

unread,
Oct 16, 2025, 10:28:44 AM (12 days ago) Oct 16
to google-ap...@googlegroups.com
What does this show:
gam user  us...@domain.com show fileinfo <drive file id>

Ross
----
Ross Scroggs




Yokohama International School

2-100-1 Kominato-cho, Naka-ku, Yokohama 231-0802 Japan

+81(0)45-622-0084

www.yis.ac.jp


Yokohama International School Logo

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/2eba4beb-61e0-41fc-b31f-77bd630c07a0n%40googlegroups.com.

Matt Broughton

unread,
Oct 17, 2025, 3:00:27 AM (11 days ago) Oct 17
to google-ap...@googlegroups.com
Hi Ross,

This is what I get:

User: us...@domain.com, Show 1 Drive File/Folder
  Drive File: Name (<drive file id>)
    capabilities:
      canAddChildren: False
      canAddFolderFromAnotherDrive: False
      canChangeCopyRequiresWriterPermission: True
      canChangeItemDownloadRestriction: True
      canChangeSecurityUpdateEnabled: False
      canChangeViewersCanCopyContent: True
      canComment: True
      canCopy: True
      canDelete: True
      canDeleteChildren: False
      canDisableInheritedPermissions: False
      canDownload: True
      canEdit: True
      canEnableInheritedPermissions: True
      canListChildren: False
      canModifyContent: True
      canModifyContentRestriction: True
      canModifyEditorContentRestriction: True
      canModifyLabels: False
      canModifyOwnerContentRestriction: True
      canMoveChildrenOutOfDrive: False
      canMoveChildrenOutOfTeamDrive: False
      canMoveChildrenWithinDrive: False
      canMoveChildrenWithinTeamDrive: False
      canMoveItemIntoTeamDrive: True
      canMoveItemOutOfDrive: True
      canMoveItemOutOfTeamDrive: True
      canMoveItemWithinDrive: True
      canMoveItemWithinTeamDrive: True
      canMoveTeamDriveItem: True
      canReadDrive: True
      canReadLabels: False
      canReadRevisions: True
      canReadTeamDrive: True
      canRemoveChildren: False
      canRemoveContentRestriction: False
      canRename: True
      canShare: True
      canTrash: True
      canTrashChildren: False
      canUntrash: True
    copyRequiresWriterPermission: False
    createdTime: 2025-09-24T02:13:52Z
    downloadRestrictions:
      effectiveDownloadRestrictionWithContext:
        restrictedForReaders: False
        restrictedForWriters: False
      itemDownloadRestriction:
        restrictedForReaders: False
        restrictedForWriters: False
    driveId: <drive id>
    explicitlyTrashed: False
    exportLinks:
      application/pdf: https://docs.google.com/spreadsheets/export?id=<drive file id>&exportFormat=pdf
      application/vnd.oasis.opendocument.spreadsheet: https://docs.google.com/spreadsheets/export?id=<drive file id>&exportFormat=ods
      application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: https://docs.google.com/spreadsheets/export?id=<drive file id>&exportFormat=xlsx
      application/x-vnd.oasis.opendocument.spreadsheet: https://docs.google.com/spreadsheets/export?id=<drive file id>&exportFormat=ods
      application/zip: https://docs.google.com/spreadsheets/export?id=<drive file id>&exportFormat=zip
      text/csv: https://docs.google.com/spreadsheets/export?id=<drive file id>&exportFormat=csv
      text/tab-separated-values: https://docs.google.com/spreadsheets/export?id=<drive file id>&exportFormat=tsv
    hasAugmentedPermissions: False
    hasThumbnail: True
    iconLink: https://drive-thirdparty.googleusercontent.com/16/type/application/vnd.google-apps.spreadsheet
    id: <drive file id>
    inheritedPermissionsDisabled: False
    isAppAuthorized: False
    lastModifyingUser:
      displayName: User
      emailAddress: us...@domain.com
      me: True
      permissionId: 16034622298743716504
      photoLink: https://l...
      securityUpdateEligible: False
      securityUpdateEnabled: False
    mimeType: application/vnd.google-apps.spreadsheet
    modifiedByMe: True
    modifiedByMeTime: 2025-10-15T05:02:58Z
    modifiedTime: 2025-10-15T05:02:58Z
    name: Name
    parents:
      id: ____
        isRoot: False
    permissionIds:
      03466423202009262796
      10178239470239440942
    quotaBytesUsed: 2092
    size: 2092
    spaces: drive
    starred: False
    teamDriveId: 0ABxL84Y74lH9Uk9PVA
    thumbnailLink: https:/...
    thumbnailVersion: 22
    trashed: False
    version: 86
    viewedByMe: True
    viewedByMeTime: 2025-10-15T05:02:58Z
    viewersCanCopyContent: True
    webViewLink: https://docs.google.com/spreadsheets/d/<drive file id>/edit?usp=drivesdk

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/zoHBI_QavNE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/5EA19D78-328D-47F1-BBD0-2D55975B74AD%40gmail.com.

Ross Scroggs

unread,
Oct 17, 2025, 11:15:10 AM (11 days ago) Oct 17
to google-ap...@googlegroups.com
See: https://github.com/GAM-team/GAM/wiki/Todrive#upload-user

Add  tduser us...@domain.com 
gam redirect csv - multiprocess todrive tduser us...@domain.com dfileid <drive file id> tdsheet id:1975549845 tdupdatesheet tdretaintitle tdnoemail tdnobrowser csv gsheet us...@domain.com <drive file id> id:0 gam user us...@domain.com copy drivefile <template drive file id> newfilename "~filename" parentid "~folderid" csv addcsvdata username "~username"

Ross

----
Ross Scroggs



Reply all
Reply to author
Forward
0 new messages