{"id":833,"date":"2022-07-29T10:44:26","date_gmt":"2022-07-29T10:44:26","guid":{"rendered":"https:\/\/craftcookcode.com\/?p=833"},"modified":"2024-07-10T02:08:53","modified_gmt":"2024-07-10T02:08:53","slug":"qlik-replicate-the-wide-text-file-problem","status":"publish","type":"post","link":"https:\/\/craftcookcode.com\/?p=833","title":{"rendered":"Qlik Replicate &#8211; The Wide Text file problem"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">A wide problem<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We had a new business requirement for our team to create a new source for a CSV through Qlik Replicate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OK &#8211; simple enough; create the Source Connector and define the file&#8217;s schema in the table section of the connector.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But the file was 250 columns wide.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I had nightmares before of defining file schemas before in programs like SSIS where one little mistake can lead to hours of debugging.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">A stroke of Luck<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Luckily we knew the source of the CSV file was an output from a view of a database; so the first part of the problem was solved &#8211; we had the schema.&nbsp; Now to import the schema into a Qlik Replicate task.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a new File Source connector and prefill as much known information as you can<\/li>\n\n\n\n<li>In the Tables definition of the File Source; add a dummy field<\/li>\n\n\n\n<li>Create a NULL Target connector<\/li>\n\n\n\n<li>Create a dummy task with your new file source and the Null target and save it<\/li>\n\n\n\n<li><em>Export task with End Points<\/em> to save out the json definition of the task<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Creating the table definition in JSON<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Knowing the view definition; a simple python script can convert it to json.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nimport csv\nimport json\n\nif __name__ == &#039;__main__&#039;:\n\u00a0 final_dic = {}\n\u00a0 source_file = &quot;FileDef.txt&quot;\n\u00a0 field_array = &#x5B;]\n\n\u00a0 \u00a0 with open(source_file, &#039;r&#039;) as f:\n\u00a0 \u00a0 \u00a0 reader = csv.reader(f, delimiter=&#039;t&#039;)\n\u00a0 \u00a0 \u00a0 schema_items = list(reader)\n\n\u00a0 \u00a0 \u00a0 \u00a0 for item in schema_items:\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 focus_item = {}\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 focus_item&#x5B;&quot;name&quot;] = item&#x5B;0]\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 focus_item&#x5B;&quot;nullable&quot;] = True\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 focus_string = item&#x5B;1]\n\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 if item&#x5B;1].find(&quot;NUMBER&quot;) != -1:\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 focus_item&#x5B;&quot;type&quot;] = &quot;kAR_DATA_TYPE_NUMERIC&quot;\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 tokens = focus_string&#x5B;focus_string.find(&quot;(&quot;) + 1: -1].split(&quot;,&quot;)\n\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 precision = tokens&#x5B;0]\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 focus_item&#x5B;&quot;precision&quot;] = int(precision)\n\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 if len(tokens) == 2:\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 scale = tokens&#x5B;1]\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 focus_item&#x5B;&quot;scale&quot;] = int(scale)\n\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 elif item&#x5B;1].find(&quot;VARCHAR2&quot;) != -1: \u00a0#VARCHAR2\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 focus_item&#x5B;&quot;type&quot;] = &quot;kAR_DATA_TYPE_STR&quot;\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 length = focus_string&#x5B;focus_string.find(&quot;(&quot;) + 1 : focus_string.find(&quot;BYTE&quot;) - 1]\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 focus_item&#x5B;&quot;length&quot;] = int(length)\n\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 elif item&#x5B;1].find(&quot;DATE&quot;) != -1:\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 focus_item&#x5B;&quot;type&quot;] = &quot;kAR_DATA_TYPE_TIMESTAMP&quot;\n\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 field_array.append(focus_item)\n\n\u00a0 \u00a0 \u00a0 \u00a0 columns = {}\n\u00a0 \u00a0 \u00a0 columns&#x5B;&quot;columns&quot;] = field_array\n\n\u00a0 \u00a0 f = open(&quot;out.json&quot;, &quot;w&quot;)\n\u00a0 f.write(json.dumps(columns, indent=4))\n\u00a0 f.close()\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\">FileDef.txt<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The following text file contains the schema of the view with the table delimited columns of:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Column Name<\/li>\n\n\n\n<li>Data type<\/li>\n\n\n\n<li>Nullable<\/li>\n\n\n\n<li>Column order<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">UDF_VARCHAR1 VARCHAR2(200 BYTE) Yes 1<br>UDF_VARCHAR2 VARCHAR2(200 BYTE) Yes 2<br>UDF_VARCHAR3 VARCHAR2(200 BYTE) Yes 3<br>UDF_NUMERIC1 NUMBER(10,6) Yes 4<br>UDF_NUMERIC2 NUMBER(10,6) Yes 5<br>UDF_NUMERIC3 NUMBER(10,6) Yes 6<br>UDF_INT1 NUMBER(10,0) Yes 7<br>UDF_INT2 NUMBER(10,0) Yes 8<br>UDF_INT3 NUMBER(10,0) Yes 9<br>UDF_DATE1 DATE Yes 10<br>UDF_DATE2 DATE Yes 11<br>UDF_DATE3 DATE Yes 12<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This particular view definition is from Oracle so uses oracle data types; but it would be simple to change the code over to use a definition from a MS SQL database or other source.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Sticking it all back together<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open up the exported task file json<\/li>\n\n\n\n<li>Find the dummy field that you created in the table definition<\/li>\n\n\n\n<li>Overwrite the dummy field with the json created in the script file<\/li>\n\n\n\n<li>Save and reimport the job.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If all goes well; the File source connector will be overwritten with the full table definition.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A wide problem We had a new business requirement for our team to create a new source for a CSV through Qlik Replicate. OK &#8211; simple&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"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":[13,16],"tags":[],"class_list":["post-833","post","type-post","status-publish","format-standard","hentry","category-code","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 wide problem We had a new business requirement for our team to create a new source for a CSV through Qlik Replicate. OK - simple enough; create the Source Connector and define the file&#039;s schema in the table section of the connector. But the file was 250 columns wide. I had nightmares before of\" \/>\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=833\" \/>\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 \u2013 The Wide Text file problem - Craft Cook Code\" \/>\n\t\t<meta property=\"og:description\" content=\"A wide problem We had a new business requirement for our team to create a new source for a CSV through Qlik Replicate. OK - simple enough; create the Source Connector and define the file&#039;s schema in the table section of the connector. But the file was 250 columns wide. I had nightmares before of\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/craftcookcode.com\/?p=833\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-07-29T10:44:26+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-07-10T02:08:53+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Qlik Replicate \u2013 The Wide Text file problem - Craft Cook Code\" \/>\n\t\t<meta name=\"twitter:description\" content=\"A wide problem We had a new business requirement for our team to create a new source for a CSV through Qlik Replicate. OK - simple enough; create the Source Connector and define the file&#039;s schema in the table section of the connector. But the file was 250 columns wide. I had nightmares before of\" \/>\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=833#blogposting\",\"name\":\"Qlik Replicate \\u2013 The Wide Text file problem - Craft Cook Code\",\"headline\":\"Qlik Replicate &#8211; The Wide Text file problem\",\"author\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=833#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12ea7810156e378894993fa29611c905482263dd05898a50ae5ece294bb6aff0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"jonny.donker@gmail.com\"},\"datePublished\":\"2022-07-29T10:44:26+00:00\",\"dateModified\":\"2024-07-10T02:08:53+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=833#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=833#webpage\"},\"articleSection\":\"Code, Qlik Replicate\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=833#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=833#listItem\",\"name\":\"Qlik Replicate &#8211; The Wide Text file problem\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?cat=13#listItem\",\"name\":\"Code\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=833#listItem\",\"position\":4,\"name\":\"Qlik Replicate &#8211; The Wide Text file problem\",\"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=833#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=833#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=833#webpage\",\"url\":\"https:\\\/\\\/craftcookcode.com\\\/?p=833\",\"name\":\"Qlik Replicate \\u2013 The Wide Text file problem - Craft Cook Code\",\"description\":\"A wide problem We had a new business requirement for our team to create a new source for a CSV through Qlik Replicate. OK - simple enough; create the Source Connector and define the file's schema in the table section of the connector. But the file was 250 columns wide. I had nightmares before of\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?p=833#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/craftcookcode.com\\\/?author=1#author\"},\"datePublished\":\"2022-07-29T10:44:26+00:00\",\"dateModified\":\"2024-07-10T02:08:53+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 \u2013 The Wide Text file problem - Craft Cook Code","description":"A wide problem We had a new business requirement for our team to create a new source for a CSV through Qlik Replicate. OK - simple enough; create the Source Connector and define the file's schema in the table section of the connector. But the file was 250 columns wide. I had nightmares before of","canonical_url":"https:\/\/craftcookcode.com\/?p=833","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/craftcookcode.com\/?p=833#blogposting","name":"Qlik Replicate \u2013 The Wide Text file problem - Craft Cook Code","headline":"Qlik Replicate &#8211; The Wide Text file problem","author":{"@id":"https:\/\/craftcookcode.com\/?author=1#author"},"publisher":{"@id":"https:\/\/craftcookcode.com\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/craftcookcode.com\/?p=833#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/12ea7810156e378894993fa29611c905482263dd05898a50ae5ece294bb6aff0?s=96&d=mm&r=g","width":96,"height":96,"caption":"jonny.donker@gmail.com"},"datePublished":"2022-07-29T10:44:26+00:00","dateModified":"2024-07-10T02:08:53+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/craftcookcode.com\/?p=833#webpage"},"isPartOf":{"@id":"https:\/\/craftcookcode.com\/?p=833#webpage"},"articleSection":"Code, Qlik Replicate"},{"@type":"BreadcrumbList","@id":"https:\/\/craftcookcode.com\/?p=833#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=833#listItem","name":"Qlik Replicate &#8211; The Wide Text file problem"},"previousItem":{"@type":"ListItem","@id":"https:\/\/craftcookcode.com\/?cat=13#listItem","name":"Code"}},{"@type":"ListItem","@id":"https:\/\/craftcookcode.com\/?p=833#listItem","position":4,"name":"Qlik Replicate &#8211; The Wide Text file problem","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=833#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=833#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=833#webpage","url":"https:\/\/craftcookcode.com\/?p=833","name":"Qlik Replicate \u2013 The Wide Text file problem - Craft Cook Code","description":"A wide problem We had a new business requirement for our team to create a new source for a CSV through Qlik Replicate. OK - simple enough; create the Source Connector and define the file's schema in the table section of the connector. But the file was 250 columns wide. I had nightmares before of","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/craftcookcode.com\/#website"},"breadcrumb":{"@id":"https:\/\/craftcookcode.com\/?p=833#breadcrumblist"},"author":{"@id":"https:\/\/craftcookcode.com\/?author=1#author"},"creator":{"@id":"https:\/\/craftcookcode.com\/?author=1#author"},"datePublished":"2022-07-29T10:44:26+00:00","dateModified":"2024-07-10T02:08:53+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 \u2013 The Wide Text file problem - Craft Cook Code","og:description":"A wide problem We had a new business requirement for our team to create a new source for a CSV through Qlik Replicate. OK - simple enough; create the Source Connector and define the file's schema in the table section of the connector. But the file was 250 columns wide. I had nightmares before of","og:url":"https:\/\/craftcookcode.com\/?p=833","article:published_time":"2022-07-29T10:44:26+00:00","article:modified_time":"2024-07-10T02:08:53+00:00","twitter:card":"summary_large_image","twitter:title":"Qlik Replicate \u2013 The Wide Text file problem - Craft Cook Code","twitter:description":"A wide problem We had a new business requirement for our team to create a new source for a CSV through Qlik Replicate. OK - simple enough; create the Source Connector and define the file's schema in the table section of the connector. But the file was 250 columns wide. I had nightmares before of"},"aioseo_meta_data":{"post_id":"833","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":[],"defaultGraph":"Article","defaultPostTypeGraph":""},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"},\"blockGraphs\":[]}","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":"2022-07-29 10:44:16","updated":"2025-06-04 12:26:50","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 \u2013 The Wide Text file problem\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 &#8211; The Wide Text file problem","link":"https:\/\/craftcookcode.com\/?p=833"}],"_links":{"self":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts\/833","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=833"}],"version-history":[{"count":5,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts\/833\/revisions"}],"predecessor-version":[{"id":1446,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts\/833\/revisions\/1446"}],"wp:attachment":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}