<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Datasets of other users are not found when using the sempy fabric package in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3992490#M2573</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/757085"&gt;@russelp&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;We can continue on this thread itself. I will let you know once I get the details.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 05:26:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-14T05:26:59Z</dc:date>
    <item>
      <title>Datasets of other users are not found when using the sempy fabric package</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3989806#M2548</link>
      <description>&lt;P&gt;The original discussion with&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&amp;nbsp;can be found here -&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3984512#M2493" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3984512#M2493&lt;/A&gt;&amp;nbsp;but since the issue is different from the original post, a new thread has been created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;List_datasets() or list_columns() return only the dataset owned by the user.&lt;/STRONG&gt;&amp;nbsp;Users have admin role in the workspace and has "Workspace admin, All permissions granted" permission in the dataset. I tried with a few coworkers of mine and we ran the same script in the same notebook and got different results. The script only returned the datasets owned by the user who ran the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import sempy.fabric as fabric
text = fabric.list_datasets(workspace=workspace_id) 
display(text)   &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Permissions on the semantic model&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="russelp_0-1718241364801.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1115811i307F98DC21A77122/image-size/medium?v=v2&amp;amp;px=400" role="button" title="russelp_0-1718241364801.png" alt="russelp_0-1718241364801.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Permissions on the SQL endpoint&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="russelp_1-1718241383270.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1115812i0B274294839F661B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="russelp_1-1718241383270.png" alt="russelp_1-1718241383270.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Permissions on the Lakehouse&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="russelp_2-1718241424910.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1115813i602E9BE7E32F7797/image-size/medium?v=v2&amp;amp;px=400" role="button" title="russelp_2-1718241424910.png" alt="russelp_2-1718241424910.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there any permission or any setting we are missing to be able to display all datasets within a workspace?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 01:18:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3989806#M2548</guid>
      <dc:creator>russelp</dc:creator>
      <dc:date>2024-06-13T01:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Datasets of other users are not found when using the sempy fabric package</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3991641#M2564</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/757085"&gt;@russelp&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;At this time, we are reaching out to the internal team to get some help on this. We will update you once we hear back from them. &lt;BR /&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 17:16:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3991641#M2564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-13T17:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Datasets of other users are not found when using the sempy fabric package</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3992335#M2566</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/757085"&gt;@russelp&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you please try with this code and let me know :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;import sempy.fabric as fabric
text = fabric.list_datasets(workspace=workspace_id, mode='rest')
display(text)  &lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 03:12:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3992335#M2566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-14T03:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Datasets of other users are not found when using the sempy fabric package</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3992476#M2571</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list_datasets() is now working! However, the 2nd part of the problem is actually the list_columns part. After listing the datasets, we need to also do a list_columns() on certain datasets. The issue now is even though the list_datasets() is showing all datasets, list_columns() still couldn't find the dataset not owned by the user running the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import sempy.fabric as fabric

df_columns = fabric.list_columns(dataset=dataset_id, workspace=workspace_id)
df_columns = df_columns[['Table Name', 'Column Name', 'Data Type']]

