Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Automatic refresh of powerbi reports failing after some successful runs

Hi,

 

I automated powerbi reports by using python and powershell based on trigger available from source. In development the process is working good and deployed to production that same scripts it worked well some days. After some successfull runs in prod is continiously failing. but one think, i scheduled 5 reports out of them some is acquiring token successfully and some of them not. Its happening randomly on daily basis. below is the error which i am receiving when failure occured. it will be very helpfull if replied ASAP.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"

0 REPLIES 0

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!