You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Most of the time, the command Get-MgUserPhotoContent does not seem to handle visual progress bar properly as the following error message is given:
Get-MgUserPhotoContent_Get: Cannot set percent because PercentComplete cannot be greater than 100. (Parameter 'value')
Actual value was 2147483647.
The error appears with production and beta MgGraph modules.
Expected behavior
The error message should not appear so that the command can be used without -ErrorAction SilentlyContinue and the script is not interrupted.
Debug Output
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.Beta.PowerShell.PSCmdletExtensions.GetProgress(ProgressRecord currentProgressRecord, Stream stream)
at Microsoft.Graph.Beta.PowerShell.PSCmdletExtensions.WriteToStream(PSCmdlet cmdlet, Stream inputStream, Stream outputStream, String downloadUrl, CancellationToken cancellationToken)
at Microsoft.Graph.Beta.PowerShell.PSCmdletExtensions.WriteToFile(PSCmdlet cmdlet, HttpResponseMessage response, Stream inputStream, String filePath, CancellationToken cancellationToken)
at Microsoft.Graph.Beta.PowerShell.Cmdlets.GetMgBetaUserPhotoContent_Get.on2Xx(HttpResponseMessage responseMessage, Task`1 response)
at Microsoft.Graph.Beta.PowerShell.Users.UserGetPhotoContent_Call(HttpRequestMessage request, Func`3 on2Xx, Func`3 onDefault, IEventListener eventListener, ISendAsync sender)
at Microsoft.Graph.Beta.PowerShell.Users.UserGetPhotoContent_Call(HttpRequestMessage request, Func`3 on2Xx, Func`3 onDefault, IEventListener eventListener, ISendAsync sender)
at Microsoft.Graph.Beta.PowerShell.Users.UserGetPhotoContent(String userId, Func`3 on2Xx, Func`3 onDefault, IEventListener eventListener, ISendAsync sender)
at Microsoft.Graph.Beta.PowerShell.Cmdlets.GetMgBetaUserPhotoContent_Get.ProcessRecordAsync()'
Get-MgBetaUserPhotoContent_Get: Cannot set percent because PercentComplete cannot be greater than 100. (Parameter 'value')
Actual value was 2147483647.
DEBUG: [CmdletEndProcessing]: - Get-MgBetaUserPhotoContent end processing.
Hi @jpawlowski apologies for not responding on this issue earlier. Please upgrade to the latest SDK version (2.25.0) and open an issue targeting that version if you are still experiencing the same.
Describe the bug
Most of the time, the command
Get-MgUserPhotoContent
does not seem to handle visual progress bar properly as the following error message is given:The error appears with production and beta MgGraph modules.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The error message should not appear so that the command can be used without
-ErrorAction SilentlyContinue
and the script is not interrupted.Debug Output
Module Version
Environment Data
The text was updated successfully, but these errors were encountered: