---
title: "Comment by Martin du Toit on \"Calculating and Reducing Power BI Dataset Size Using Semantic Link\" | Hashnode"
description: "Hi Sandeep. Thanks for the article. When I run the code I get this error: AdomdErrorResponseException: The 'xxxxx' user does not have permission to call the Dis"
url: "https://hashnode.com/posts/calculating-and-reducing-power-bi-dataset-size-using-semantic-link/65e111a44415a26cd718b44c/comment/65f01b0b1d5e027184d5f457"
---

[Discussion](https://hashnode.com/posts/calculating-and-reducing-power-bi-dataset-size-using-semantic-link/65e111a44415a26cd718b44c)

Comment [Calculating and Reducing Power BI Dataset Size Using Semantic Link](https://hashnode.com/posts/calculating-and-reducing-power-bi-dataset-size-using-semantic-link/65e111a44415a26cd718b44c)

[Martin du Toit](https://hashnode.com/@martindut)

[Mar 12, 2024](https://hashnode.com/posts/calculating-and-reducing-power-bi-dataset-size-using-semantic-link/65e111a44415a26cd718b44c/comment/65f01b0b1d5e027184d5f457)

Hi Sandeep. Thanks for the article. When I run the code I get this error: AdomdErrorResponseException: The 'xxxxx' user does not have permission to call the Discover method. I am setup as workspace admin. Any idee where I can fix this?

[Sandeep Pawar](https://hashnode.com/@PawarBI)

[Mar 12, 2024](https://hashnode.com/posts/calculating-and-reducing-power-bi-dataset-size-using-semantic-link/65e111a44415a26cd718b44c/comment/65f01b0b1d5e027184d5f457#reply-65f0c814c76e9ddbd7f84c88)

The error indicates either the workspace is Pro (not premium), doesn;t have an XMLA endpoint and/or it's a default dataset. In my code I tried to capture this as an exception but may not have worked for your instance.. whats the dataset, where is it ?

[Sandeep Pawar](https://hashnode.com/@PawarBI)

[Mar 12, 2024](https://hashnode.com/posts/calculating-and-reducing-power-bi-dataset-size-using-semantic-link/65e111a44415a26cd718b44c/comment/65f01b0b1d5e027184d5f457#reply-65f0c83f328b0bcd0c5f44ed)

or it could be a dataset generated by a datamart (which doesnt have an xmla endpoint)