display(df_columns)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;DatasetNotFoundException&lt;/SPAN&gt;&lt;SPAN&gt;: Dataset &amp;lt;dataset_id&amp;gt; not found in workspace &amp;lt;workspace&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should probably ask again, should I create a new thread for this follow up question or no need?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 05:21:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3992476#M2571</guid>
      <dc:creator>russelp</dc:creator>
      <dc:date>2024-06-14T05:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Datasets of other users are not found when using the sempy fabric package</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3992490#M2573</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/757085"&gt;@russelp&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;We can continue on this thread itself. I will let you know once I get the details.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 05:26:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3992490#M2573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-14T05:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Datasets of other users are not found when using the sempy fabric package</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3992561#M2574</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/757085"&gt;@russelp&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you try &lt;BR /&gt;&lt;STRONG&gt;fabric.evaluate_dax(dataset, dax_string="SELECT * from $system.tmschema_columns", workspace=workspace)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;This should show the columns of the dataset.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 06:02:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3992561#M2574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-14T06:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Datasets of other users are not found when using the sempy fabric package</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3992632#M2576</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the very quick reply! However, I'm still facing the same issue as the list_columns one. Somehow, I could not access the datasets created by other users.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;AdomdErrorResponseException&lt;/SPAN&gt;&lt;SPAN&gt;: User '&amp;lt;euii&amp;gt;&amp;lt;user_id&amp;gt;&amp;lt;/euii&amp;gt;' needs to be an administrator to read the metadata of the database '&amp;lt;dataset_id&amp;gt;'.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;I checked my permissions on the dataset -&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="russelp_0-1718346653338.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1116674iB4C59C9C829B5AD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="russelp_0-1718346653338.png" alt="russelp_0-1718346653338.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also have admin role in the workspace -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="russelp_1-1718346684092.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1116675i81418CE9836175B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="russelp_1-1718346684092.png" alt="russelp_1-1718346684092.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 06:32:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3992632#M2576</guid>
      <dc:creator>russelp</dc:creator>
      <dc:date>2024-06-14T06:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Datasets of other users are not found when using the sempy fabric package</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3993854#M2590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/757085"&gt;@russelp&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;For datasets we have limited access. Hence try using this DMV query&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fabric.evaluate_dax(dataset, dax_string="SELECT DISTINCT
[DIMENSION_UNIQUE_NAME] as [Table Name],
[LEVEL_NAME] as [Column Name]
FROM $SYSTEM.MDSCHEMA_LEVELS", workspace= workspace)&lt;/LI-CODE&gt;
&lt;P&gt;Also try to update semantic link to the latest version.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;%pip install -U semantic-link-sempy&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;To avoid access issues please use dataset id and workspace id in the dax query.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 18:09:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3993854#M2590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-14T18:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Datasets of other users are not found when using the sempy fabric package</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3996430#M2607</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/757085"&gt;@russelp&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;We haven’t heard from you on the last response and was just checking back to see if your query got resolved. Otherwise, will respond back with the more details and we will try to help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 15:15:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3996430#M2607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-17T15:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Datasets of other users are not found when using the sempy fabric package</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3996990#M2610</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the reply! It is now working and now returning the table and column names. However, we also need the data type of those columns. When I tried the query below&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fabric.evaluate_dax(dataset=dataset_id, dax_string="""SELECT DISTINCT
TABLE_NAME, COLUMN_NAME, DATA_TYPE
FROM $SYSTEM.DBSCHEMA_COLUMNS""", workspace= workspace_id)&lt;/LI-CODE&gt;&lt;P&gt;I got the following result:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="russelp_0-1718666482900.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1118046i8C94027E6963FE20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="russelp_0-1718666482900.png" alt="russelp_0-1718666482900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I checked Data_type 130 and it looks like it's WCHAR. 'age' and 'is_human' are int and boolean from the lakehouse so this is not what we are looking for. Unless there is another way to get this datatype, then I guess we can close this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 23:32:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3996990#M2610</guid>
      <dc:creator>russelp</dc:creator>
      <dc:date>2024-06-17T23:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Datasets of other users are not found when using the sempy fabric package</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3997665#M2611</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;, we finally made it work. We did something similar to the link below to extract details from the information_schema. This should be good enough. Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/General-Discussion/authenticate-to-Fabric-Data-Warehouse-with-Service-Principal/m-p/3469443/highlight/true#M1471" target="_blank"&gt;https://community.fabric.microsoft.com/t5/General-Discussion/authenticate-to-Fabric-Data-Warehouse-with-Service-Principal/td-p/3467512&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 07:18:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasets-of-other-users-are-not-found-when-using-the-sempy/m-p/3997665#M2611</guid>
      <dc:creator>russelp</dc:creator>
      <dc:date>2024-06-18T07:18:56Z</dc:date>
    </item>
  </channel>
</rss>

