Hi,
I am trying to automate the powerbi report when the data table is loaded then the report should be refreshed. I was able to get the access token some days in production and reports are get refreshed. After some days that same process is failing with the below error. But the process is working in development without any interruption. In production same program is executing manually but not with trigger. Please assist me to resolve this issue. Thanks...
Error:Exception calling "AcquireToken" with "3" argument(s):
"accessing_ws_metadata_exchange_failed: Accessing WS metadata exchange failed"
At D:\myfolder\RefreshPowerbiReport.ps1:101 char:2
+ throw $_.Exception.Message
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Exception calli...xchange fai
led":String) [], RuntimeException
+ FullyQualifiedErrorId : Exception calling "AcquireToken" with "3" argume
nt(s): "accessing_ws_metadata_exchange_failed: Accessing WS metadata excha
nge failed"