<?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: Issue with HTML Table Styling in Databricks Alerts in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/123588#M47030</link>
    <description>&lt;P&gt;We are experiencing the same problem with alert v2&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2025 05:37:25 GMT</pubDate>
    <dc:creator>longchass1</dc:creator>
    <dc:date>2025-07-02T05:37:25Z</dc:date>
    <item>
      <title>Issue with HTML Table Styling in Databricks Alerts</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/92036#M38331</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I’m trying to create an alert in Databricks with a custom email notification that includes the results of a SQL query displayed in an HTML table. However, I am facing issues with styling the table, specifically with adding borders and background colors to the headers.&lt;/P&gt;&lt;P&gt;Here is the HTML code I am currently using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;table border="1" cellpadding="5" cellspacing="0"&amp;gt;
  &amp;lt;tr style="background-color: black; color: white; font-weight: bold;"&amp;gt;
    &amp;lt;th&amp;gt;Project Name&amp;lt;/th&amp;gt;
    &amp;lt;th&amp;gt;Jira ID&amp;lt;/th&amp;gt;
    &amp;lt;th&amp;gt;Category&amp;lt;/th&amp;gt;
    &amp;lt;th&amp;gt;Site&amp;lt;/th&amp;gt;
  &amp;lt;/tr&amp;gt;
  &amp;lt;tbody&amp;gt;
    {{#QUERY_RESULT_ROWS}}
    &amp;lt;tr&amp;gt;
      &amp;lt;td&amp;gt;{{Project_Name}}&amp;lt;/td&amp;gt;
      &amp;lt;td&amp;gt;{{Jira_ID}}&amp;lt;/td&amp;gt;
      &amp;lt;td&amp;gt;{{Category_1}}&amp;lt;/td&amp;gt;
      &amp;lt;td&amp;gt;{{Site}}&amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
    {{/QUERY_RESULT_ROWS}}
  &amp;lt;/tbody&amp;gt;
&amp;lt;/table&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table renders correctly with the data, but the following issues persist:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Borders do not appear around the cells.&lt;/LI&gt;&lt;LI&gt;Background color for the header row doesn’t display.&lt;/LI&gt;&lt;LI&gt;Overall table styling (such as cellpadding and cellspacing) doesn’t seem to be applied.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have tried several variations, including inline styles, but nothing seems to work. Is there a limitation with HTML and CSS in Databricks alerts, or am I missing something in the implementation?&lt;/P&gt;&lt;P&gt;Any guidance or solutions on how to display a properly styled table in the alert email would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 13:53:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/92036#M38331</guid>
      <dc:creator>VKe</dc:creator>
      <dc:date>2024-09-27T13:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with HTML Table Styling in Databricks Alerts</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/92039#M38333</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/108129"&gt;@VKe&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;That's because only subsets of html tags and attributes are supported in alerts:&lt;/P&gt;&lt;P&gt;You can use HTML to format messages in a custom template. The following tags and attributes are allowed in templates:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/en/sql/user/alerts/index.html" target="_blank"&gt;https://docs.databricks.com/en/sql/user/alerts/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Tags: &amp;lt;a&amp;gt;, &amp;lt;abbr&amp;gt;, &amp;lt;acronym&amp;gt;, &amp;lt;b&amp;gt;, &amp;lt;blockquote&amp;gt;, &amp;lt;body&amp;gt;, &amp;lt;br&amp;gt;, &amp;lt;code&amp;gt;, &amp;lt;div&amp;gt;, &amp;lt;em&amp;gt;, &amp;lt;h1&amp;gt;, &amp;lt;h2&amp;gt;, &amp;lt;h3&amp;gt;, &amp;lt;h4&amp;gt;, &amp;lt;h5&amp;gt;, &amp;lt;h6&amp;gt;, &amp;lt;head&amp;gt;, &amp;lt;hr&amp;gt;, &amp;lt;html&amp;gt;, &amp;lt;i&amp;gt;, &amp;lt;li&amp;gt;, &amp;lt;ol&amp;gt;, &amp;lt;p&amp;gt;, &amp;lt;span&amp;gt;, &amp;lt;strong&amp;gt;, &amp;lt;table&amp;gt;, &amp;lt;tbody&amp;gt;, &amp;lt;td&amp;gt;, &amp;lt;th&amp;gt;, &amp;lt;tr&amp;gt;, &amp;lt;ul&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attributes: href (for &amp;lt;a&amp;gt;), title (for &amp;lt;a&amp;gt;, &amp;lt;abbr&amp;gt;, &amp;lt;acronym&amp;gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 14:34:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/92039#M38333</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-27T14:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with HTML Table Styling in Databricks Alerts</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/92059#M38335</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;Thank you for your response!&lt;/P&gt;&lt;P&gt;I had seen the list of supported HTML tags in the documentation, but I couldn’t believe that it wouldn’t be possible to format an email neatly. I was hoping that there might still be a way to achieve a cleaner, more styled layout for the alert notifications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It’s a bit surprising that we’re so limited in formatting options, but I appreciate your clarification.&lt;/P&gt;&lt;P&gt;Thanks again for the help!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 16:23:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/92059#M38335</guid>
      <dc:creator>VKe</dc:creator>
      <dc:date>2024-09-27T16:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with HTML Table Styling in Databricks Alerts</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/92063#M38338</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/108129"&gt;@VKe&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;No problem. I had the same requirement and I must admit I was also surprised that only a subset of attributes and tags are currently supported.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 16:31:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/92063#M38338</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-27T16:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with HTML Table Styling in Databricks Alerts</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/94692#M38957</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/108129"&gt;@VKe&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;{{#QUERY_RESULT_ROWS}} and&amp;nbsp;{{/QUERY_RESULT_ROWS}} used to work like a charm in presenting query result in custom alert email, but now&amp;nbsp;&lt;SPAN&gt;the results are showing up blank in my alert notifications. Are you experiencing the same?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 05:08:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/94692#M38957</guid>
      <dc:creator>dec1mo</dc:creator>
      <dc:date>2024-10-18T05:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with HTML Table Styling in Databricks Alerts</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/117189#M45451</link>
      <description>&lt;P&gt;I am facing the same issue. When I used&amp;nbsp;&lt;SPAN&gt;{{#QUERY_RESULT_ROWS}} and&amp;nbsp;{{/QUERY_RESULT_ROWS}} and it is giving me "Unable to display preview, an invalid templet was provided"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 17:41:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/117189#M45451</guid>
      <dc:creator>skyatall</dc:creator>
      <dc:date>2025-04-30T17:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with HTML Table Styling in Databricks Alerts</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/123588#M47030</link>
      <description>&lt;P&gt;We are experiencing the same problem with alert v2&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 05:37:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-with-html-table-styling-in-databricks-alerts/m-p/123588#M47030</guid>
      <dc:creator>longchass1</dc:creator>
      <dc:date>2025-07-02T05:37:25Z</dc:date>
    </item>
  </channel>
</rss>

