<?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: DLT Pipeline Error -key not found: all_info_dlt_cx_utils_cod resulting in a NoSuchElementExcepti in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dlt-pipeline-error-key-not-found-all-info-dlt-cx-utils-cod/m-p/153054#M53920</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/425"&gt;@MoJaMa&lt;/a&gt;&amp;nbsp;Thanks for the reply, The issue was in the code, corrected code worked&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2026 14:27:53 GMT</pubDate>
    <dc:creator>ittzzmalind</dc:creator>
    <dc:date>2026-04-02T14:27:53Z</dc:date>
    <item>
      <title>DLT Pipeline Error -key not found: all_info_dlt_cx_utils_cod resulting in a NoSuchElementException.</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-pipeline-error-key-not-found-all-info-dlt-cx-utils-cod/m-p/152343#M53810</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Databricks ETL pipeline, specifically an error with the &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25059"&gt;@DP&lt;/a&gt;.expect&lt;/SPAN&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;SPAN&gt;fail decorator causing the pipeline update to fail. The error message indicated a '&lt;STRONG&gt;key not found:&lt;/STRONG&gt; all_info_dlt_cx_utils_cod &lt;/SPAN&gt;&lt;SPAN&gt;' resulting in a &lt;STRONG&gt;NoSuchElementException.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: if we comment &lt;STRONG&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25059"&gt;@DP&lt;/a&gt;.expect_or_fail&amp;nbsp;&lt;/STRONG&gt;code works,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;below is the sample code:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;def&lt;/SPAN&gt; &lt;SPAN&gt;get_parquet_stream&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;parquet_file&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;str&lt;/SPAN&gt;&lt;SPAN&gt;) -&amp;gt; DataFrame:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Helper function to read parquet files as a streaming source.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; """&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; schema_hints &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"optimise_date DATE, account_name STRING"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; utils.&lt;/SPAN&gt;&lt;SPAN&gt;get_parquet_stream_with_timestamp_ntz&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;spark,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;parquet_folder&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;rebal_pack_parquet_folder,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;parquet_file&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;parquet_file,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;schema_hints&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;schema_hints&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25059"&gt;@DP&lt;/a&gt;.table(name="all_info_dlt_cx_utils_code")&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25059"&gt;@DP&lt;/a&gt;.expect_or_fail&lt;/STRONG&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"key_columns_not_null"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"optimise_date IS NOT NULL AND account_name IS NOT NULL"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;def&lt;/SPAN&gt; &lt;SPAN&gt;load_rebal_pack_all_info&lt;/SPAN&gt;&lt;SPAN&gt;():&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Creates `all_info` streaming table by reading parquet files.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; """&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;get_parquet_stream&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"rebal_pack_all_info.parquet"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Mar 2026 17:42:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-pipeline-error-key-not-found-all-info-dlt-cx-utils-cod/m-p/152343#M53810</guid>
      <dc:creator>ittzzmalind</dc:creator>
      <dc:date>2026-03-27T17:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: DLT Pipeline Error -key not found: all_info_dlt_cx_utils_cod resulting in a NoSuchElementExcepti</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-pipeline-error-key-not-found-all-info-dlt-cx-utils-cod/m-p/152350#M53814</link>
      <description>&lt;P&gt;I don't know if it's a copy paste error on your side but you reference an error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;'key not found:&amp;nbsp;all_info_dlt_cx_utils_cod&amp;nbsp;'&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I notice it's missing an "e".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Can you check the code-base for any typos? Maybe there's a&amp;nbsp;&lt;SPAN class="s1"&gt;typo in a &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;dlt.read()&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; or &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;spark.table()&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; call referencing this table incorrectly instead of&amp;nbsp;&lt;STRONG&gt;"all_info_dlt_cx_utils_code"?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If you can share more of the code/error we can see if there could be anything else.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 21:18:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-pipeline-error-key-not-found-all-info-dlt-cx-utils-cod/m-p/152350#M53814</guid>
      <dc:creator>MoJaMa</dc:creator>
      <dc:date>2026-03-27T21:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: DLT Pipeline Error -key not found: all_info_dlt_cx_utils_cod resulting in a NoSuchElementExcepti</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-pipeline-error-key-not-found-all-info-dlt-cx-utils-cod/m-p/153054#M53920</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/425"&gt;@MoJaMa&lt;/a&gt;&amp;nbsp;Thanks for the reply, The issue was in the code, corrected code worked&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 14:27:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-pipeline-error-key-not-found-all-info-dlt-cx-utils-cod/m-p/153054#M53920</guid>
      <dc:creator>ittzzmalind</dc:creator>
      <dc:date>2026-04-02T14:27:53Z</dc:date>
    </item>
  </channel>
</rss>

