<?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: Trigger a Databricks job using sql query in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/trigger-a-databricks-job-using-sql-query/m-p/140401#M51413</link>
    <description>&lt;P&gt;When you say "Databricks Job", do you mean a custom SQL code you created in an stored procedure or function? Saying this because if you're really trying to run a real Databricks Job (lakeflow), it would be much better to establish another strategy different from that initial one. I mean, create firstly the Databricks Job and then, add type of tasks better for you scenario (&lt;A href="https://docs.databricks.com/aws/en/jobs/configure-task#types-of-tasks" target="_blank"&gt;https://docs.databricks.com/aws/en/jobs/configure-task#types-of-tasks&lt;/A&gt; )&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2025 10:16:57 GMT</pubDate>
    <dc:creator>Coffee77</dc:creator>
    <dc:date>2025-11-26T10:16:57Z</dc:date>
    <item>
      <title>Trigger a Databricks job using sql query</title>
      <link>https://community.databricks.com/t5/data-engineering/trigger-a-databricks-job-using-sql-query/m-p/140389#M51410</link>
      <description>&lt;P&gt;Trying to run a SQL call function to trigger a Databricks job and am stuck with an error stating:&lt;BR /&gt;"&lt;SPAN&gt;The schema &amp;lt;schema_name&amp;gt;.system cannot be found. Verify the spelling and correctness of the schema and catalog. If you did not qualify the name with a catalog, verify the current_schema() output, or qualify the name with the correct catalog. To tolerate the error on drop use DROP SCHEMA IF EXISTS. SQLSTATE: 42704".&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The query that I am trying to run: &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%sql&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALL&lt;/SPAN&gt;&amp;nbsp;test_catalog&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;system&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;run_job&lt;/SPAN&gt;&lt;SPAN&gt;("load_table"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Nov 2025 09:38:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trigger-a-databricks-job-using-sql-query/m-p/140389#M51410</guid>
      <dc:creator>Neo_Reeves</dc:creator>
      <dc:date>2025-11-26T09:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a Databricks job using sql query</title>
      <link>https://community.databricks.com/t5/data-engineering/trigger-a-databricks-job-using-sql-query/m-p/140394#M51412</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/198994"&gt;@Neo_Reeves&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is due to the non-existence or incorrect reference to the "system" schema under your catalog. Check the correct catalog and schema names where the stored procedure run_job resides, and update the CALL statement accordingly.&lt;/P&gt;&lt;P&gt;CALL test_catalog.system.run_job("load_table")&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Verify that the schema "system" truly exists in the catalog&amp;nbsp;&lt;/SPAN&gt;test_catalog&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ManojkMohan_0-1764150591502.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21958i768B5DD375583950/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ManojkMohan_0-1764150591502.png" alt="ManojkMohan_0-1764150591502.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If "run_job" is a stored procedure or SQL function, be sure it exists under the correct catalog and schema name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if you intended to execute a stored procedure or run a job, confirm that it is created in a schema you have access to and specify that schema instead of "system"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 09:55:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trigger-a-databricks-job-using-sql-query/m-p/140394#M51412</guid>
      <dc:creator>ManojkMohan</dc:creator>
      <dc:date>2025-11-26T09:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a Databricks job using sql query</title>
      <link>https://community.databricks.com/t5/data-engineering/trigger-a-databricks-job-using-sql-query/m-p/140401#M51413</link>
      <description>&lt;P&gt;When you say "Databricks Job", do you mean a custom SQL code you created in an stored procedure or function? Saying this because if you're really trying to run a real Databricks Job (lakeflow), it would be much better to establish another strategy different from that initial one. I mean, create firstly the Databricks Job and then, add type of tasks better for you scenario (&lt;A href="https://docs.databricks.com/aws/en/jobs/configure-task#types-of-tasks" target="_blank"&gt;https://docs.databricks.com/aws/en/jobs/configure-task#types-of-tasks&lt;/A&gt; )&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 10:16:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trigger-a-databricks-job-using-sql-query/m-p/140401#M51413</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-26T10:16:57Z</dc:date>
    </item>
  </channel>
</rss>

