Forum Discussion

madhukardevale's avatar
madhukardevale
Frequent Visitor
1 year ago
Solved

Update Datatsource setting of PowerBi Report with API as Source through PowerBi Rest API

We have published the report to workspace using PowerBi Import Rest API. Whenever we try to referesh that report using PowerBi Refresh Dataset API(POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes), it gives the Datasource has no credentials error.

 

When we update the below settings manually into workspace and trys to refresh, it gets succeeded

 

 

Do we have any Rest API to update this settings

 

13 Replies

    • madhukardevale's avatar
      madhukardevale
      Frequent Visitor

      It updates web datasource. We can refresh the semantic model from service as well as Rest API also

  • madhukardevale's avatar
    madhukardevale
    Frequent Visitor

    Tried below API but no luck. skipTestConnection is not present in the payload

  • v-karpurapud's avatar
    v-karpurapud
    Community Support

    Hello madhukardevale 

    Hope you are doing well!

    Could you please confirm if your query have been resolved the solution provided by tackytechtom & ReneSchlegel ? If they have, kindly mark the helpful response and accept it as the solution. This will assist other community members in resolving similar issues more efficiently.

    Thank you

      • v-karpurapud's avatar
        v-karpurapud
        Community Support

        Hello madhukardevale 


        We regret to hear that the issue with refreshing the Power BI report using the Power BI Refresh Dataset API remains unresolved. Although the report was published to the workspace via the Power BI Import REST API, the refresh attempt results in the error:

        "The datasource has no credentials."

         

        However, manually updating the datasource settings in the Power BI Service allows the refresh to work successfully.

         

        Since this issue persists when using the REST API, we recommend raising a support ticket with Microsoft for further investigation and resolution. Their support team will be able to assist you more effectively.

         

        You can submit a ticket through the Microsoft Power BI Support Portal:

        How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn

        If you find this post helpful, please mark it as an "Accept as Solution" and give a KUDOS.

         

        Thank you!

  • v-karpurapud's avatar
    v-karpurapud
    Community Support

    Hello madhukardevale 

    I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

    Thank you.