<?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: HTML Formatting Issue in Databricks Alerts in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/html-formatting-issue-in-databricks-alerts/m-p/144257#M52295</link>
    <description>&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149483"&gt;@kivaniutenko&lt;/a&gt;&amp;nbsp; thanks for reaching out.&lt;/P&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Databricks alerts still support&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;basic HTML&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in email templates, but HTML will render correctly only for&amp;nbsp;email destinations and only with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;simple, &lt;A href="https://docs.databricks.com/aws/en/sql/user/alerts#advanced-settings" target="_self"&gt;allowed tags&lt;/A&gt;&lt;/STRONG&gt;.&lt;SPAN class="inline-flex" data-state="closed"&gt;​&lt;/SPAN&gt;&lt;SPAN class="inline-flex" data-state="closed"&gt;​&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 id="quick-things-to-try" class="mb-2 mt-4 font-sans font-semimedium text-base first:mt-0 md:text-lg [hr+&amp;amp;]:mt-4"&gt;Quick things to try&lt;/H2&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;Make sure you are using &lt;A href="https://docs.databricks.com/aws/en/sql/user/alerts" target="_self"&gt;Alerts v2&lt;/A&gt; not &lt;A href="https://docs.databricks.com/aws/en/sql/user/alerts/legacy" target="_self"&gt;legacy alerts&lt;/A&gt;.&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;Check that the alert is still sending to an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;email&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;address, not just a webhook or other integration where the content is handled as plain text.&amp;nbsp;&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;Start by temporarily setting the default template to confirm HTML is properly rendered even with this config.&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;Then change it to custom and start with a very simple body like:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;&amp;lt;p&amp;gt;Test &amp;lt;b&amp;gt;alert&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and remove any complex HTML or CSS, then keep adding more. I tested with the static example you provided, which contains allowed tags without double encoding (&amp;amp;lt; or &amp;amp;gt;), and it worked as expected.&lt;SPAN class="inline-flex" data-state="closed"&gt;​&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;If even that simple HTML shows as text, I'd suggest opening a &lt;A href="https://help.databricks.com/s/" target="_self"&gt;Databricks support ticket&lt;/A&gt; in the help center&amp;nbsp;and sharing&amp;nbsp;an example alert for further review.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope this helps, please let us know if it does.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jan 2026 15:41:39 GMT</pubDate>
    <dc:creator>mmayorga</dc:creator>
    <dc:date>2026-01-16T15:41:39Z</dc:date>
    <item>
      <title>HTML Formatting Issue in Databricks Alerts</title>
      <link>https://community.databricks.com/t5/data-engineering/html-formatting-issue-in-databricks-alerts/m-p/110377#M43554</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Hello everyone,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have recently encountered an issue with HTML formatting in custom templates for Databricks Alerts. Previously, the formatting worked correctly, but now the alerts display raw HTML instead of properly rendered content.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example, an alert that used to be formatted correctly now appears as plain text:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;p&amp;gt;Alert &amp;lt;b&amp;gt;"set_v1"&amp;lt;/b&amp;gt; changed status to &amp;lt;span&amp;gt;TRIGGERED&amp;lt;/span&amp;gt;.&amp;lt;br&amp;gt; Data status is &amp;lt;b&amp;gt;Data deviation: Below Lower Threshold&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;br&amp;gt;&amp;lt;table&amp;gt;&amp;lt;tbody&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;day&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;record_count&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;median_record_count&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;mad&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;lower_threshold&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;upper_threshold&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;status&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;2025-02-14&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;14249&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;17296&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;124&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;16924&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;17668&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Data deviation: Below Lower Threshold&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;...&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The expected behavior is that the email alert should render the HTML properly, displaying it as a formatted message rather than raw tags.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone else encountered this problem recently? Has there been a change in how Databricks processes HTML in alerts? Any workarounds or solutions would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 08:45:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/html-formatting-issue-in-databricks-alerts/m-p/110377#M43554</guid>
      <dc:creator>kivaniutenko</dc:creator>
      <dc:date>2025-02-17T08:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: HTML Formatting Issue in Databricks Alerts</title>
      <link>https://community.databricks.com/t5/data-engineering/html-formatting-issue-in-databricks-alerts/m-p/144257#M52295</link>
      <description>&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149483"&gt;@kivaniutenko&lt;/a&gt;&amp;nbsp; thanks for reaching out.&lt;/P&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Databricks alerts still support&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;basic HTML&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in email templates, but HTML will render correctly only for&amp;nbsp;email destinations and only with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;simple, &lt;A href="https://docs.databricks.com/aws/en/sql/user/alerts#advanced-settings" target="_self"&gt;allowed tags&lt;/A&gt;&lt;/STRONG&gt;.&lt;SPAN class="inline-flex" data-state="closed"&gt;​&lt;/SPAN&gt;&lt;SPAN class="inline-flex" data-state="closed"&gt;​&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 id="quick-things-to-try" class="mb-2 mt-4 font-sans font-semimedium text-base first:mt-0 md:text-lg [hr+&amp;amp;]:mt-4"&gt;Quick things to try&lt;/H2&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;Make sure you are using &lt;A href="https://docs.databricks.com/aws/en/sql/user/alerts" target="_self"&gt;Alerts v2&lt;/A&gt; not &lt;A href="https://docs.databricks.com/aws/en/sql/user/alerts/legacy" target="_self"&gt;legacy alerts&lt;/A&gt;.&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;Check that the alert is still sending to an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;email&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;address, not just a webhook or other integration where the content is handled as plain text.&amp;nbsp;&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;Start by temporarily setting the default template to confirm HTML is properly rendered even with this config.&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;Then change it to custom and start with a very simple body like:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;&amp;lt;p&amp;gt;Test &amp;lt;b&amp;gt;alert&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and remove any complex HTML or CSS, then keep adding more. I tested with the static example you provided, which contains allowed tags without double encoding (&amp;amp;lt; or &amp;amp;gt;), and it worked as expected.&lt;SPAN class="inline-flex" data-state="closed"&gt;​&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;If even that simple HTML shows as text, I'd suggest opening a &lt;A href="https://help.databricks.com/s/" target="_self"&gt;Databricks support ticket&lt;/A&gt; in the help center&amp;nbsp;and sharing&amp;nbsp;an example alert for further review.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope this helps, please let us know if it does.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 15:41:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/html-formatting-issue-in-databricks-alerts/m-p/144257#M52295</guid>
      <dc:creator>mmayorga</dc:creator>
      <dc:date>2026-01-16T15:41:39Z</dc:date>
    </item>
  </channel>
</rss>

