<?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 Facing issues while creating the data mart in Data Movement &amp; Streaming</title>
    <link>https://community.qlik.com/t5/Data-Movement-Streaming/Facing-issues-while-creating-the-data-mart/m-p/2036324#M752</link>
    <description>&lt;P&gt;As part of creating the end-to-end flow of moving data to landing and creating data marts, I am facing issue in creating the DataMart. In the transform section, I am creating 4 sql based datasets which would be my dimension tables. When creating the DataMart, I am getting "&lt;SPAN&gt;Unknown execution error - Numeric value '' is not recognized." The error is being encountered on 2 dimension tables and 1 fact table. Below is the sql that is being used to create the dimension tables.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dimension Tables:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select ${Product}."ProductID",${Product}."SellStartDate",${Product}."SellEndDate",${ProductModel}."ProductModelID",${ProductModel}."Name"&lt;BR /&gt;from ${Product}&lt;BR /&gt;join ${ProductModel} on ${Product}."ProductModelID"=${ProductModel}."ProductModelID"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select Product."ProductID",Product."Name", ProductCategory."category_Name",ProductSubcategory."subcategory_Name" &lt;BR /&gt;from ${Product} Product&lt;BR /&gt;join ${ProductSubcategory} ProductSubcategory on Product."ProductSubcategoryID"=ProductSubcategory."ProductSubcategoryID"&lt;BR /&gt;join ${ProductCategory} ProductCategory on ProductCategory."ProductCategoryID"=ProductSubcategory."ProductCategoryID";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A similar dimension table is being created using SQL which is similar to the one above and I am not encountering any issues there. Below is the SQL for the successful dimension table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select ${Product}."ProductID",${Product}."Name",${Product}."StandardCost",${Product}."DaysToManufacture",${Product}."ProductLine",&lt;BR /&gt;${Vendor}."BusinessEntityID",${Vendor}."AccountNumber",${Vendor}."Vendor_Name",${Vendor}."ActiveFlag",${ProductVendor}."AverageLeadTime",${ProductVendor}."StandardPrice",${ProductVendor}."MinOrderQty",&lt;BR /&gt;${ProductVendor}."MaxOrderQty" from ${Product}&lt;BR /&gt;join ${ProductVendor} on ${Product}."ProductID"=${ProductVendor}."ProductID"&lt;BR /&gt;join ${Vendor} on ${Vendor}."BusinessEntityID"=${ProductVendor}."BusinessEntityID";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Pl, suggest on what I am missing and why am I encountering this issue. Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="akaradhya_0-1676013079608.png" style="width: 718px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100157i9F359409C8C84A7E/image-dimensions/718x90?v=v2" width="718" height="90" role="button" title="akaradhya_0-1676013079608.png" alt="akaradhya_0-1676013079608.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Mar 2025 23:06:21 GMT</pubDate>
    <dc:creator>akaradhya</dc:creator>
    <dc:date>2025-03-19T23:06:21Z</dc:date>
    <item>
      <title>Facing issues while creating the data mart</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/Facing-issues-while-creating-the-data-mart/m-p/2036324#M752</link>
      <description>&lt;P&gt;As part of creating the end-to-end flow of moving data to landing and creating data marts, I am facing issue in creating the DataMart. In the transform section, I am creating 4 sql based datasets which would be my dimension tables. When creating the DataMart, I am getting "&lt;SPAN&gt;Unknown execution error - Numeric value '' is not recognized." The error is being encountered on 2 dimension tables and 1 fact table. Below is the sql that is being used to create the dimension tables.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dimension Tables:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select ${Product}."ProductID",${Product}."SellStartDate",${Product}."SellEndDate",${ProductModel}."ProductModelID",${ProductModel}."Name"&lt;BR /&gt;from ${Product}&lt;BR /&gt;join ${ProductModel} on ${Product}."ProductModelID"=${ProductModel}."ProductModelID"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select Product."ProductID",Product."Name", ProductCategory."category_Name",ProductSubcategory."subcategory_Name" &lt;BR /&gt;from ${Product} Product&lt;BR /&gt;join ${ProductSubcategory} ProductSubcategory on Product."ProductSubcategoryID"=ProductSubcategory."ProductSubcategoryID"&lt;BR /&gt;join ${ProductCategory} ProductCategory on ProductCategory."ProductCategoryID"=ProductSubcategory."ProductCategoryID";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A similar dimension table is being created using SQL which is similar to the one above and I am not encountering any issues there. Below is the SQL for the successful dimension table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select ${Product}."ProductID",${Product}."Name",${Product}."StandardCost",${Product}."DaysToManufacture",${Product}."ProductLine",&lt;BR /&gt;${Vendor}."BusinessEntityID",${Vendor}."AccountNumber",${Vendor}."Vendor_Name",${Vendor}."ActiveFlag",${ProductVendor}."AverageLeadTime",${ProductVendor}."StandardPrice",${ProductVendor}."MinOrderQty",&lt;BR /&gt;${ProductVendor}."MaxOrderQty" from ${Product}&lt;BR /&gt;join ${ProductVendor} on ${Product}."ProductID"=${ProductVendor}."ProductID"&lt;BR /&gt;join ${Vendor} on ${Vendor}."BusinessEntityID"=${ProductVendor}."BusinessEntityID";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Pl, suggest on what I am missing and why am I encountering this issue. Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="akaradhya_0-1676013079608.png" style="width: 718px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100157i9F359409C8C84A7E/image-dimensions/718x90?v=v2" width="718" height="90" role="button" title="akaradhya_0-1676013079608.png" alt="akaradhya_0-1676013079608.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 23:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/Facing-issues-while-creating-the-data-mart/m-p/2036324#M752</guid>
      <dc:creator>akaradhya</dc:creator>
      <dc:date>2025-03-19T23:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issues while creating the data mart</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/Facing-issues-while-creating-the-data-mart/m-p/2036562#M753</link>
      <description>&lt;P&gt;Hello - are you getting this error when running the Transform, during prepare or another step?&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;If when running the transform and its a SQL error coming from Snowflake - are all the join columns the same data type?&amp;nbsp; &amp;nbsp;It could be you have a varchar joining to a numeric - hence the 'numeric value is not recognized'.&amp;nbsp; &amp;nbsp;Many cloud DW env's perform implicit conversions when you join columns like this - if one row has a '' (blank) value that could be causing the issue.&amp;nbsp; &amp;nbsp; (As you can see below, I've simulated this by joining an&amp;nbsp; integer column with a string) .&amp;nbsp; If you take the SQL that is failing and try to run it the SELECT manually in your target DW - does it run or fail?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If this is during runtime - you can see the sql statement that is failing by opening the task and navigating to the Monitor view - select the load process&amp;nbsp; (eg. Full load) from the drop down&lt;/P&gt;
