<?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 not access SQL files in the Shared workspace in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5211#M1682</link>
    <description>&lt;P&gt;here are the commands&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 14:08:11 GMT</pubDate>
    <dc:creator>nyehia</dc:creator>
    <dc:date>2023-04-27T14:08:11Z</dc:date>
    <item>
      <title>Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5207#M1678</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have an issue in that we can access the SQL files whenever the notebook is in the repo path but whenever the CICD pipeline imports the repo notebooks and SQL files to the shared workspace, we can list the SQL files but can not read them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we changed the file permissions and still getting the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the error is &lt;B&gt;OSError: [Errno 95] Operation not supported&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:35:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5207#M1678</guid>
      <dc:creator>nyehia</dc:creator>
      <dc:date>2023-04-26T14:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5208#M1679</link>
      <description>&lt;P&gt;@Nermin Yehia​&amp;nbsp;looks there was a small confusion, thought sql files are data files. Ignore my previous comment. Did you get a chance to check below article which shows need to end to config for ADF to Databricks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/solution-template-databricks-notebook" target="test_blank"&gt;https://learn.microsoft.com/en-us/azure/data-factory/solution-template-databricks-notebook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what ever path you add in ADF level pipeline config that will be picked, can you please make sure how config has been setted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;learn.microsoft.com&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-databricks-notebook" alt="https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-databricks-notebook" target="_blank"&gt;&lt;B&gt;Run a Databricks Notebook with the activity - Azure Data Factory&lt;/B&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Learn how you can use the Databricks Notebook Activity in an Azure data factory to run a Databricks notebook against the databricks jobs cluster.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 12:36:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5208#M1679</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-04-27T12:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5209#M1680</link>
      <description>&lt;P&gt;@karthik p​&amp;nbsp;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no issue in ADF running the notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the main issue is that we can access the SQL files from Workspace/Repos but can not open the file whenever it is imported to the /Workspace/Shared. seems like a bug in the Workspace but we don't know how to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 12:50:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5209#M1680</guid>
      <dc:creator>nyehia</dc:creator>
      <dc:date>2023-04-27T12:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5210#M1681</link>
      <description>&lt;P&gt;@Nermin Yehia​&amp;nbsp;can you post command that you are using to  read data. also some where in pipeline are you passing /workspace/shared path to place your files. if so please change that to your folder in /users and try to read, if files are being placed in shared that might be security concern as per governance if that need to be visible to you that should be in your users. if that should be accessed by every one that can be in shared   &lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 14:04:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5210#M1681</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-04-27T14:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5211#M1682</link>
      <description>&lt;P&gt;here are the commands&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 14:08:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5211#M1682</guid>
      <dc:creator>nyehia</dc:creator>
      <dc:date>2023-04-27T14:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5212#M1683</link>
      <description>&lt;P&gt;@Nermin Yehia​&amp;nbsp;can you use this command to copy you files from shared &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils.fs.cp ("file:/workspace/shared/.....", "dbfs:/tmp/sqls/*")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to read try to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;display(dbutils.fs.ls("file:/tmp/sqls/*"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 14:28:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5212#M1683</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-04-27T14:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5213#M1684</link>
      <description>&lt;P&gt;@karthik p​&amp;nbsp;I tested the following. uploaded the sql files to /User and it worked fine. so a notebook in the /Shared folder can access the sql in the /User folder but can not access in the ?Shared folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used cp just to test. but in the original code, i'm using dbutils.fs.ls("file:/ the sql path")&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 14:35:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5213#M1684</guid>
      <dc:creator>nyehia</dc:creator>
      <dc:date>2023-04-27T14:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5214#M1685</link>
      <description>&lt;P&gt;@karthik p​&amp;nbsp; posted a file.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 14:40:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5214#M1685</guid>
      <dc:creator>nyehia</dc:creator>
      <dc:date>2023-04-27T14:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5215#M1686</link>
      <description>&lt;P&gt;@karthik p​&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 14:43:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5215#M1686</guid>
      <dc:creator>nyehia</dc:creator>
      <dc:date>2023-04-27T14:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5216#M1687</link>
      <description>&lt;P&gt;@Nermin Yehia​&amp;nbsp;Try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with open("/Workspace/Shared/test.sql") &amp;nbsp;as queryFile:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; queryText = queryFile.read()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; display(queryText)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 15:36:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5216#M1687</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-04-27T15:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5217#M1688</link>
      <description>&lt;P&gt;@karthik p​&amp;nbsp;this is the way i read the files and causing the error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 15:42:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5217#M1688</guid>
      <dc:creator>nyehia</dc:creator>
      <dc:date>2023-04-27T15:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5218#M1689</link>
      <description>&lt;P&gt;@Nermin Yehia​&amp;nbsp;looks .sql is missing for u file (problem_list_history_weekly is .sql file right)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 15:46:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5218#M1689</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-04-27T15:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5219#M1690</link>
      <description>&lt;P&gt;@karthik p​&amp;nbsp; yes. it is showing up in the /User(read is working fine) but not in the /Shared(read operation cause the error). we use &lt;B&gt;databricks workspace import_dir&lt;/B&gt; command to copy notebooks and sql files from /User to /Shared using CICD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i tried to find the reason for the extension disappearance I found that in the doc&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/dev-tools/cli/workspace-cli.html" alt="https://docs.databricks.com/dev-tools/cli/workspace-cli.html" target="_blank"&gt;https://docs.databricks.com/dev-tools/cli/workspace-cli.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 15:53:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5219#M1690</guid>
      <dc:creator>nyehia</dc:creator>
      <dc:date>2023-04-27T15:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5220#M1691</link>
      <description>&lt;P&gt;@Nermin Yehia​&amp;nbsp;that's great, if you add that extension and re-execute are we able to read sql data &lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 16:26:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5220#M1691</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-04-27T16:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5221#M1692</link>
      <description>&lt;P&gt;@karthik p​&amp;nbsp;I tried to move the files manually and i got that warning &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 17:18:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5221#M1692</guid>
      <dc:creator>nyehia</dc:creator>
      <dc:date>2023-04-27T17:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5222#M1693</link>
      <description>&lt;P&gt;@Nermin Yehia​&amp;nbsp;yes, as you are moving files to different location manually , just update as can manage permissions in target and that should take care of everything&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 17:29:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5222#M1693</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-04-27T17:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5223#M1694</link>
      <description>&lt;P&gt;@karthik p​&amp;nbsp;how can i copy sql files with extensions?&lt;/P&gt;&lt;P&gt;the workspace cli documentation says extensions are excluded&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 18:03:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5223#M1694</guid>
      <dc:creator>nyehia</dc:creator>
      <dc:date>2023-04-27T18:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5224#M1695</link>
      <description>&lt;P&gt;I moved the files using import_dir, we need to automate the process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i list using workspace ls command i get this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 18:20:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5224#M1695</guid>
      <dc:creator>nyehia</dc:creator>
      <dc:date>2023-04-27T18:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5225#M1696</link>
      <description>&lt;P&gt;@Nermin Yehia​&amp;nbsp;&amp;nbsp;looks it's a bug, can you try to upgrade databricks utility to new version if you have not and see, that may help as you do not want to opt manual export or import&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 18:24:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5225#M1696</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-04-27T18:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access SQL files in the Shared workspace</title>
      <link>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5226#M1697</link>
      <description>&lt;P&gt;@Nermin Yehia​&amp;nbsp;yes that seems to be correct behavior, as you are seeing type of your files, but can you also upgrade cli to new version and see, else that is current behavior &lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/301i6BF1D58A576D6491/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 18:28:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-not-access-sql-files-in-the-shared-workspace/m-p/5226#M1697</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-04-27T18:28:17Z</dc:date>
    </item>
  </channel>
</rss>

