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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Power Shell command to extract Reports

Hi, 

 

I am hitting an error when I try to scan through all the workspace in my organization stored in a text file and retrieve all the power bi reports using the power shell command.  Even I don't export to a text file, it runs for a while and then throws the same error. 

 

I read in another thread it could be due to the tenant being busy.  I tried executing this command during different times and it always results in an error.  Is there any way to fix it? 

 

Basically, I need to extract all the workspaces and artifacts under it in an excel or CSV format.   So I extract a workspace id first and then copied to a text file and scan through it to get the report details.  

 

Mohan_Babu_0-1604445385817.png

 

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Make sure the power bi file is closed. Also, close any other power shell that might have accessed this file. and try and share any error

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks for your reply.  I restarted the pc and tried but still the same error.  As I mentioned earlier, even if i don't export to file I get the same error. 

 

Mohan_Babu_0-1604461944548.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.