web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Filter operation "like...
Power Pages
Unanswered

Filter operation "like" throws Liquid error when using value="%value%"

(0) ShareShare
ReportReport
Posted on by
Hi All,
 
I'm trying to create a custom component to display data from a virtual table. Following a tutorial I found, I created a filter in FetchXML to filter data that contains a substring in a string column. However, I'm seeing "Liquid error: Exception has been thrown by the target of an invocation." This is the FetchXML I'm trying to run:
 
{% fetchxml postsQuery %}
      <fetch version="1.0" mapping="logical" distinct="true">
        <entity name="cr6a3_projectlist">
          <attribute name="cr6a3_projectx0020name"></attribute>
		  ...
          <attribute name="cr6a3_modified"></attribute>
          <order attribute="cr6a3_projectx0020name" descending="false" />
          <filter type="and">
            <condition attribute="cr6a3_isactive" operator="eq" value="1" />
            <condition attribute="cr6a3_location" operator="like" value="%value%" ></condition>
          </filter>
        </entity>
      </fetch>
{% endfetchxml %}
 
I have tested this FetchXML without the 'location' condition, so I can confirm that the attributes and 'isactive' condition are working fine. Interestingly, when I changed value="%value%" to value="value%", it returned some results, though I need both wildcards due to the nature of my data. Not sure if this is relevant, I've read here that it is not recommended to use "%value", and I received the same error when I tested it out myself.
 
I'm new to Liquid and Power Pages, so I'd appreciate any help or workaround for this. Thanks in advance.
Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#2
Lucas001 Profile Picture

Lucas001 25 Super User 2025 Season 2

#3
Jerald Felix Profile Picture

Jerald Felix 12

Last 30 days Overall leaderboard