February 22, 2021 at 2:49 pm
Hi, I have had the below script running for approx 12 months and after a power BI Upgrade on Friday last, it has stopped working.
I can manually work around it but it would be nice to get it working again.
Current PowerBI Report Server version: Version 1.10.7698.27886 (January 2021).
The error is "The remote server returned an error: (403) Forbidden."
Does anyone have any ideas?
Cheers,
Dave
$id = "************************ removed for security**********************"
$URL = "http://server1/Reports/api/v2.0/CacheRefreshPlans(" + $id + ")/Model.Execute"
#Write-Output $URL
$MailFailureNotify = @{"notifyOption"="MailOnFailure"}
Invoke-WebRequest -Uri $URL -Method Post -Body $MailFailureNotify -UseDefaultCredentials -UseBasicParsing
February 22, 2021 at 2:59 pm
403 is an HTTP error. Perhaps HTTPS is now being enforced?
February 22, 2021 at 4:05 pm
Hiya Phil, I tried that but no luck.
it’s worth mentioning that other scripts using the same method are unaffected.
cheers,
Dave
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy