Forum Discussion
Anonymous
6 years agoNot applicable
Connection closed when using the Invoke-PowerBIRestMethod to refresh dataset
We have a PowerShell script that uses the "Invoke-PowerBIRestMethod" to force a dataset to refresh. The script has been working without issues for the past several months. For the last week and a h...
- 6 years ago
For me, looks like this was related to the new TLS requirment. Adding this to my PS script resolved it:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
- Anonymous6 years ago
You are correct - we discovered that trick as well and it worked for us.
GTS_ONE
6 years agoAdvocate II
For what it's worth, I think I'm seeing the same thing as of today.
I built out a whole series of new scripts on Tue Jun 23rd and had tested them successfully all throughout the day.
But as of today (Jun 26th) I'm getting that same "underlying connection was closed..." error.