{"id":1187,"date":"2023-09-06T06:36:07","date_gmt":"2023-09-06T06:36:07","guid":{"rendered":"https:\/\/craftcookcode.com\/?p=1187"},"modified":"2024-07-10T02:02:58","modified_gmt":"2024-07-10T02:02:58","slug":"qlik-replicate-expressions-wait-thats-illegal","status":"publish","type":"post","link":"https:\/\/craftcookcode.com\/?p=1187","title":{"rendered":"Qlik Replicate Expressions &#8211; Wait.  That&#8217;s Illegal"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A new team will be taking over for out of hours oncall for Qlik Replicate and I tasked with training up a new team to diagnose and resolve problems with QR.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I thought it was a good idea to create some practice QR tasks in our development environment; intentionally put some problems in the tasks and let the new team diagnose the problem in a safe and no pressure scenarios.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I did the obvious ones; like put an incorrect password in an end point, put a typo in a filter criteria.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Looking for another scenario I thought \u2013 \u201cNothing better than a divide by zero error.\u201d<style>\/*! elementor - v3.13.3 - 28-05-2023 *\/&amp;lt;br \/>&lt;br>.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Wait. That&#8217;s Illegal &#8211; Part 1<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I created a simple table; with a field of CURR_BAL = 1000 and ASSET_VALUE = 0 and added a new field call LVR with the expression of:<style>\/*! elementor - v3.13.3 - 28-05-2023 *\/&amp;lt;br \/>&lt;br>.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=\".svg\"]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}<\/style><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$CURR_BALANCE \/ $ASSET_VALUE\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/craftcookcode.com\/wp-content\/uploads\/2023\/09\/Code_CDC_Expression.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ran a full load expecting lots of nice and nasty error messages for the new team to investigate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hmm \u2013 no errors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s not what I expected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All the rows were transferred across and there was no errors or warnings in the log file, no data errors or anything.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I bumped up all the logging to \u201cTrace\u201d and reran the full load.&nbsp; Once again, no error messages.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Redirecting the output from the task to a kafka topic; I notice the records that had an intentional div\/0 scenario was coming through as null.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n{\n  &quot;magic&quot;: &quot;atMSG&quot;,\n  &quot;type&quot;: &quot;DT&quot;,\n  &quot;headers&quot;: null,\n  &quot;messageSchemaId&quot;: null,\n  &quot;messageSchema&quot;: null,\n  &quot;message&quot;: {\n    &quot;data&quot;: {\n      &quot;ACCOUNT_ID&quot;: 5,\n      &quot;ACCOUNT_NAME&quot;: &quot;Elissa&quot;,\n      &quot;CURR_BALANCE&quot;: &quot;10000.00&quot;,\n      &quot;ASSET_VALUE&quot;: &quot;0.00&quot;,\n      &quot;LVR&quot;: null\n    },\n    &quot;beforeData&quot;: null,\n    &quot;headers&quot;: {\n      &quot;operation&quot;: &quot;REFRESH&quot;,\n      &quot;changeSequence&quot;: &quot;&quot;,\n      &quot;timestamp&quot;: &quot;&quot;,\n      &quot;streamPosition&quot;: &quot;&quot;,\n      &quot;transactionId&quot;: &quot;&quot;,\n      &quot;changeMask&quot;: null,\n      &quot;columnMask&quot;: null,\n      &quot;transactionEventCounter&quot;: null,\n      &quot;transactionLastEvent&quot;: null\n    }\n  }\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Then I remembered \u2013 CDC expressions are built on sqlite syntax.&nbsp; Looking up how sqlite handles div\/0 scenarios; by default sqlite will return a null instead of failing the query on a div\/0.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Quoting from <a href=\"https:\/\/www.sqlite.org\/sqllogictest\/wiki?name=Differences+Between+Engines\">Sqlite &#8211; Difference Between engines<\/a><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">SQLite does not raise arithmetic exceptions (eg. divide by zero, 1\/0). SQLite returns a NULL value for 1\/0.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Wait. That&#8217;s Illegal &#8211; Part 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I got past my div\/0 conundrum after the explanation of what was happening and had a look at a \u201cvalid\u201d record.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n{\n    &quot;magic&quot;: &quot;atMSG&quot;,\n    &quot;type&quot;: &quot;DT&quot;,\n    &quot;headers&quot;: null,\n    &quot;messageSchemaId&quot;: null,\n    &quot;messageSchema&quot;: null,\n    &quot;message&quot;: {\n        &quot;data&quot;: {\n            &quot;ACCOUNT_ID&quot;: 1,\n            &quot;ACCOUNT_NAME&quot;: &quot;Alice&quot;,\n            &quot;CURR_BALANCE&quot;: &quot;12345.00&quot;,\n            &quot;ASSET_VALUE&quot;: &quot;500000.00&quot;,\n            &quot;LVR&quot;: 0        &amp;lt;------------- Huh?\n        },\n        &quot;beforeData&quot;: null,\n        &quot;headers&quot;: {\n            &quot;operation&quot;: &quot;REFRESH&quot;,\n            &quot;changeSequence&quot;: &quot;&quot;,\n            &quot;timestamp&quot;: &quot;&quot;,\n            &quot;streamPosition&quot;: &quot;&quot;,\n            &quot;transactionId&quot;: &quot;&quot;,\n            &quot;changeMask&quot;: null,\n            &quot;columnMask&quot;: null,\n            &quot;transactionEventCounter&quot;: null,\n            &quot;transactionLastEvent&quot;: null\n        }\n    }\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Again our LVR value was wrong.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">12345.00 \/ 500000.00 should be 0.02469; instead of 0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A couple of things popped to mind.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It looked like the classic integer division issue that always catches out new (and experienced) programmer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But that didn\u2019t make any sense since the source fields were both numeric(18,2).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I checked the destination field that I added.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It was set to numeric(18,2), which isn\u2019t precise enough for the LVR value but we still should have got 0.2 instead 0.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OK &#8211; QR must not like&nbsp;the \u201ccustom\u201d precision of numeric(18,2) for the LVR field.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I tried forcing the LVR field data type to REAL(4).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/craftcookcode.com\/wp-content\/uploads\/2023\/09\/Code_CDC_Expression_2-1024x560.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Still got the incorrect value for LVR<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Maybe for some reason QR \/sqlite treats the values coming in as an integer; even though the source data type is numeric(18,2) on the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s give this a go:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nCAST($CURR_BALANCE AS NUMERIC) \/ $ASSET_VALUE\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">^^ Nope<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nCAST($CURR_BALANCE AS NUMERIC) \/ CAST($ASSET_VALUE AS NUMERIC)\u00a0\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">^^&nbsp;Long shot but nope<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nCAST($CURR_BALANCE AS REAL) \/ $ASSET_VALUE\u00a0\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">^^&nbsp;At last success<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n{\n    &quot;magic&quot;: &quot;atMSG&quot;,\n    &quot;type&quot;: &quot;DT&quot;,\n    &quot;headers&quot;: null,\n    &quot;messageSchemaId&quot;: null,\n    &quot;messageSchema&quot;: null,\n    &quot;message&quot;: {\n        &quot;data&quot;: {\n            &quot;ACCOUNT_ID&quot;: 1,\n            &quot;ACCOUNT_NAME&quot;: &quot;Alice&quot;,\n            &quot;CURR_BALANCE&quot;: &quot;12345.00&quot;,\n            &quot;ASSET_VALUE&quot;: &quot;500000.00&quot;,\n            &quot;LVR&quot;: &quot;0.0246&quot;  &amp;lt;------------- Finally!\n        },\n        &quot;beforeData&quot;: null,\n        &quot;headers&quot;: {\n            &quot;operation&quot;: &quot;REFRESH&quot;,\n            &quot;changeSequence&quot;: &quot;&quot;,\n            &quot;timestamp&quot;: &quot;&quot;,\n            &quot;streamPosition&quot;: &quot;&quot;,\n            &quot;transactionId&quot;: &quot;&quot;,\n            &quot;changeMask&quot;: null,\n            &quot;columnMask&quot;: null,\n            &quot;transactionEventCounter&quot;: null,\n            &quot;transactionLastEvent&quot;: null\n        }\n    }\n}\n\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">It works &#8211; but forcing a precise of numeric value to a floating point data type REAL leaves me uneasy; especially in a finance world were precision is needed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I haven&#8217;t researched or tested whether this is a risk of generating an imprecise number through a division or not; something I will need to put on my todo list.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">My design principle for Qlik Replicate tasks is to keep them as simple as possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Grab the data off the source and get it to the destination as quickly as possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By design principle I am against putting expressions in QR tasks:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>It is not as feature rich as other programming languages\u00a0<\/li>\n\n\n\n<li>It hides business rules that adds a black box and complexity to the pipeline<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Point 2 was the big one for me.&nbsp; I didn&#8217;t want downstream users messaging me every time there was an abnormality in the data.&nbsp; With no expressions in the QR tasks &#8211; I could rightfully say, &#8220;QR just grabs what it finds on the source database &#8211; go and talk to them&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now with the discovery of these little &#8220;features&#8221; that could come from expressions; and more importantly no error or warnings about these &#8220;features&#8221;; it gives me even more incentive not to program in exceptions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">QR in my eyes is not an &#8220;ETL&#8221; tool &#8211; it is just a &#8220;EL&#8221; tool.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your designers want complex expressions and transformations programmed into their data pipelines &#8211; it should be the downstream developers task.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s why they get paid the big bucks.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>A new team will be taking over for out of hours oncall for Qlik Replicate and I tasked with training up a new team to diagnose&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1076,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1187","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qlik-replicate"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"A new team will be taking over for out of hours oncall for Qlik Replicate and I tasked with training up a new team to diagnose and resolve problems with QR. I thought it was a good idea to create some practice QR tasks in our development environment; intentionally put some problems in the tasks\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"jonny.donker@gmail.com\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/craftcookcode.com\/?p=1187\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Craft Cook Code - c^3?\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Qlik Replicate Expressions \u2013 Wait. That\u2019s Illegal - Craft Cook Code\" \/>\n\t\t<meta property=\"og:description\" content=\"A new team will be taking over for out of hours oncall for Qlik Replicate and I tasked with training up a new team to diagnose and resolve problems with QR. I thought it was a good idea to create some practice QR tasks in our development environment; intentionally put some problems in the tasks\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/craftcookcode.com\/?p=1187\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-09-06T06:36:07+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-07-10T02:02:58+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Qlik Replicate Expressions \u2013 Wait. That\u2019s Illegal - Craft Cook Code\" \/>\n\t\t<meta name=\"twitter:description\" content=\"A new team will be taking over for out of hours oncall for Qlik Replicate and I tasked with training up a new team to diagnose and resolve problems with QR. I thought it was a good idea to create some practice QR tasks in our development environment; intentionally put some problems in the tasks\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187#blogposting\",\"name\":\"Qlik Replicate Expressions \\u2013 Wait. That\\u2019s Illegal - Craft Cook Code\",\"headline\":\"Qlik Replicate Expressions &#8211; Wait.  That&#8217;s Illegal\",\"author\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/craftcookcode.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/Qlik_Logo.svg_small.png\",\"width\":400,\"height\":117},\"datePublished\":\"2023-09-06T06:36:07+00:00\",\"dateModified\":\"2024-07-10T02:02:58+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187#webpage\"},\"articleSection\":\"Qlik Replicate\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/craftcookcode.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/craftcookcode.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?cat=13#listItem\",\"name\":\"Code\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?cat=13#listItem\",\"position\":2,\"name\":\"Code\",\"item\":\"https:\\\/\\\/craftcookcode.com\\\/?cat=13\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?cat=16#listItem\",\"name\":\"Qlik Replicate\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/craftcookcode.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?cat=16#listItem\",\"position\":3,\"name\":\"Qlik Replicate\",\"item\":\"https:\\\/\\\/craftcookcode.com\\\/?cat=16\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187#listItem\",\"name\":\"Qlik Replicate Expressions &#8211; Wait.  That&#8217;s Illegal\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?cat=13#listItem\",\"name\":\"Code\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187#listItem\",\"position\":4,\"name\":\"Qlik Replicate Expressions &#8211; Wait.  That&#8217;s Illegal\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?cat=16#listItem\",\"name\":\"Qlik Replicate\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/#person\",\"name\":\"jonny.donker@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12ea7810156e378894993fa29611c905482263dd05898a50ae5ece294bb6aff0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"jonny.donker@gmail.com\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?author=1#author\",\"url\":\"https:\\\/\\\/craftcookcode.com\\\/?author=1\",\"name\":\"jonny.donker@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12ea7810156e378894993fa29611c905482263dd05898a50ae5ece294bb6aff0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"jonny.donker@gmail.com\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187#webpage\",\"url\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187\",\"name\":\"Qlik Replicate Expressions \\u2013 Wait. That\\u2019s Illegal - Craft Cook Code\",\"description\":\"A new team will be taking over for out of hours oncall for Qlik Replicate and I tasked with training up a new team to diagnose and resolve problems with QR. I thought it was a good idea to create some practice QR tasks in our development environment; intentionally put some problems in the tasks\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/craftcookcode.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/Qlik_Logo.svg_small.png\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187\\\/#mainImage\",\"width\":400,\"height\":117},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=1187#mainImage\"},\"datePublished\":\"2023-09-06T06:36:07+00:00\",\"dateModified\":\"2024-07-10T02:02:58+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/#website\",\"url\":\"https:\\\/\\\/craftcookcode.com\\\/\",\"name\":\"Craft Cook Code\",\"description\":\"c^3?\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Qlik Replicate Expressions \u2013 Wait. That\u2019s Illegal - Craft Cook Code","description":"A new team will be taking over for out of hours oncall for Qlik Replicate and I tasked with training up a new team to diagnose and resolve problems with QR. I thought it was a good idea to create some practice QR tasks in our development environment; intentionally put some problems in the tasks","canonical_url":"https:\/\/craftcookcode.com\/?p=1187","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/craftcookcode.com\/?p=1187#blogposting","name":"Qlik Replicate Expressions \u2013 Wait. That\u2019s Illegal - Craft Cook Code","headline":"Qlik Replicate Expressions &#8211; Wait.  That&#8217;s Illegal","author":{"@id":"https:\/\/craftcookcode.com\/?author=1#author"},"publisher":{"@id":"https:\/\/craftcookcode.com\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/craftcookcode.com\/wp-content\/uploads\/2022\/12\/Qlik_Logo.svg_small.png","width":400,"height":117},"datePublished":"2023-09-06T06:36:07+00:00","dateModified":"2024-07-10T02:02:58+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/craftcookcode.com\/?p=1187#webpage"},"isPartOf":{"@id":"https:\/\/craftcookcode.com\/?p=1187#webpage"},"articleSection":"Qlik Replicate"},{"@type":"BreadcrumbList","@id":"https:\/\/craftcookcode.com\/?p=1187#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/craftcookcode.com#listItem","position":1,"name":"Home","item":"https:\/\/craftcookcode.com","nextItem":{"@type":"ListItem","@id":"https:\/\/craftcookcode.com\/?cat=13#listItem","name":"Code"}},{"@type":"ListItem","@id":"https:\/\/craftcookcode.com\/?cat=13#listItem","position":2,"name":"Code","item":"https:\/\/craftcookcode.com\/?cat=13","nextItem":{"@type":"ListItem","@id":"https:\/\/craftcookcode.com\/?cat=16#listItem","name":"Qlik Replicate"},"previousItem":{"@type":"ListItem","@id":"https:\/\/craftcookcode.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/craftcookcode.com\/?cat=16#listItem","position":3,"name":"Qlik Replicate","item":"https:\/\/craftcookcode.com\/?cat=16","nextItem":{"@type":"ListItem","@id":"https:\/\/craftcookcode.com\/?p=1187#listItem","name":"Qlik Replicate Expressions &#8211; Wait.  That&#8217;s Illegal"},"previousItem":{"@type":"ListItem","@id":"https:\/\/craftcookcode.com\/?cat=13#listItem","name":"Code"}},{"@type":"ListItem","@id":"https:\/\/craftcookcode.com\/?p=1187#listItem","position":4,"name":"Qlik Replicate Expressions &#8211; Wait.  That&#8217;s Illegal","previousItem":{"@type":"ListItem","@id":"https:\/\/craftcookcode.com\/?cat=16#listItem","name":"Qlik Replicate"}}]},{"@type":"Person","@id":"https:\/\/craftcookcode.com\/#person","name":"jonny.donker@gmail.com","image":{"@type":"ImageObject","@id":"https:\/\/craftcookcode.com\/?p=1187#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/12ea7810156e378894993fa29611c905482263dd05898a50ae5ece294bb6aff0?s=96&d=mm&r=g","width":96,"height":96,"caption":"jonny.donker@gmail.com"}},{"@type":"Person","@id":"https:\/\/craftcookcode.com\/?author=1#author","url":"https:\/\/craftcookcode.com\/?author=1","name":"jonny.donker@gmail.com","image":{"@type":"ImageObject","@id":"https:\/\/craftcookcode.com\/?p=1187#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/12ea7810156e378894993fa29611c905482263dd05898a50ae5ece294bb6aff0?s=96&d=mm&r=g","width":96,"height":96,"caption":"jonny.donker@gmail.com"}},{"@type":"WebPage","@id":"https:\/\/craftcookcode.com\/?p=1187#webpage","url":"https:\/\/craftcookcode.com\/?p=1187","name":"Qlik Replicate Expressions \u2013 Wait. That\u2019s Illegal - Craft Cook Code","description":"A new team will be taking over for out of hours oncall for Qlik Replicate and I tasked with training up a new team to diagnose and resolve problems with QR. I thought it was a good idea to create some practice QR tasks in our development environment; intentionally put some problems in the tasks","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/craftcookcode.com\/#website"},"breadcrumb":{"@id":"https:\/\/craftcookcode.com\/?p=1187#breadcrumblist"},"author":{"@id":"https:\/\/craftcookcode.com\/?author=1#author"},"creator":{"@id":"https:\/\/craftcookcode.com\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/craftcookcode.com\/wp-content\/uploads\/2022\/12\/Qlik_Logo.svg_small.png","@id":"https:\/\/craftcookcode.com\/?p=1187\/#mainImage","width":400,"height":117},"primaryImageOfPage":{"@id":"https:\/\/craftcookcode.com\/?p=1187#mainImage"},"datePublished":"2023-09-06T06:36:07+00:00","dateModified":"2024-07-10T02:02:58+00:00"},{"@type":"WebSite","@id":"https:\/\/craftcookcode.com\/#website","url":"https:\/\/craftcookcode.com\/","name":"Craft Cook Code","description":"c^3?","inLanguage":"en-US","publisher":{"@id":"https:\/\/craftcookcode.com\/#person"}}]},"og:locale":"en_US","og:site_name":"Craft Cook Code - c^3?","og:type":"article","og:title":"Qlik Replicate Expressions \u2013 Wait. That\u2019s Illegal - Craft Cook Code","og:description":"A new team will be taking over for out of hours oncall for Qlik Replicate and I tasked with training up a new team to diagnose and resolve problems with QR. I thought it was a good idea to create some practice QR tasks in our development environment; intentionally put some problems in the tasks","og:url":"https:\/\/craftcookcode.com\/?p=1187","article:published_time":"2023-09-06T06:36:07+00:00","article:modified_time":"2024-07-10T02:02:58+00:00","twitter:card":"summary_large_image","twitter:title":"Qlik Replicate Expressions \u2013 Wait. That\u2019s Illegal - Craft Cook Code","twitter:description":"A new team will be taking over for out of hours oncall for Qlik Replicate and I tasked with training up a new team to diagnose and resolve problems with QR. I thought it was a good idea to create some practice QR tasks in our development environment; intentionally put some problems in the tasks"},"aioseo_meta_data":{"post_id":"1187","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-09-06 04:37:50","updated":"2025-06-04 13:10:33","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/craftcookcode.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/craftcookcode.com\/?cat=13\" title=\"Code\">Code<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/craftcookcode.com\/?cat=16\" title=\"Qlik Replicate\">Qlik Replicate<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tQlik Replicate Expressions \u2013 Wait.  That\u2019s Illegal\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/craftcookcode.com"},{"label":"Code","link":"https:\/\/craftcookcode.com\/?cat=13"},{"label":"Qlik Replicate","link":"https:\/\/craftcookcode.com\/?cat=16"},{"label":"Qlik Replicate Expressions &#8211; Wait.  That&#8217;s Illegal","link":"https:\/\/craftcookcode.com\/?p=1187"}],"_links":{"self":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts\/1187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1187"}],"version-history":[{"count":5,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts\/1187\/revisions"}],"predecessor-version":[{"id":1442,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts\/1187\/revisions\/1442"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/media\/1076"}],"wp:attachment":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}