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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Codehustler
Regular Visitor

Automation of exporting power bi report to a shared drive path

Hi, I have a requirement for automatically without user interaction exporting and saving a powerbi paginated report to a shafed drive path. For this, i performed all these steps,

i am using powerbi SDK in my C# consile application which is using three Api calls ExportToFileInGroup(), ExportToFileStatusInGroup(),  GetFileOfExportToFileInGroup().

I have created a service principal with Tenant.Read.All application permissions and other delegated permissions too.

I have added the service principal in a security group and enabled api authentication in power bi tenant settings.

Added service principal as a admin in workspace.

Workspace is of premium capacity.

 

Issue: when i am calling ExportToFileInGroup(), it is returning a Export object with status 'NotStarted' but in next line

when i am asking for ExportToFileStatusInGroup(), it is giving 'Failed' status without any runtime error. 

Please help me with this issue if you have any solution.

Thanks.

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @Codehustler ,

Is there any error message details? Please check if you hit any following limitations:

vyiruanmsft_0-1685517120924.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Codehustler
Regular Visitor

Please help with solutions.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.