<?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: Datasetnotfoundexception even though the dataset exists when using sempy fabric functions in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985104#M2500</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;You can try giving the semantic model permissions to the co-worker :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnikhilanmsft_0-1718086199534.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1114484i9E141C4DB3C53E60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_0-1718086199534.png" alt="vnikhilanmsft_0-1718086199534.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnikhilanmsft_1-1718086253506.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1114486iB615EA211C87CB72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_1-1718086253506.png" alt="vnikhilanmsft_1-1718086253506.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnikhilanmsft_2-1718086264591.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1114488i59CBFEB87D4DD581/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_2-1718086264591.png" alt="vnikhilanmsft_2-1718086264591.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Give the permissions for your co-worker and retry.&amp;nbsp;&lt;BR /&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 06:12:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-11T06:12:02Z</dc:date>
    <item>
      <title>Datasetnotfoundexception even though the dataset exists when using sempy fabric functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3984512#M2493</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently getting&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;DatasetNotFoundException&lt;/SPAN&gt;: Dataset '&amp;lt;datasetId&amp;gt;' not found in workspace '&amp;lt;workspaceId&amp;gt;'&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;(Just replaced the actual values with &amp;lt;&amp;gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;The issue is the dataset actually exists. I can even see the dataset when querying via the API.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import sempy.fabric as fabric
import json

workspaceId = 'workspaceid_here'
client = fabric.FabricRestClient()

try:
    response = client.get(
        f'https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/semanticModels'
    )
    print(response.text)
