<?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: Issue with String to List Conversion in Qlik Cloud Automation in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Issue-with-String-to-List-Conversion-in-Qlik-Cloud-Automation/m-p/2511074#M5664</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Create a temporary variable of type &lt;STRONG&gt;String&lt;/STRONG&gt; (e.g., ItemsTempList).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Perform the following operation to set its value:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Operation"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Set value of { ItemsTempList }"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"value"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"{explode: {$.ItemsSTR}, ',', 100}"&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;This will convert your string into a list-like string.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Next, use a &lt;STRONG&gt;Loop&lt;/STRONG&gt; block to iterate through ItemsTempList:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Inside the loop, add each element to the final list ItemsList using the &lt;STRONG&gt;"Add item"&lt;/STRONG&gt; operation:&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Operation"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Add item to { ItemsList }"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"value"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"{ $.loop.item }"&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 22 Mar 2025 15:38:19 GMT</pubDate>
    <dc:creator>korsikov</dc:creator>
    <dc:date>2025-03-22T15:38:19Z</dc:date>
    <item>
      <title>Issue with String to List Conversion in Qlik Cloud Automation</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Issue-with-String-to-List-Conversion-in-Qlik-Cloud-Automation/m-p/2511003#M5663</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;I'm working on an automation in Qlik Cloud and encountered a problem when converting a string to a list. Here’s the situation:&lt;/P&gt;&lt;P&gt;Problem Description:&lt;/P&gt;&lt;P&gt;I have a string that looks like this:&amp;nbsp;Item1, Item2, Item3&lt;/P&gt;&lt;P&gt;I assign it to a variable using the following operation:&amp;nbsp;{ "Operation": "Set ItemsSTR equal to Item1, Item2, Item3" }&lt;/P&gt;&lt;P&gt;Then, I try to convert this string to a list:&amp;nbsp;{ "Operation": "Add &amp;lt;list&amp;gt; to ItemsList" }&lt;/P&gt;&lt;P&gt;However, the resulting list structure looks like this:&lt;/P&gt;&lt;P&gt;[ [ "Item1", "Item2", "Item3" ] ]&lt;/P&gt;&lt;P&gt;When I use a &lt;STRONG&gt;Loop&lt;/STRONG&gt; block to iterate over this list, it only processes the first element (Item1).&lt;/P&gt;&lt;P&gt;Alternative Approach:&lt;/P&gt;&lt;P&gt;If I add each item individually, like this:&lt;/P&gt;&lt;P&gt;{ "Operation": "Add Item1 to ItemsList" }&lt;/P&gt;&lt;P&gt;{ "Operation": "Add Item2 to ItemsList" }&lt;/P&gt;&lt;P&gt;{ "Operation": "Add Item3 to ItemsList" }&lt;/P&gt;&lt;P&gt;The resulting list is correctly formatted as:&lt;/P&gt;&lt;P&gt;[ "Item1", "Item2", "Item3" ]&lt;/P&gt;&lt;P&gt;In this case, the &lt;STRONG&gt;Loop&lt;/STRONG&gt; block iterates over each item correctly.&lt;/P&gt;&lt;P&gt;Output from Automation:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;String "Item1, Item2, Item3" convert to List and run in LOOP&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;Item ListArray&lt;BR /&gt;Item String Item1, Item2, Item3&lt;BR /&gt;++++++++++++++++&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;Output in Loop&amp;gt;Item : Array&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Add items "Item1, Item2, Item3" to List and run in LOOP&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;Item List Array&lt;BR /&gt;++++++++++&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;Output in Loop&amp;gt;Item : Item1&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;Output in Loop&amp;gt;Item : Item2&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;Output in Loop&amp;gt;Item : Item3&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Why does the &lt;STRONG&gt;List&lt;/STRONG&gt; operation convert the string differently when using "Add &amp;lt;list&amp;gt; to ItemsList"? How can I make the conversion work correctly without manually adding each item?&lt;/P&gt;&lt;P&gt;I would appreciate any advice or suggestions!&lt;BR /&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;Example automation in attach&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 13:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Issue-with-String-to-List-Conversion-in-Qlik-Cloud-Automation/m-p/2511003#M5663</guid>
      <dc:creator>korsikov</dc:creator>
      <dc:date>2025-03-21T13:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with String to List Conversion in Qlik Cloud Automation</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Issue-with-String-to-List-Conversion-in-Qlik-Cloud-Automation/m-p/2511074#M5664</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Create a temporary variable of type &lt;STRONG&gt;String&lt;/STRONG&gt; (e.g., ItemsTempList).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Perform the following operation to set its value:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Operation"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Set value of { ItemsTempList }"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"value"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"{explode: {$.ItemsSTR}, ',', 100}"&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;This will convert your string into a list-like string.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Next, use a &lt;STRONG&gt;Loop&lt;/STRONG&gt; block to iterate through ItemsTempList:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Inside the loop, add each element to the final list ItemsList using the &lt;STRONG&gt;"Add item"&lt;/STRONG&gt; operation:&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Operation"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Add item to { ItemsList }"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"value"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"{ $.loop.item }"&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2025 15:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Issue-with-String-to-List-Conversion-in-Qlik-Cloud-Automation/m-p/2511074#M5664</guid>
      <dc:creator>korsikov</dc:creator>
      <dc:date>2025-03-22T15:38:19Z</dc:date>
    </item>
  </channel>
</rss>

