Forum Discussion
Error: Exchange: An unknown error has occurred. Refer to correlation ID:
- May 09, 2019
Well you have your answer then. Removing the license of any user that's on hold is not supported, moreover it's a violation of the terms of use. Either remove the hold before removing the license, or delete the user while he's on hold, making it effectively an inactive mailbox.
Get the actual error message from PowerShell, either via the Exchange cmdlets or via MSOL:
Get-MsolUser -HasErrorsOnly | fl DisplayName,UserPrincipalName,@{Name="Error";Expression={($_.errors[0].ErrorDetail.objecterrors.errorrecord.ErrorDescription)}}
hi vasil, got this:
Error : Exchange can't disable the mailbox "APCPR04A123.prod.outlook.com/Microsoft Exchange Hosted Organizations/contoso.onmicrosoft.com/JUANDELACRUZ" because it is on litigation hold.
- VasilMichevMay 09, 2019MVP
Well you have your answer then. Removing the license of any user that's on hold is not supported, moreover it's a violation of the terms of use. Either remove the hold before removing the license, or delete the user while he's on hold, making it effectively an inactive mailbox.
- dominik550Mar 30, 2020Copper Contributor
VasilMichev "Removing the license of any user that's on hold is not supported, moreover it's a violation of the terms of use."
Could you kindly provide a source for this?
Thanks
- apurv787Nov 07, 2022Copper Contributor
VasilMichev - as per your comments I tried to run the command Get-MsolUser -HasErrorsOnly | fl DisplayName,UserPrincipalName,@{Name="Error";Expression={($_.errors[0].ErrorDetail.objecterrors.errorrecord.ErrorDescription)}} and got the results for the affected user however in the error it says only ErrorDescription
- bradconnerNov 09, 2022Copper Contributor
I'm not nearly at the level of most the people out here, but if you only need the errors for a couple of users you can run single user errors like this.
(Get-MsolUser -UserPrincipalName "<User_ID>").Errors
(Get-MsolUser -UserPrincipalName "<User_ID>").Errors.ErrorDetail.ObjectErrors.ErrorRecord.ErrorDescriptionThat will give you a list, hope this helps
- JesseBarkerJan 18, 2023Copper ContributorYes, can you please provide a source for this being unsupported? Sounds like a bug to me. You don't just throw unrecoverable errors on people. If it isn't supported block it from happening and provide feedback to the users.