Forum Discussion

tbaccouche-ext's avatar
tbaccouche-ext
New Member
4 years ago

Issue when Importing Paginated Report

Hi, 

I'm trying to import a paginated powerBi report to a workspace. The report is well imported and I get the importId.

I need then to get the newly created reportId for another task. For that I use the REST API  GET import.

But when I get the import, there is no information about the report in the json response.

 

 

GET https://api.powerbi.com/beta/myorg/imports/0f8a76afXXXXXXXXXXXXXXXXXXX5514

The response's json body:

{
    "id""xxxxxxf-170c-42-dddddd3-df7edddd14",
    "importState""Succeeded",
    "createdDateTime""2022-06-29T15:24:32.517",
    "updatedDateTime""2022-06-30T10:44:45.667",
    "reports": [],
    "name""Objectif-XXXXXXXXXXXXX-SD-1.0.4.rdl"
}

 

As a workaround, I am doing get reports in group and get the reportId using the report name (using a python code that I wrote).

 

Any help is a much appreciated !

thanks

 

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi tbaccouche-ext ,

    You need to set up permission before your invoke rest api, I don't think power bi service will allow anonymous authorization to get specific power bi contents.

    Register an Azure AD app to embed Power BI content

     

    Please verify that the data source is available and your credentials are correct.

     

    Best Regards
    Community Support Team _ Polly

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

     

     

  • EliasP's avatar
    EliasP
    Frequent Visitor

    Can you share the way that you have managed to import a paginated report to the workspace?