<?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: String limitation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542906#M39160</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for suggestions. In my previous post I found a solution but not sure it is the best one.&lt;BR /&gt;At least works fine for this particular case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose this is limitation in latest releases but I would like to know where exactly it started to appear.&lt;/P&gt;&lt;P&gt;Could you please advise who is right person I may ask for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 11:08:14 GMT</pubDate>
    <dc:creator>maxsheva</dc:creator>
    <dc:date>2019-02-12T11:08:14Z</dc:date>
    <item>
      <title>String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542446#M39135</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have found a limitation in Qlik Sense (didn't check in QlikView)&amp;nbsp;in a string of a Field name.&lt;/P&gt;&lt;P&gt;Please see "QV script - Fails" as attachment. It fails when try to load&amp;nbsp; "Field149"&lt;/P&gt;&lt;P&gt;If remove "Field149" from script rows 3,9 it will work properly (see file "QV script - OK")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to generate string for further insert into SQL. Currently I didn't find another way how to create the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be much appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 16:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542446#M39135</guid>
      <dc:creator>maxsheva</dc:creator>
      <dc:date>2019-02-11T16:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542463#M39136</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Could you please help me with this issue?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 17:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542463#M39136</guid>
      <dc:creator>maxsheva</dc:creator>
      <dc:date>2019-02-11T17:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542648#M39148</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont think this is the field149 creating the issues. If you remove a few characters in Concat function the script will work. This might be because of any limit on the script function character. I would love to know more on this.&lt;/P&gt;&lt;P&gt;I hope &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt; will be able to guide us on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pradosh&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 05:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542648#M39148</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-12T05:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542660#M39149</link>
      <description>&lt;P&gt;This problem reminds me some of the limitations that we have in the ODAG apps when we try to pass too many values to a variable using LET. I don't know this limit but maybe this ODAG page can help you to find a solution:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/November2018/Subsystems/Hub/Content/Sense_Hub/LoadData/bind-expressions-OnDemand-template-app.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/November2018/Subsystems/Hub/Content/Sense_Hub/LoadData/bind-expressions-OnDemand-template-app.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;By the way, at the end what are you trying to achieve?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 05:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542660#M39149</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2019-02-12T05:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542756#M39150</link>
      <description>&lt;P&gt;Currently I don't have Sense available and couldn't therefore check for any possible limitations. In View in worked without any problem.&lt;/P&gt;&lt;P&gt;But I think you could change the variable-content to a real string instead of an expression which is executed from the $-sign expansion. This means the variable-content might be look like:&lt;/P&gt;&lt;P&gt;Field1,Field2,Field3, ...&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;chr(39)&amp;amp;"Field1"&amp;amp;chr(39)&amp;amp;','&amp;amp;chr(39)&amp;amp;"Field2"&amp;amp;chr(39)&amp;amp;','&amp;amp;chr(39)&amp;amp;"Field3"&amp;amp;chr(39)&amp;amp;',' ...&lt;/P&gt;&lt;P&gt;This will simplify the approach as well as reducing the length of the string and might therefore uplift the treshold for the number of chars. You could create this structure as well as with a concat-aggregation or maybe also with an interrecord-function within a preceeding load like:&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;Temp1:&lt;BR /&gt;load peek('Values') &amp;amp; Field&amp;nbsp; as Values;&lt;BR /&gt;load 'Field' &amp;amp; recno() &amp;amp; if(recno() &amp;lt; 149, chr(44)) as Field autogenerate 149;&lt;BR /&gt;&lt;BR /&gt;LET vValues = Peek('Values',-1,'Temp_1');&lt;BR /&gt;&lt;BR /&gt;Str: noconcatenate Load $(vValues) Resident Data;&lt;BR /&gt;drop tables Data;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 08:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542756#M39150</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-02-12T08:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542776#M39151</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16186"&gt;@pradosh_thakur&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Most likely it is chr() limitation. I loaded successfully 10 000 simply combined '1' values e.g. '1,'&amp;amp;'1,'...&lt;BR /&gt;But string with chr(39) fails on approximately 5000 length.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 08:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542776#M39151</guid>
      <dc:creator>maxsheva</dc:creator>
      <dc:date>2019-02-12T08:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542791#M39152</link>
      <description>&lt;P&gt;This might be the cause and I'm not surprised because there are various similar limitations to the number of (nested) functions. For example within the View release 11 there is a restriction of 99 if-loops within a single expression and also in the current releases of View and Sense are such limitations (maybe the number of them may have changed) intentionally enabled.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 08:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542791#M39152</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-02-12T08:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542896#M39157</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22035"&gt;@marksouzacosta&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for provided url but&amp;nbsp;it generates different result.&lt;/P&gt;&lt;P&gt;It combines all values from one field&amp;nbsp;with&amp;nbsp;&amp;nbsp;a defined&amp;nbsp;&lt;SPAN&gt;chr(). In other words it works with columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD * INLINE &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&amp;nbsp;Field1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BOS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;JFK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ORD ];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Result&amp;nbsp;'BOS','JFK’,'JFK'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my use case values should be combined from all fields per each row into one string delimited by quotes and comma.&lt;/P&gt;&lt;P&gt;So it should work with rows.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD * INLINE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[ Field1, Field2, Field3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BOS1, BOS2, BOS3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;JFK1,&amp;nbsp;JFK2,&amp;nbsp;JFK3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ORD1,&amp;nbsp;ORD2,&amp;nbsp;ORD3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Expected result&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;row1: 'BOS'1,'JFK’1,'JFK1'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;row2: 'BOS'2,'JFK’2,'JFK2'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;row1: 'BOS'3,'JFK’3,'JFK3'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As I mentioned in my first post it should be passed into SQL INSERT statement as VALUES().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO [dbo].[Table1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ([Field1], [Field2], [Field3])&lt;/P&gt;&lt;P&gt;VALUES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;SPAN&gt;'BOS'1,'JFK’1,'JFK1'&lt;/SPAN&gt;),&amp;nbsp;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'BOS'2,'JFK’2,'JFK2'&lt;/SPAN&gt;&lt;SPAN&gt;),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'BOS'3,'JFK’3,'JFK3'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have already found a solution where split string into two parts. Please see attachment ("QS script updated" and "QS script result").&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 10:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542896#M39157</guid>
      <dc:creator>maxsheva</dc:creator>
      <dc:date>2019-02-12T10:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542906#M39160</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for suggestions. In my previous post I found a solution but not sure it is the best one.&lt;BR /&gt;At least works fine for this particular case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose this is limitation in latest releases but I would like to know where exactly it started to appear.&lt;/P&gt;&lt;P&gt;Could you please advise who is right person I may ask for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 11:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542906#M39160</guid>
      <dc:creator>maxsheva</dc:creator>
      <dc:date>2019-02-12T11:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542960#M39165</link>
      <description>&lt;P&gt;AFAIK there is no public documentation about such limitations. Maybe&amp;nbsp;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622" target="_blank"&gt;Henric Cronström&lt;/A&gt; could shed some light to it.&lt;/P&gt;&lt;P&gt;Running in such limitations is a strong indicator that the used logic has more or less weaknesses and a rethink of the whole task is often better as looking for any ways to bypass it. This means knowing the exact theshold is rather not very useful.&lt;/P&gt;&lt;P&gt;Like in my other answers suggested approach is the creation of real strings probably better and your alternatives to the variable expression-content. Also there might be other (loop) approaches easier to create such strings.&lt;/P&gt;&lt;P&gt;Beside this I could imagine that creating a csv-output of these data which is then imported through your database might be much more convenient as creating load/sql-statements on the fly.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 12:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1542960#M39165</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-02-12T12:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1543040#M39169</link>
      <description>&lt;P&gt;Thanks Marcus,&lt;/P&gt;&lt;P&gt;I have tried to understand how to implement your suggested solution but still not quite clear.&lt;/P&gt;&lt;P&gt;I need to get a result with a combined and delimited values from existing table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use in a variable a content such as &lt;SPAN&gt;Field1,Field2,Field3 it will not give me&amp;nbsp; 'Field1', 'Field2', 'Field3' as result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;csv-output is a good idea. I will think about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 13:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1543040#M39169</guid>
      <dc:creator>maxsheva</dc:creator>
      <dc:date>2019-02-12T13:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1543057#M39171</link>
      <description>&lt;P&gt;My suggestion was related to your first load-statement which looked like creating a field-list for loading data within a load-statement and contained therefore no wrapping single-quotes. But you could just add them. Also the more essential part of my suggestion was to create a complete string within the variable and not an expression.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 13:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1543057#M39171</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-02-12T13:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation</title>
      <link>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1543067#M39172</link>
      <description>&lt;P&gt;Do you need to pass all the values at the same time in one single INSERT statement?&lt;/P&gt;&lt;P&gt;If you don't you can call an insert command for each one of the data rows&amp;nbsp;that you have, so your code will be something like:&lt;/P&gt;&lt;PRE&gt;[DataSource]:
LOAD ........(something);

For vIndex = 0 To NoOfRows('DataSource') - 1

//Build your query inside here

LET vField1 = Peek('Field1',vIndex,'DataSource');
LET vField2 = Peek('Field2',vIndex,'DataSource');
LET vFieldn = Peek('Fieldn',vIndex,'DataSource');

SQL INSERT INTO YourTable
(
[Field1],
[Field2],
[Fieldn]
)
VALUES
(
'$(vField1)',
'$(vField2)',
'$(vFieldn)'
)
;

Next vIndex&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Feb 2019 14:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-limitation/m-p/1543067#M39172</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2019-02-12T14:01:17Z</dc:date>
    </item>
  </channel>
</rss>

