Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 61939

Power BI REST API - Updating Dataset datasource for Azure Data Lake

$
0
0

Hello,


I'm trying to update the dataset datasource for an Azure Data Lake. I would like to modify the path "https://xxx.azuredatalakestore.net/temp/test" by environment.

I tried to use the API: POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/Default.UpdateDatasources

with the following body:

{
  "updateDetails":[
    {
        "connectionDetails":{
            "path":"https://xxx.azuredatalakestore.net/temp/NEW_TEST",
            "kind":"DataLake"
        },
        "datasourceSelector": {
            "datasourceType":"AnalysisServices",
            "connectionDetails":{
                "path":"https://xxx.azuredatalakestore.net/temp/TEST",
                "kind":"DataLake"
            }
        }
    }
]}

 

But I got the following error:
{
    "error": {
        "code": "InvalidRequest",
       "message": "Parameter UpdateDetails is missing or invalid"
    }
}

After I tried to use the following API:

POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/Default.UpdateParameters

with the following body:

{
    "updateDetails": [
    {
        "name": "path",
        "newValue": "https://xxx.azuredatalakestore.net/temp/NEW_TEST"
    }
]}

But I got the following error:

{
    "error": {
        "code": "ItemNotFound",
        "message": "Dataset parameters at positions 1 cannot be found in f21c26c3-e894-4d61-9414-5c9458d2706c",
        "target": "f21c26c3-e894-4d61-9414-5c9458d2706c"
   }
}

 

So is there a way to update a Dataset datasource for Azure Data Lake ? I'm wrong ?

Thanks

 

Regards


Viewing all articles
Browse latest Browse all 61939

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>