except Exception as e:
    print(e)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try using the &lt;STRONG&gt;list_columns()&lt;/STRONG&gt; function, I get the &lt;STRONG&gt;datasetnotfoundexception error&lt;/STRONG&gt; as stated above. (again, actual values were replaced in this post)&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=datasetid, workspace=workspaceId)
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;Even using &lt;STRONG&gt;list_datasets()&lt;/STRONG&gt; returns an&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;IndexError&lt;/SPAN&gt;&lt;SPAN&gt;: list index out of range&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&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() 
display(text)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas why this is happening? Why the fabric package functions cannot find the datasets even though they actually exist?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 23:19:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3984512#M2493</guid>
      <dc:creator>russelp</dc:creator>
      <dc:date>2024-06-10T23:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Datasetnotfoundexception even though the dataset exists when using sempy fabric functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3984569#M2494</link>
      <description>&lt;P&gt;Just got the idea that this might be because the dataset is not refreshed.&lt;/P&gt;&lt;P&gt;1. Can anyone confirm this?&lt;/P&gt;&lt;P&gt;2. If 1 is the reason, how do I refresh the default dataset (coming from a lakehouse or a warehouse in onelake) to reflect the latest changes? Can the default semantic models not be refreshed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="russelp_0-1718066799546.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1114302iB94E1A26C3F27446/image-size/medium?v=v2&amp;amp;px=400" role="button" title="russelp_0-1718066799546.png" alt="russelp_0-1718066799546.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also enabled the option below but somehow the default semantic model still doesn't have all the tables from the lakehouse.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="russelp_0-1718071936757.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1114353i7F300B5C45FF1EEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="russelp_0-1718071936757.png" alt="russelp_0-1718071936757.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 02:13:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3984569#M2494</guid>
      <dc:creator>russelp</dc:creator>
      <dc:date>2024-06-11T02:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Datasetnotfoundexception even though the dataset exists when using sempy fabric functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3984883#M2495</link>
      <description>&lt;P&gt;Not sure how to delete this but this has been solved. I just created a new table after enabling the sync the default power BI semantic model and it is now showing the updated dataset tables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 03:23:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3984883#M2495</guid>
      <dc:creator>russelp</dc:creator>
      <dc:date>2024-06-11T03:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Datasetnotfoundexception even though the dataset exists when using sempy fabric functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985008#M2496</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;Glad that your query got resolved. Please continue using Fabric Community for any help regarding your queries.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 05:31:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985008#M2496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-11T05:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Datasetnotfoundexception even though the dataset exists when using sempy fabric functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985017#M2497</link>
      <description>&lt;P&gt;Hi @Anonymous&lt;/a&gt;&amp;nbsp;! Thank you! I don't want to open up another thread just for this follow up question related to this so, &lt;STRONG&gt;does the sempy fabric function list_datasets() only show my owned datasets?&lt;/STRONG&gt; I created my lakehouses and able to see the datasets but when my coworker created one, I am not able to see that new dataset.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 05:35:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985017#M2497</guid>
      <dc:creator>russelp</dc:creator>
      <dc:date>2024-06-11T05:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Datasetnotfoundexception even though the dataset exists when using sempy fabric functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985034#M2498</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;Did your co-worker created the dataset in the same workspace or different workspace?&lt;BR /&gt;The list_datasets() function from the sempy.fabric package lists the available semantic models in your workspace. It does not specifically filter datasets based on ownership. If you are unable to see a dataset created by your coworker, it could be due to a variety of reasons such as access permissions, dataset visibility settings.&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-science/read-write-power-bi-python#use-python-to-read-data-from-semantic-models" target="_blank"&gt;Read data from semantic models and write data that semantic models can consume using python - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Please let me know if you have any further questions.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 05:43:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985034#M2498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-11T05:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Datasetnotfoundexception even though the dataset exists when using sempy fabric functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985054#M2499</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;thank you for answering! Yes, we created our datasets in the same workspace. When she ran the same function, she was able to see only her datasets. We are only seeing our own datasets (when querying from list_datasets()). Which access permissions should we check? Currently, we are both admins in the same workspace so what other access permissions should we take a look at?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: For extra context&lt;/P&gt;&lt;P&gt;These are the permissions I have 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-1718085400988.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1114468iB5171360303BE01D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="russelp_0-1718085400988.png" alt="russelp_0-1718085400988.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the permissions I have in the SQL endpoint:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="russelp_1-1718085448478.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1114469iE868AFE2D37AA986/image-size/medium?v=v2&amp;amp;px=400" role="button" title="russelp_1-1718085448478.png" alt="russelp_1-1718085448478.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;These are the permissions I have in the Lakehouse:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="russelp_2-1718085478702.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1114470i44FEC8F700F1C618/image-size/medium?v=v2&amp;amp;px=400" role="button" title="russelp_2-1718085478702.png" alt="russelp_2-1718085478702.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 05:59:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985054#M2499</guid>
      <dc:creator>russelp</dc:creator>
      <dc:date>2024-06-11T05:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Datasetnotfoundexception even though the dataset exists when using sempy fabric functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985104#M2500</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;You can try giving the semantic model permissions to the co-worker :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnikhilanmsft_0-1718086199534.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1114484i9E141C4DB3C53E60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_0-1718086199534.png" alt="vnikhilanmsft_0-1718086199534.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnikhilanmsft_1-1718086253506.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1114486iB615EA211C87CB72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_1-1718086253506.png" alt="vnikhilanmsft_1-1718086253506.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnikhilanmsft_2-1718086264591.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1114488i59CBFEB87D4DD581/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_2-1718086264591.png" alt="vnikhilanmsft_2-1718086264591.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Give the permissions for your co-worker and retry.&amp;nbsp;&lt;BR /&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 06:12:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985104#M2500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-11T06:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Datasetnotfoundexception even though the dataset exists when using sempy fabric functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985199#M2505</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;For context, I am working on the default semantic models created from the lakehouse so the add user option is not available. However, I still checked the permissions and we both have all the permissions but still not able to see each other's dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For additional testing, I created a new semantic model to be able to follow your instructions.&amp;nbsp; Both semantic model and default semantic model now have all the permissions but still not able to see each other's datasets.&amp;nbsp; This is how our permissions look. We all have the same permissions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="russelp_0-1718087983000.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1114495i9CB37A3136CFEB52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="russelp_0-1718087983000.png" alt="russelp_0-1718087983000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 06:57:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Datasetnotfoundexception-even-though-the-dataset-exists-when/m-p/3985199#M2505</guid>
      <dc:creator>russelp</dc:creator>
      <dc:date>2024-06-11T06:57:12Z</dc:date>
    </item>
  </channel>
</rss>

