Knowledge Drop

Variable not found "parameter"

  • 6 April 2021
  • 0 replies
  • 672 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 %} ...

 

Additional resources


Another potential cause of the error is the incorrect use or reference of templated filters in derived tables. See the Templated Filters and Derived Tables Community Post for more troubleshooting tips and information.

 

This content is subject to limited support.                


0 replies

Be the first to reply!

Reply