Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All
I want to refresh dataset with PowerShell. I did google on it and found some code but all codes are not working currently.
Can you please suggest any code which is currently working and can refresh dataset with PowerShell
the code I was using stopped to work from day to night...
I've been using powershell to refresh powerbi datasets since the begining of times and recently it is getting this error:
is this solution still working for the rest of you?
Invoke-RestMethod -Uri $uri –Headers $authHeader –Method GET –Verbose VERBOSE: POST https://api.powerbi.com/v1.0/myorg/groups/editedtohidden/datasets/editedtohidden/refreshes with 0-byte payload Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a send. At line:74 char:1 + Invoke-RestMethod -Uri $uri –Headers $authHeader –Method POST –Verbos ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand VERBOSE: GET https://api.powerbi.com/v1.0/myorg/groups/editedtohidden/datasets/editedtohidden/refreshes with 0-byte payload Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a send. At line:78 char:1 + Invoke-RestMethod -Uri $uri –Headers $authHeader –Method GET –Verbose + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
2 | |
2 | |
1 | |
1 |