cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dgdragon Frequent Visitor
Frequent Visitor

Import Statuses

When I import a PBIX file, I can get the import status using the route:

https://api.powerbi.com/v1.0/myorg/groups/[org-id]/imports/[import-id]

and it returns something similar to:

 

{
"id": "[import-id]",
"importState": "Succeeded",
"createdDateTime": "2018-01-24T19:14:31.527Z",
"updatedDateTime": "2018-01-24T19:14:31.527Z",
"name": "[name]",
"connectionType": "import",
"source": "Upload",
"datasets": [],
"reports":[]
}

 

I would like to know what are the possible values are for "importState", is there a reference list somewhere?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-ljerr-msft Super Contributor
Super Contributor

Re: Import Statuses

Hi @dgdragon,

 

After a few research, I haven't found any article/blog that has a full list of importStates. However, I did find a few more importStates:

  • Publishing
  • Published
  • Succeeded
  • Failed

Following is a use case of importStates. Smiley Happy

                    // Example of polling the import to check when the import has finished.
                    while (import.ImportState != "Succeeded" && import.ImportState != "Failed")
                    {
                        import = await client.Imports.GetImportByIdAsync(workspaceCollectionName, workspaceId, import.Id);
                        Console.WriteLine("Checking import state... {0}", import.ImportState);
                        Thread.Sleep(1000);
                    }

 

Regards

View solution in original post

1 REPLY 1
v-ljerr-msft Super Contributor
Super Contributor

Re: Import Statuses

Hi @dgdragon,

 

After a few research, I haven't found any article/blog that has a full list of importStates. However, I did find a few more importStates:

  • Publishing
  • Published
  • Succeeded
  • Failed

Following is a use case of importStates. Smiley Happy

                    // Example of polling the import to check when the import has finished.
                    while (import.ImportState != "Succeeded" && import.ImportState != "Failed")
                    {
                        import = await client.Imports.GetImportByIdAsync(workspaceCollectionName, workspaceId, import.Id);
                        Console.WriteLine("Checking import state... {0}", import.ImportState);
                        Thread.Sleep(1000);
                    }

 

Regards

View solution in original post

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 152 members 1,803 guests
Please welcome our newest community members: