<?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: Fabric dbt job fails but same code works on my own laptop in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-dbt-job-fails-but-same-code-works-on-my-own-laptop/m-p/5176283#M16087</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/886622"&gt;@Reponen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for reaching, will happy to assist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes, you should be able to inspect the compiled dbt SQL, but the exact location depends on how the Fabric dbt job is being run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a normal dbt project, compiled SQL is generated under&amp;nbsp;&lt;STRONG&gt;target/compiled/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and SQL is often under &lt;STRONG&gt;target/compiled/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So first check whether the Fabric job output/artifacts expose the&amp;nbsp;target&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;older. The useful files are usually below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;target/compiled/&amp;lt;project_name&amp;gt;/models/...&lt;BR /&gt;target/run/&amp;lt;project_name&amp;gt;/models/...&lt;BR /&gt;target/manifest.json&lt;BR /&gt;target/run_results.json&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If fabric do not expose directly you can add debugger step before/after dbt run or dbt test to list or copy target foler to lakehouse for example,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dbt compile -&amp;gt;Inspect-&amp;gt;target/compiled&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For troubleshooting please check dbt version in local and fabric&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;dbt --version&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;dbt debug&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;dbt compile&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;STRONG&gt;timestamp2(6)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to&amp;nbsp;&lt;STRONG&gt;timestamp2(7)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;difference suggests the Fabric environment may be using a different adapter, connector, SQL dialect behavior, or package/dbt version than your laptop. Make sure the dbt version and adapter version match locally and in Fabric.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Please consdier this as an accepetd solution if it helps, or give some kudos.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 30 Apr 2026 13:43:25 GMT</pubDate>
    <dc:creator>Lodha_Jaydeep</dc:creator>
    <dc:date>2026-04-30T13:43:25Z</dc:date>
    <item>
      <title>Fabric dbt job fails but same code works on my own laptop</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-dbt-job-fails-but-same-code-works-on-my-own-laptop/m-p/5176233#M16086</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have faced few proplems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have test that checks if key is null.&lt;/P&gt;&lt;P&gt;On my ownlaptop it gives pass&amp;nbsp; but in fabric enviroment it gives failed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also somehow dbt in fabric changes timestamp2(6) -&amp;gt; (7) and fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there way to see combiled dbt code in fabric to pinpoint proplem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-V&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 12:22:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-dbt-job-fails-but-same-code-works-on-my-own-laptop/m-p/5176233#M16086</guid>
      <dc:creator>Reponen</dc:creator>
      <dc:date>2026-04-30T12:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric dbt job fails but same code works on my own laptop</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-dbt-job-fails-but-same-code-works-on-my-own-laptop/m-p/5176283#M16087</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/886622"&gt;@Reponen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for reaching, will happy to assist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes, you should be able to inspect the compiled dbt SQL, but the exact location depends on how the Fabric dbt job is being run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a normal dbt project, compiled SQL is generated under&amp;nbsp;&lt;STRONG&gt;target/compiled/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and SQL is often under &lt;STRONG&gt;target/compiled/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So first check whether the Fabric job output/artifacts expose the&amp;nbsp;target&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;older. The useful files are usually below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;target/compiled/&amp;lt;project_name&amp;gt;/models/...&lt;BR /&gt;target/run/&amp;lt;project_name&amp;gt;/models/...&lt;BR /&gt;target/manifest.json&lt;BR /&gt;target/run_results.json&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If fabric do not expose directly you can add debugger step before/after dbt run or dbt test to list or copy target foler to lakehouse for example,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dbt compile -&amp;gt;Inspect-&amp;gt;target/compiled&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For troubleshooting please check dbt version in local and fabric&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;dbt --version&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;dbt debug&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;dbt compile&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;STRONG&gt;timestamp2(6)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to&amp;nbsp;&lt;STRONG&gt;timestamp2(7)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;difference suggests the Fabric environment may be using a different adapter, connector, SQL dialect behavior, or package/dbt version than your laptop. Make sure the dbt version and adapter version match locally and in Fabric.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Please consdier this as an accepetd solution if it helps, or give some kudos.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Apr 2026 13:43:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-dbt-job-fails-but-same-code-works-on-my-own-laptop/m-p/5176283#M16087</guid>
      <dc:creator>Lodha_Jaydeep</dc:creator>
      <dc:date>2026-04-30T13:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric dbt job fails but same code works on my own laptop</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-dbt-job-fails-but-same-code-works-on-my-own-laptop/m-p/5176284#M16088</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/886622"&gt;@Reponen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can see this in Fabric because it’s not the same engine as your local dbt run, so small differences show up.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;The null test usually means the data isn’t exactly the same in Fabric (timing, duplicates, actual nulls). The datetime2(6) → (7) change is also normal — Fabric can use higher precision, which then breaks strict tests.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;You can check what dbt actually ran: open the job run, go to Artifacts / Logs, and look at manifest.json or the target/compiled output.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;What normally helps is compiling locally (dbt compile), then running the compiled SQL in Fabric to see where it differs. If it’s the timestamp, just cast it explicitly, e.g. CAST(column AS DATETIME2(6))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Reference: &lt;A title="datetime2 (Transact-SQL)" href="https://learn.microsoft.com/sql/t-sql/data-types/datetime2-transact-sql" target="_self"&gt;datetime2 (Transact-SQL)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 13:43:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-dbt-job-fails-but-same-code-works-on-my-own-laptop/m-p/5176284#M16088</guid>
      <dc:creator>Olufemi7</dc:creator>
      <dc:date>2026-04-30T13:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric dbt job fails but same code works on my own laptop</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-dbt-job-fails-but-same-code-works-on-my-own-laptop/m-p/5177143#M16101</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/886622"&gt;@Reponen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/843006"&gt;@Olufemi7&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/486347"&gt;@Lodha_Jaydeep&lt;/a&gt;&amp;nbsp;for sharing valuable insights.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for being part of the Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 04:09:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-dbt-job-fails-but-same-code-works-on-my-own-laptop/m-p/5177143#M16101</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2026-05-04T04:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric dbt job fails but same code works on my own laptop</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-dbt-job-fails-but-same-code-works-on-my-own-laptop/m-p/5179010#M16141</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/886622"&gt;@Reponen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We hope you're doing well. Could you please confirm whether your issue has been resolved or if you're still facing challenges? Your update will be valuable to the community and may assist others with similar concerns.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 04:24:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-dbt-job-fails-but-same-code-works-on-my-own-laptop/m-p/5179010#M16141</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2026-05-07T04:24:50Z</dc:date>
    </item>
  </channel>
</rss>