&lt;P&gt;Select the table with error and then click "Monitor Details"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_0-1676037406954.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100199iB945F9697947E129/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_0-1676037406954.png" alt="TimGarrod_0-1676037406954.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_1-1676037449543.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100200iF6E5E9223BFEBE81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_1-1676037449543.png" alt="TimGarrod_1-1676037449543.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One additional comment on creation of dimensions -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While you can certainly create dimensions in this manner in Qlik Cloud Data Integration, there is also a model based approach, where you describe the joins using metadata and the Model tab, and let Qlik Cloud Data Integration automatically generated the SQL with the joins you have above.&amp;nbsp; &amp;nbsp; I'll provide an example in a follow-up post for you.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;This is important to understand because the data mart object supports automation and the model is key in relating fact tables to dimensions, but also automating denormalization with incremental processing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 13:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/Facing-issues-while-creating-the-data-mart/m-p/2036562#M753</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2023-02-10T13:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issues while creating the data mart</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/Facing-issues-while-creating-the-data-mart/m-p/2036586#M754</link>
      <description>&lt;P&gt;Regarding the 'Model-driven' approach - in Storage and Transform tasks, you will see a Model tab.&amp;nbsp;&lt;BR /&gt;The Model does NOT impact the target structures created, nor the parallel processing of the data.&lt;BR /&gt;It depicts a logical representation of relationships (PK-FK) which can then be used by a Data Mart task to automate data mart processing.&amp;nbsp; &amp;nbsp; &amp;nbsp; Models can be created in Storage or Transform tasks, however currently the task immediately prior to the data mart must contain the data model.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;e.g. If you have Landing&amp;gt;Storage&amp;gt;Transform&amp;gt;Mart, the transform must contain the model. &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Now lets provide an example of your scenario.&amp;nbsp; I have created mock-ups of a few of the tables in your SQL statements in my env.&amp;nbsp; Navigating to the Model tab provides me a set of&amp;nbsp;&lt;STRONG&gt;Recommended Relationships.&amp;nbsp;&lt;/STRONG&gt;These are currently defined based on column name and data type matching.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_3-1676038282914.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100204i9FBBF4D20547C08D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_3-1676038282914.png" alt="TimGarrod_3-1676038282914.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Selecting the Recommend Relationships gives me a draft of my Model (clicking Apply will Apply the selected relationships).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Selecting Details and highlighting a dataset in the model or the relationship line provides additional metadata (from the dataset screen).&amp;nbsp; For example - in the below, I have highlighted the relationship between Product and ProductSubCategory to see the columns used in the relationship.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_5-1676038430525.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100206iD43BD90EA5E090BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_5-1676038430525.png" alt="TimGarrod_5-1676038430525.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have relationships to add manually (e.g. column names do not match like BillToCustomerID and CustomerID), you can easily add relationships by the&amp;nbsp;&lt;STRONG&gt;...&lt;/STRONG&gt; menu on each dataset or dragging the dot from the 'child' to the 'parent' .&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_6-1676038451358.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100207iF5888B05693A0453/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_6-1676038451358.png" alt="TimGarrod_6-1676038451358.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One the model has been defined in the Transform task, you can create a data mart using the Data Mart Task -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I am adding a Mart after the Transform_2 task in my pipeline&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_7-1676038544926.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100208iAE3DAA57B9FA7509/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_7-1676038544926.png" alt="TimGarrod_7-1676038544926.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inside the data mart, you can select Add Dimension and configure the tables used in the dimension.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the below - I have selected Product as the grain of my dimension, provided a name, a dimension Type (Type 1 or Type 2 SCD) and also selected ProductSubCategory and ProductCategory.&amp;nbsp; &amp;nbsp; The Data Mart task will know how to denormalize those tables based on the relationship metadata in the model.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_10-1676038875359.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100211iA15116281BC59D0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_10-1676038875359.png" alt="TimGarrod_10-1676038875359.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can repeat this for any number of dimensions.&lt;/P&gt;
&lt;P&gt;Navigate to the Dataset tab to curate the dimension - column names, calculated expressions across the tables selected etc.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you select the&amp;nbsp;&lt;STRONG&gt;...&lt;/STRONG&gt; menu on the dataset - you can now look at the code the data mart task will auto-generate for you to process FULL LOAD of data, as well as incremental.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_9-1676038786890.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100210i123BA652868D4F44/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_9-1676038786890.png" alt="TimGarrod_9-1676038786890.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg - (you will see the use of CTE's in our generated code - in the event you use the table multiple times with multiple / different join conditions)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_11-1676038941044.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100212iC1C5774D50652C3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_11-1676038941044.png" alt="TimGarrod_11-1676038941044.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps as an alternative way to use a metadata driven approach to automated your data mart.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 14:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/Facing-issues-while-creating-the-data-mart/m-p/2036586#M754</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2023-02-10T14:23:32Z</dc:date>
    </item>
  </channel>
</rss>

