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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jmainaud_zeenea
New Member

Possible status of WorkspaceInfo GetScanStatus status field

Hello,

 

We are trying to extract metadata with the Power BI REST Admin API.
The documentation says we should

  1. call WorkspaceInfo PostWorkspaceInfo
  2. wait until WorkspaceInfo GetScanStatus status is "Succeeded"
  3. then call WorkspaceInfo GetScanResult

It seems easy.

 

My problem is that documentation and any blog I found only speak about the happy path.

Suppose the scan fails for whatever reason, I expect the status to never be "Succeeded" and my process will wait forever.

So I need to deal with other status values, at least to final ones.

But I found the list of the status values nowhere. Examples of API documentation show "Succeeded" and "NotRunning" (I suppose it means "not yet running") status. 

 

Can anyone list or redirect me to the list of these values? If possible with their description.

 

Thank you,

3 REPLIES 3
jmainaud_zeenea
New Member

Hello,

Finally doing some tests, we discovered an other value to the status: "Running". We can expect the value to be "Failed" in case of failure but as we are not sure about it. So we decided to wait until the status is not "NotRunning" or "Running", take "Succeeded" as a success and other value to a failure.

v-shex-msft
Community Support
Community Support

Hi @jmainaud_zeenea,

I think you can try to convert these operations to async requests with a custom timeout duration, they should help improve you to work with these APIs without keeping waiting for the response.

Asynchronous programming in C# | Microsoft Docs

c# - Asynchronously wait for Task<T> to complete with timeout - Stack Overflow

In addition, you can also try to submit an idea for adding timeout property into the scanning API.

Microsoft Power BI ideas
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi @v-shex-msft 

Thank you for your reply but it is not related to my question.

 

I'm asking for the list of values of a specific status field in the response of an API and not about asynchronous tasks in C# that I don't even use.

 

Regards,

Jérôme

 

However 

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.