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
{{ message }}
Repository navigation
Get-MgReportTeamUserActivityCount returning Edm type error #222
Get-MgReportTeamUserActivityUserCount : Expression of type 'Edm.Double' cannot be converted to type 'Edm.String'.
At line:1 char:1
+ Get-MgReportTeamUserActivityUserCount
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ({ Period = 7D }:<>f__AnonymousType3`1) [Get-MgReportTea...tyUserCount_Get], Exception
+ FullyQualifiedErrorId : BadRequest,Microsoft.Graph.PowerShell.Cmdlets.GetMgReportTeamUserActivityUserCount_Get
None of the Teams report cmdlets appear to be working.
Darrel (@darrelmiller) so if I format the arguement correctly, I then get a different error which I assume is the cmdlet not expecting a csv as the result. I didn't see that covered in #151 should that be it's own issue?
Get-MgReportTeamUserActivityCount -Period "'D7'"
Welcome To Microsoft Graph!
Get-MgReportTeamUserActivityCount : Expected '{' or '['. Was String: Report.
At line:12 char:1
+ Get-MgReportTeamUserActivityCount -Period "'D7'"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-MgReportTeamUserActivityCount_Get], ParserException
+ FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Cmdlets.GetMgReportTeamUserActivityCount_Get
Hello, is there any update? I would really like to use Get-MgReportTeamUserActivityCount command but I am also struggling with the date format as mentioned above...
Is there any hope this will be fixed/adjusted - or do you think you can advise how to input the date so the cmdlet will accept it?
Many thanks,
Tomas
Hello, is there any update? I would really like to use Get-MgReportTeamUserActivityCount command but I am also struggling with the date format as mentioned above...
Is there any hope this will be fixed/adjusted - or do you think you can advise how to input the date so the cmdlet will accept it?
Many thanks,
Tomas
TomasCrha, you can pass an argument to the cmdlet so that the resulting string is literally 'D7' for instance, but the cmdlet still cannot handle the csv return type. So this needs to have 2 bugs fixed.
I ended up using Power BI and the Microsoft Graph report framework to get around this issue.
Activity
darrelmiller commentedon May 13, 2020
Yeah sorry about this. It's a known issue #151. We have a fix coming out in the next update which will be in a few weeks.
stvpwrs commentedon May 13, 2020
Darrel (@darrelmiller) so if I format the arguement correctly, I then get a different error which I assume is the cmdlet not expecting a csv as the result. I didn't see that covered in #151 should that be it's own issue?
Get-MgReportTeamUserActivityCount -Period "'D7'"
peombwa commentedon May 14, 2020
Steve Powers (@stvpwrs) the second issue is an issue with the code generator - it does not handle non JSON responses. This is covered in #182.
TomasCrha commentedon Jun 11, 2020
Hello, is there any update? I would really like to use Get-MgReportTeamUserActivityCount command but I am also struggling with the date format as mentioned above...
Is there any hope this will be fixed/adjusted - or do you think you can advise how to input the date so the cmdlet will accept it?
Many thanks,
Tomas
stvpwrs commentedon Jun 15, 2020
TomasCrha, you can pass an argument to the cmdlet so that the resulting string is literally
'D7'for instance, but the cmdlet still cannot handle the csv return type. So this needs to have 2 bugs fixed.I ended up using Power BI and the Microsoft Graph report framework to get around this issue.
Steve
peombwa commentedon Nov 11, 2020
Duplicate of #407. Downloading of reports is being tracked by #407.