Get-MgReportTeamUserActivityUserDetail: Cannot set percent because PercentComplete cannot be greater than 100. (Parameter 'value') Actual value was 2147483647 #3131
Labels
status:duplicate
A duplicate issue
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
Describe the bug
When using Microsoft Graph Reports module to pull in data I'm getting a error ; "Get-MgReportTeamUserActivityUserDetail_Get1: Cannot set percent because PercentComplete cannot be greater than 100. (Parameter 'value') Actual value was 2147483647"
This happens for at different times for the cmdlets:
The funny this is that it would work for a combination of the cmdlets on the first run but error out on the others and if I run them again (in debugging) a different combination would work and others not.
Expected behavior
I run the code for each cmdlet:
$Period = "D180"
Try{
Get-MgReportTeamUserActivityUserDetail -Period $Period -OutFile tempYammer.csv -ErrorAction Stop
}Catch{
$_.ErrorDetails.Message
}
Some works and others give me the error:
Get-MgReportTeamUserActivityUserDetail_Get1: Cannot set percent because PercentComplete cannot be greater than 100. (Parameter 'value')
Actual value was 2147483647.
How to reproduce
Run the code: Get-MgReportTeamUserActivityUserDetail -Period $Period -OutFile tempYammer.csv
for each cmdlet in the list above and one of them eventually fails.
SDK Version
2.25.0
Latest version known to work for scenario above?
2.25.0
Known Workarounds
I've not found any.
Debug output
Click to expand log
```DEBUG: [CmdletBeginProcessing]: - Get-MgReportTeamUserActivityUserDetail begin processing with parameterSet 'Get1'.
DEBUG: [Authentication]: - AuthType: 'AppOnly', TokenCredentialType: 'ClientCertificate', ContextScope: 'Process', AppName: 'Graph App Name'.
DEBUG: [Authentication]: - Scopes: [.........(I remove the the other scopes)....... Reports.Read.All].
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://reportsncu.office.com/data/v1.0/download?token=eyJhbGciOiJSUzI1NiIsImtpZCI6IkRDQjZDMzBEOTJFQjg3RUNBM0JFRDczRjYwNkYzRjQ3Q0FFRTlBQkEiLCJ0eXAiOiJKV1QifQ.eyJ0aWQiOiIxOTE3MTg1YS0xODdkLTQxNWItODdl
Ni0yOTVlOTVkZjhhMDEiLCJlbnQiOiJnZXRUZWFtc1VzZXJBY3Rpdml0eVVzZXJEZXRhaWwiLCJhcHAiOiJhZDdkZDMzYy1mZDAxLTQ2ODMtOGI2YS0yMGRkMDc5MjRkOTQiLCJjaWQiOiIyRTcwMTY2NDYzNjY0RkFFQTQ5Qjk5OTRBN0RBRTM4OSIsImd2ZXIiOi
JWMSIsImFnZyI6Ik0xODAiLCJkYXRlIjoiIiwidHZlciI6IlYxLjAiLCJyZXEiOiJyZXBvcnRzbmN1Lm9mZmljZS5jb20iLCJwb3IiOiI0NDMiLCJuYmYiOjE3Mzk1NDU3NTAsImV4cCI6MTalsochangethisforsecurityczOTU0NTg3MCwiaWF0IjoxNzM5NTQ
YS1jNGUyLTQwY2ItOTZhNy1hYzkwZGY5MjY4NWMiLCJhdWQiOiJyZXBvcnRzbmN1Lm9mZmljZS5jb20ifQ.YtrL1Gq8XW4ekY79XfI_Fs9uSyBX7bjJo1OFCnFfnJi5kPZXpuD9CfhTa5zcr60DdDEybL4zaQUjLnlbQn-OFvuzSvMzAfVt379p746Ripj0TJ5f_dW
BcBlqjYw0uu8ClmhJcbn3VO3cns5AwxhSa7WSKMzOyg3EqZVgOXnR9GIbcHJNqJxcsCI5Iykj6gOzVZWRiYF6PdLGmxbZokvHq3zomXj-ZXvwR6LYLjLS9RQUwJNyMZu9WcwdZy798ho4MtUUElBVtBYVW7WnWxQI6SxPZtrdcDzu72JZiEmH9d8hSEqRgOioPuXJb
NNnWMmG5qWHMAzjik1cigm4i6x40g
Headers:
FeatureFlag : 00000043
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.14393; en-GB),PowerShell/2025.0.0
Accept-Encoding : gzip
SdkVersion : graph-powershell/2.25.0,
client-request-id : c4da3945-a136-4a63-874d-9fd555847f17
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-store, no-cache, max-age=0, s-maxage=0, private
Pragma : no-cache
Transfer-Encoding : chunked
ETag : "Mi8xMi8yMDI1IDEyOjAwOjAwIEFNICswMDowMA=="
Server : Microsoft-IIS/10.0
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Frame-Options : Deny
Content-Security-Policy : frame-options
requestId : 335E58605F694EC58381F9CFD832BDBD
X-Powered-By : ASP.NET
Date : Fri, 14 Feb 2025 15:09:10 GMT
Body:
Report Refresh Date,User Id,User Principal Name,Last Activity Date,Is Deleted,Deleted Date,Assigned Products,Team Chat Message Count,Private Chat Message Count,Call Count,Meeting Count,Meetings Orga
nized Count,Meetings Attended Count,Ad Hoc Meetings Organized Count,Ad Hoc Meetings Attended Count,Scheduled One-time Meetings Organized Count,Scheduled One-time Meetings Attended Count,Scheduled Re
curring Meetings Organized Count,Scheduled Recurring Meetings Attended Count,Audio Duration,Video Duration,Screen Share Duration,Audio Duration In Seconds,Video Duration In Seconds,Screen Share Dura
tion In Seconds,Has Other Action,Urgent Messages,Post Messages,Tenant Display Name,Shared Channel Tenant Display Names,Reply Messages,Is Licensed,Report Period
{
I removed private data
}
2024-10-05,False,,MICROSOFT FABRIC (F
DATA TRUNCATED DUE TO SIZE
WARNING: C:\Users-----\Documents\Logs\tempTeams.csv already exists. The file will be overridden.
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): y
DEBUG: [CmdletException]: Received exception with message 'PSArgumentOutOfRangeException - Cannot set percent because PercentComplete cannot be greater than 100. (Parameter 'value')
Actual value was 2147483647. : at System.Management.Automation.ProgressRecord.set_PercentComplete(Int32 value)
at Microsoft.Graph.PowerShell.PSCmdletExtensions.GetProgress(ProgressRecord currentProgressRecord, Stream stream)
at Microsoft.Graph.PowerShell.PSCmdletExtensions.WriteToStream(PSCmdlet cmdlet, Stream inputStream, Stream outputStream, String downloadUrl, CancellationToken cancellationToken)
at Microsoft.Graph.PowerShell.PSCmdletExtensions.WriteToFile(PSCmdlet cmdlet, HttpResponseMessage response, Stream inputStream, String filePath, CancellationToken cancellationToken)
at Microsoft.Graph.PowerShell.Cmdlets.GetMgReportTeamUserActivityUserDetail_Get1.on2Xx(HttpResponseMessage responseMessage, Task
1 response) at Microsoft.Graph.PowerShell.Reports.ReportGetTeamsUserActivityUserDetail1_Call(HttpRequestMessage request, Func
3 on2Xx, Func3 onDefault, IEventListener eventListener, ISendAsync sender) at Microsoft.Graph.PowerShell.Reports.ReportGetTeamsUserActivityUserDetail1_Call(HttpRequestMessage request, Func
3 on2Xx, Func3 onDefault, IEventListener eventListener, ISendAsync sender) at Microsoft.Graph.PowerShell.Reports.ReportGetTeamsUserActivityUserDetail1(String period, IDictionary headers, Func
3 on2Xx, Func`3 onDefault, IEventListener eventListener, ISendAsync sender)at Microsoft.Graph.PowerShell.Cmdlets.GetMgReportTeamUserActivityUserDetail_Get1.ProcessRecordAsync()'
The text was updated successfully, but these errors were encountered: