Knowledge Drop

Variable not found "parameter"

  • 6 April 2021
  • 0 replies
  • 130 views

Last Tested: Sep 6, 2019

 

Problem

This error usually indicates that the {% parameter parameter name %} liquid variable is being used somewhere where it's not accepted.

Solution

Since the _parameter_value variable is accepted in more places than parameter parameter name (notably the html, link, and sql_always_where parameters) it's usually safe to say you can use this instead.

this

sql_always_where: {% if parameter_name._parameter_value == 1 %} ...

 

instead of this

sql_always_where: {% if parameter parameter_name == 1 %} ...

 

 

 

This content is subject to limited support.                


0 replies

Be the first to reply!

Reply