msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Get-MgReportOffice365ActivationUserDetail : Expected '{' or '['. Was String: Report.

Open mjgerena opened this issue 3 years ago • 4 comments

PS C:\Windows\system32> Update-Module Microsoft.Graph

PS C:\Windows\system32> Get-MgReportOffice365ActivationUserDetail -OutFile D:\Export\LicensingReport\Dev-MgReportOffice365ActivationUserDetail.csv Get-MgReportOffice365ActivationUserDetail : Expected '{' or '['. Was String: Report. At line:1 char:1

  • Get-MgReportOffice365ActivationUserDetail -OutFile D:\Export\Licensin ...
  •   + CategoryInfo          : NotSpecified: (:) [Get-MgReportOff...nUserDetail_Get], ParserException
      + FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Cmdlets.GetMgReportOffice365ActivationUserDetail_Get
    

mjgerena avatar Aug 16 '22 18:08 mjgerena

Get-MgReportOffice365ActivationUserDetail -OutFile Dev-MgReportOffice365ActivationUserDetail.csv works in the latest version of SDK (1.11.0). Which module version are you using - Get-Module Microsoft.Graph.Reports?

peombwa avatar Aug 22 '22 22:08 peombwa

@mjgerena thank you for identifying this issue. Kindly confirm the sdk version you are using by running the command below.

Get-Module -Name Microsoft.Graph -ListAvailable

timayabi2020 avatar Aug 23 '22 05:08 timayabi2020

PS C:\Windows\system32> Get-Module -Name Microsoft.Graph -ListAvailable

Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version Name ExportedCommands


Manifest 1.11.0 Microsoft.Graph Manifest 1.9.6 Microsoft.Graph


DISCLAIMER & CONFIDENTIALITY NOTICE: This email neither constitutes an agreement to conduct transactions by electronic means nor creates any legally binding contract or enforceable obligation in the absence of a fully signed written contract. The information contained in this email and any attachments may be confidential, legally privileged and/or exempt from disclosure under applicable law. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. Any inadvertent or accidental disclosure of confidential, legally privileged and/or exempt information contained in this email does not constitute a knowing waiver of any rights regarding such information or materials. If you have received this communication in error, please reply to the sender and destroy all copies of the message (including any attachments).

mjgerena avatar Aug 23 '22 10:08 mjgerena

@mjgerena kindly update to version 1.11.1 and share your findings

timayabi2020 avatar Sep 15 '22 09:09 timayabi2020

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

ghost avatar Sep 27 '22 00:09 ghost

PS C:\Windows\system32> Get-Module -Name Microsoft.Graph -ListAvailable

Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version Name ExportedCommands


Manifest 1.11.0 Microsoft.Graph Manifest 1.9.6 Microsoft.Graph


DISCLAIMER & CONFIDENTIALITY NOTICE: This email neither constitutes an agreement to conduct transactions by electronic means nor creates any legally binding contract or enforceable obligation in the absence of a fully signed written contract. The information contained in this email and any attachments may be confidential, legally privileged and/or exempt from disclosure under applicable law. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. Any inadvertent or accidental disclosure of confidential, legally privileged and/or exempt information contained in this email does not constitute a knowing waiver of any rights regarding such information or materials. If you have received this communication in error, please reply to the sender and destroy all copies of the message (including any attachments).

mjgerena avatar Oct 11 '22 07:10 mjgerena