Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Filter list block loops infinitely over a list

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Marius_Nuca
Support
Support

Filter list block loops infinitely over a list

Last Update:

Jan 21, 2022 7:13:55 AM

Updated By:

Marius_Nuca

Created date:

Jan 21, 2022 7:13:55 AM

In this article we will go over a known issue that affects the filter list block and how to quickly fix the issue so you won't be blocked by it.

There are some cases where a user would filter the results of a list block using the Filter List block and then use one of the filter list items specifically inside that loop like { $.filterList[0].id } for some purpose. This would cause the index to be reset inside the Filter List loop and cause the automation to run infinitely.

As you can see in the below example this is how the issue is duplicated:

Marius_Nuca_0-1642766370094.png

 

Marius_Nuca_1-1642766430694.png Marius_Nuca_2-1642766482155.png

 

In order to workaround the issue all a user has to do is instead of using the Filter List item specifically inside the loop, they can assign the needed value to a variable before the loop and use the variable inside the block  in question like in the next example.

Marius_Nuca_3-1642767111691.png

Marius_Nuca_4-1642767155329.png

 

Marius_Nuca_5-1642767184670.png

 

 

The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.

 

Tags (1)
Labels (2)
Contributors
Version history
Last update:
‎2022-01-21 07:13 AM
Updated by: