<?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: Can't run pipeline with notebook which tries to access anything from built-in resources in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-t-run-pipeline-with-notebook-which-tries-to-access-anything/m-p/3947113#M2192</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/745763"&gt;@shubhamg&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if your query was answered.&lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help .&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2024 10:56:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-24T10:56:37Z</dc:date>
    <item>
      <title>Can't run pipeline with notebook which tries to access anything from built-in resources</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-t-run-pipeline-with-notebook-which-tries-to-access-anything/m-p/3939807#M2100</link>
      <description>&lt;P&gt;I have a python script stored in built-in resources:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shubhamg_1-1716380618496.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1103179i594D6F0B6A00A85E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shubhamg_1-1716380618496.png" alt="shubhamg_1-1716380618496.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running this script from notebook using %run as below and it runs successfully:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shubhamg_2-1716380666153.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1103180i34F4A04D3A765B07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shubhamg_2-1716380666153.png" alt="shubhamg_2-1716380666153.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I run the same notebook through pipeline I get error:&lt;BR /&gt;&lt;SPAN&gt;Fetch notebook content for NB_BRZ_SHPO_List_Ingest failed with exception: Request to &lt;A href="https://tokenservice1.australiasoutheast.trident.azuresynapse.net/api/v1/proxy/preprocessorApi/versions/2019-01-01/productTypes/trident/capacities/xx-xx-xx-B71C-x/workspaces/xx-195f-42dc-87aa-xx/preprocess?api-version=1" target="_blank" rel="noopener"&gt;https://tokenservice1.australiasoutheast.trident.azuresynapse.net/api/v1/proxy/preprocessorApi/versions/2019-01-01/productTypes/trident/capacities/xxxx&lt;/A&gt; failed with status code: 400, response:Failed to get file "workspace.py" from notebook file system resource manager with error: "file workspace.py was not found in storage.".Notebook path: workspace.py, response headers: Array(Content-Type: text/plain; charset=utf-8, Date: Wed, 22 May 2024 12:13:49 GMT, Server: Kestrel, Transfer-Encoding: chunked, Request-Context: appId=, x-ms-gateway-request-id: xx-cdf0-4527-a264-xx| client-request-id : xx-d48b-4363-9682-xx, x-ms-workspace-name: xx-195f-42dc-87aa-xx, x-ms-activity-id: xx-cdf0-4527-a264-xx, x-ms-client-request-id: xx-d48b-4363-9682-xx).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot access any other resource form built-in example json either:&lt;BR /&gt;&lt;SPAN&gt;[Errno 2] No such file or directory: '/synfs/resource/xx-86ca-499f-ad6c-xx/nb_resource/builtin/workspace.json' ---------------------------------------------------------------------------FileNotFoundError Traceback (most recent call last)Cell In[7], line 7 5 ws_details = workspace_id_map[worspace_id] 6 else: ----&amp;gt; 7 with open(f'{mssparkutils.nbResPath}/builtin/workspace.json', 'r') as file: 8 ws_details = json.load(file) 10 print(ws_details) File ~/cluster-env/trident_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py:284, in _modified_open(file, *args, **kwargs) 277 if file in {0, 1, 2}: 278 raise ValueError( 279 f"IPython won't let you open fd={file} by default " 280 "as it is likely to crash IPython. If you know what you are doing, " 281 "you can use builtins' open." 282 ) --&amp;gt; 284 return io_open(file, *args, **kwargs) FileNotFoundError: [Errno 2] No such file or directory: '/synfs/resource/xx-499f-ad6c-xx/nb_resource/builtin/workspace.json'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 13:29:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-t-run-pipeline-with-notebook-which-tries-to-access-anything/m-p/3939807#M2100</guid>
      <dc:creator>shubhamg</dc:creator>
      <dc:date>2024-05-22T13:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't run pipeline with notebook which tries to access anything from built-in resources</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-t-run-pipeline-with-notebook-which-tries-to-access-anything/m-p/3942912#M2158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/745763"&gt;@shubhamg&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;When I tried to repro your scenario, I am able execute the magic command from both the places (from - Notebook &amp;amp; Pipeline).&lt;BR /&gt;&lt;BR /&gt;Magic Command:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;%run -b workspace.py&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;From Notebooks:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vgchennamsft_1-1716456854958.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1103937i2CDC264040455B9B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vgchennamsft_1-1716456854958.png" alt="vgchennamsft_1-1716456854958.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From Pipeline:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vgchennamsft_2-1716457046862.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1103941iC4A91749EDE4E1A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vgchennamsft_2-1716457046862.png" alt="vgchennamsft_2-1716457046862.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Click on Spark Monitoring Url&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="vgchennamsft_3-1716457201281.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1103947i2C29819706A44153/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vgchennamsft_3-1716457201281.png" alt="vgchennamsft_3-1716457201281.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Can you please check your notebook code and try again,&amp;nbsp; if you are still facing an issue to execute in pipeline please share the necessary screenshot to understand the issue in detail?&lt;BR /&gt;&lt;BR /&gt;Hope this is helpful. Do let me know incase of further queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 09:42:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-t-run-pipeline-with-notebook-which-tries-to-access-anything/m-p/3942912#M2158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-23T09:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't run pipeline with notebook which tries to access anything from built-in resources</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-t-run-pipeline-with-notebook-which-tries-to-access-anything/m-p/3947113#M2192</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/745763"&gt;@shubhamg&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if your query was answered.&lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help .&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 10:56:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-t-run-pipeline-with-notebook-which-tries-to-access-anything/m-p/3947113#M2192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-24T10:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can't run pipeline with notebook which tries to access anything from built-in resources</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-t-run-pipeline-with-notebook-which-tries-to-access-anything/m-p/3951716#M2235</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/745763"&gt;@shubhamg&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&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 was answered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, will respond back with the more details and we will try to help .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 09:25:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-t-run-pipeline-with-notebook-which-tries-to-access-anything/m-p/3951716#M2235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-27T09:25:52Z</dc:date>
    </item>
  </channel>
</rss>

