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
deryl1974
Frequent Visitor

Operation returned an invalid status code 'OK'

Hi All,

 

I am getting a wierd issue when making a call to the api, It returns below error:

 

Operation returned an invalid status code 'OK'

 

This is the call:

var export = await pbClient.Reports.ExportToFileInGroupAsync(groupId, reportId, exportRequest);

 

Appreciate your help in advance.

 

Thanks
Lloyd

 

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @deryl1974 ,

 

If your rest API response is 200 OK, it means the operation is successful.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Liang,

 

Thank you for your response. Here is the what i got from the response object:

 

<div class="contentErrorText">We couldn't find the page you were looking for.</div>
<div class="contentErrorDescription">TECHNICAL DETAILS <br/>An unknown error occurred. If you continue to see this error, please provide the following information when requesting support.</div>

 

Also somehow the request url goes to :{https://app.powerbi.com/ErrorPage?code=404}

 

Here is what i am using

 

var pbClient = new PowerBIClient(new Uri("https://app.powerbi.com"), tokenCredentials);

 

 

Best 

Lloyd

 

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.