<?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: Workflow SQL Task Query Showing Empty in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107478#M42808</link>
    <description>&lt;P&gt;Yea it's there in my queries. And after selecting the open icon next to the query, it opens in the editor. I thought it could be a bug with queries created in the New Editor, but I tested that too and still a blank query. It's odd.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ggsmith_0-1738096684423.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14398i4C853755638FC9F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ggsmith_0-1738096684423.png" alt="ggsmith_0-1738096684423.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 20:42:34 GMT</pubDate>
    <dc:creator>ggsmith</dc:creator>
    <dc:date>2025-01-28T20:42:34Z</dc:date>
    <item>
      <title>Workflow SQL Task Query Showing Empty</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107300#M42764</link>
      <description>&lt;P&gt;I am trying to create a SQL task in Workflows. I have my query which executes successfully in the SQL editor, and it is saved in a repo.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ggsmith_0-1738014329449.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14371iF582CA5721B68687/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ggsmith_0-1738014329449.png" alt="ggsmith_0-1738014329449.png" /&gt;&lt;/span&gt;&lt;BR /&gt;However, when I try to execute the task, the below error shows.&lt;BR /&gt;&lt;STRONG&gt;Query text can not be empty: BAD_REQUEST: Query text can not be empty.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ggsmith_1-1738014420683.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14372i92A59C718CB98A91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ggsmith_1-1738014420683.png" alt="ggsmith_1-1738014420683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hovering over the magnify option shows the query blank too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ggsmith_2-1738014505322.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14373i04EEA446850CDE6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ggsmith_2-1738014505322.png" alt="ggsmith_2-1738014505322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Some queries I didn't create do appear though, so I'm not sure what I'm missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 21:52:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107300#M42764</guid>
      <dc:creator>ggsmith</dc:creator>
      <dc:date>2025-01-27T21:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow SQL Task Query Showing Empty</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107334#M42776</link>
      <description>&lt;P&gt;Does it run outside of repo if you try to create a job from simple notebook?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 05:32:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107334#M42776</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2025-01-28T05:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow SQL Task Query Showing Empty</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107461#M42806</link>
      <description>&lt;P&gt;Yes, I can run the task when the type selected is Notebook and the code is moved to a sql notebook. The issue only occurs when trying to run a task of type SQL.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 19:11:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107461#M42806</guid>
      <dc:creator>ggsmith</dc:creator>
      <dc:date>2025-01-28T19:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow SQL Task Query Showing Empty</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107475#M42807</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/115999"&gt;@ggsmith&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I tried running it, and it worked without any issues on my end.&lt;/P&gt;&lt;P class=""&gt;Just to double-check, can you see your query inside &lt;STRONG&gt;SQL &amp;gt; Query &amp;gt; My Queries&lt;/STRONG&gt;? If it appears there, try clicking on it to view the query. It’s possible that you might have accidentally deleted the query from the SQL editor and saved it, which could explain why it’s empty.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 20:35:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107475#M42807</guid>
      <dc:creator>Isi</dc:creator>
      <dc:date>2025-01-28T20:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow SQL Task Query Showing Empty</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107478#M42808</link>
      <description>&lt;P&gt;Yea it's there in my queries. And after selecting the open icon next to the query, it opens in the editor. I thought it could be a bug with queries created in the New Editor, but I tested that too and still a blank query. It's odd.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ggsmith_0-1738096684423.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14398i4C853755638FC9F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ggsmith_0-1738096684423.png" alt="ggsmith_0-1738096684423.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 20:42:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107478#M42808</guid>
      <dc:creator>ggsmith</dc:creator>
      <dc:date>2025-01-28T20:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow SQL Task Query Showing Empty</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107486#M42810</link>
      <description>&lt;P&gt;I can able to reproduce the Issue. Can you please check the sql warehouse has permissions to run the query? below I have tested with a sql warehouse doesn't have permissions to run the query and sql warehouse has permissions to run the query.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Job Task Details:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-28 at 2.44.19 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14400i32CAE9488944E314/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-01-28 at 2.44.19 PM.png" alt="Screenshot 2025-01-28 at 2.44.19 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Failed Run and Successful Run:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-28 at 2.43.51 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14401i246E2A7C3123675D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-01-28 at 2.43.51 PM.png" alt="Screenshot 2025-01-28 at 2.43.51 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Failed Run:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-28 at 2.43.58 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14402i184813A74649B506/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-01-28 at 2.43.58 PM.png" alt="Screenshot 2025-01-28 at 2.43.58 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;U&gt;Successful Run:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-28 at 2.44.11 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14399iD1261E68163C8D78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-01-28 at 2.44.11 PM.png" alt="Screenshot 2025-01-28 at 2.44.11 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 20:49:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107486#M42810</guid>
      <dc:creator>Satyadeepak</dc:creator>
      <dc:date>2025-01-28T20:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow SQL Task Query Showing Empty</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107494#M42814</link>
      <description>&lt;P&gt;That would make sense. Can you tell me what the permissions look like between the two in your example? I'm not very familiar with permissions for the warehouses and want to be able to explain it correctly to my admin.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 22:02:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107494#M42814</guid>
      <dc:creator>ggsmith</dc:creator>
      <dc:date>2025-01-28T22:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow SQL Task Query Showing Empty</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107500#M42815</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/115999"&gt;@ggsmith&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Go to where the query is stored, access the &lt;STRONG&gt;Permissions&lt;/STRONG&gt; settings, and ensure the user who runs the job (as defined in &lt;STRONG&gt;Run As&lt;/STRONG&gt; inside the job details) has the necessary permissions. By default, the &lt;STRONG&gt;Run As&lt;/STRONG&gt; user is set to the &lt;STRONG&gt;owner&lt;/STRONG&gt; or the &lt;STRONG&gt;creator&lt;/STRONG&gt; of the query.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2025-01-28 a las 23.32.00.png" style="width: 737px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14405i1BEFA56B8885844C/image-dimensions/737x100?v=v2" width="737" height="100" role="button" title="Captura de pantalla 2025-01-28 a las 23.32.00.png" alt="Captura de pantalla 2025-01-28 a las 23.32.00.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;More info about QUERY Permissions: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2024-10-05 a las 15.58.44.png" style="width: 641px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14403iF640C54D26A0BBCC/image-dimensions/641x362?v=v2" width="641" height="362" role="button" title="Captura de pantalla 2024-10-05 a las 15.58.44.png" alt="Captura de pantalla 2024-10-05 a las 15.58.44.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 22:36:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/107500#M42815</guid>
      <dc:creator>Isi</dc:creator>
      <dc:date>2025-01-28T22:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow SQL Task Query Showing Empty</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/108850#M43159</link>
      <description>&lt;P&gt;It ended up being that the query wasn't actually saved. Once I manually clicked save, the query preview showed and the task ran successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm really surprised that was the reason. I had moved the query around to different folders and closed and reopened it in the editor a few times after having logged out.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 21:16:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-sql-task-query-showing-empty/m-p/108850#M43159</guid>
      <dc:creator>ggsmith</dc:creator>
      <dc:date>2025-02-04T21:16:12Z</dc:date>
    </item>
  </channel>
</rss>

