-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Site object does not contain Usage property so export fails #528
Labels
sample issue
Reported issue with the sample
Comments
@pkbullock i can investigate and fix if required |
I am having the same issue. |
Usage property can be retrieved
However the value of $Site.Usage.Hits, $Site.Usage.Visits, etc.. are 0 except $Site.Usage.Storage and $Site.Usage.StoragePercentageUsed I could not find out how to get these values, either the script can be amended to remove the usage data or comment added that the usage data are not returned for SharePoint Online. |
reshmee011
added a commit
to reshmee011/script-samples
that referenced
this issue
Jul 29, 2024
Proposed fix for issue pnp#528
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The script at https://github.com/pnp/script-samples/tree/main/scripts/spo-export-site-usage-reports fails.
When checking it seems that the Site object (stored in the $Reports variable) does not contain the Usage property.
Has something changed between PnP.PowerShell versions?
I have tested with PnP.PowerShell 1.12.0 and PnP.PowerShell 2.1.1, but same thing.
The text was updated successfully, but these errors were encountered: