Skip to content

Bug report: m365 spo file list -u $siteUrl -f Documents generating errors #2704

@lsavard

Description

@lsavard

Description

Trying to retreive list of files in onedrives. The command
m365 spo file list -u $siteUrl -f Documents
fails with a few different error message on many of them.

The powershell equivalent
Get-PnPFolderItem -ItemType File -Recursive -FolderSiteRelativeUrl "Documents"
does not give errors

Steps to reproduce

execute the command
m365 spo file list -u $siteUrl -f Documents
On many onedrives with many documents

Expected results

Complete file list in the onedrive

Actual results

Error messages :

  • Error: The expression "web/GetFolderByServerRelativeUrl('/personal/xxxxxx/Documents/Pictures/xxxx b'day xxxx')" is not valid.
  • Error: File Not Found.
  • Error: The attempted operation is prohibited because it exceeds the list view threshold.

Diagnostics

I'll try to provide --debug info foir the "Error: File Not Found" message. I think the other two are quite self-explanatory :)

CLI for Microsoft 365 version

v4.0.0-beta.d2419e0

nodejs version

v14.17.6

Operating system (environment)

Windows

Shell

Windows PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions