Forum Discussion
mmace1
Impactful Individual
4 years agoError using Get-PowerBiActivityEvent - 'BadRequest'
I am a Power BI Admin, and did run Login-PowerBiServiceAccount first Say if I run: Get-PowerBIActivityEvent -StartDateTime 2022-04-24T12:00:00 -EndDateTime 2022-04-25T12:00:00 I receive ...
- Anonymous4 years ago
I had this same issue today and then noticed this in the documentation:
The Get-PowerBIActivityEvent cmdlet takes a StartDateTime and an EndDateTime parameter with the same restrictions as the ActivityEvents REST API. In other words, the start date and end date must reference the same date value because you can only retrieve the activity data for one day at a time.
After I set my dates to start and end on the same day (2022-04-26 00:00:00-2022-04-26 23:59:59), then I quit receiving the error.
mmace1
Impactful Individual
4 years agoI am a Power BI Admin, and did run Login-PowerBiServiceAccount first
Say if I run:
Get-PowerBIActivityEvent -StartDateTime 2022-04-24T12:00:00 -EndDateTime 2022-04-25T12:00:00
I receive the error:
Operation returned an invalid status code 'BadRequest',Microsoft.PowerBI.Commands.Admin.GetPowerBIActivityEvent
Not really sure how to troubleshoot...