Forum Discussion

stefanik's avatar
stefanik
Icon for Helper I rankHelper I
3 years ago
Solved

Asking for gateways results in DMTS_MonikerNotFoundError

Hi,

i'm trying to use PowerBI API in order to obtain gateways in my Dataset: 

 

https://api.powerbi.com/v1.0/myorg/groups/[groupID]/datasets/[datasetID]/Default.GetBoundGatewayDataSources

 

I receive this:

{
    "error": {
        "code""DMTS_MonikerNotFoundError",
        "pbi.error": {
            "code""DMTS_MonikerNotFoundError",
            "details": [
                {
                    "code""DMTS_MonikerNotFoundError",
                    "detail": {
                        "type"1,
                        "value""ef885c9c-b03b-434b-942d-df39c05663cc, 76da5098-6618-4aac-9ae0-5201832561fe"
                    }
                }
            ],
            "exceptionCulprit"1
        }
    }
}
 
I'm already able to perform this with others dataset but not with this. The only difference is this has two source in it: one for AzureDWH and one for AzureSQLServer.
I'm also able to retreive parameters with /parameters, so i suppose the token is correctly configured!
 
What i've missed?
 
Thanks
 
 
 
  • I don't know what DMTS_MonikerNotFoundError means but it seems related to the dataset publisher owner. The dataset was already published with a specific owner and the API doesn't work,but if i publish it with the service principal i use for gateways retrieve, it works!

     

2 Replies

  • I don't know what DMTS_MonikerNotFoundError means but it seems related to the dataset publisher owner. The dataset was already published with a specific owner and the API doesn't work,but if i publish it with the service principal i use for gateways retrieve, it works!

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi stefanik ,

       

      As far as I know, the error message "DMTS_MonikerNotFoundError" indicates that the gateway name you provided in the API request is not valid. Also I couldn't find any parameter about gateway like ID or Name in your link.

       

      Please make sure that the gateway name is correct and that the gateway is registered with the Power BI service.

       

      You can check the list of registered gateways in the Power BI admin portal.

       

      Best Regards,
      Rico Zhou

       

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