Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Unanswered

Receiving Liquid error: Exception has been thrown by the target of an invocation

(0) ShareShare
ReportReport
Posted on by

I am receiving liquid error on one of our web templates. Any help is appreciated.

 

Here is the code:

{% fetchxml workorderlist %}
<fetch version="1.0" mapping="logical" output-format="xml-platform" distinct="true" returntotalrecordcount="true">
<entity name="msdyn_workorder">
<attribute name="msdyn_name" />
<attribute name="createdon" />
<attribute name="msdyn_systemstatus" />
<attribute name="msdyn_reportedbycontact" />
<attribute name="msdyn_workorderid" />
<filter type="and">
<condition attribute="msdyn_workordertype" operator="eq" value="64904c98-e626-ec11-b6e5-002248262ebd"
uiname="Corrective" uitype="msdyn_workordertype" />
<condition attribute="msdyn_systemstatus" operator="in" value="">
<value>690970000</value>
<value>690970001</value>
<value>690970002</value>
</condition>
<filter type="or">
<condition entityname="contactrelatedaccount" attribute="contactid" operator="eq" value="{{user.id}}" />
<condition entityname="contactacct" attribute="contactid" operator="eq" value="{{user.id}}" />
</filter>
</filter>
<order attribute="createdon" descending="true" />
<link-entity name="account" from="accountid" to="msdyn_serviceaccount" alias="svcacct">
<attribute name="name" />
<link-entity name="mxl_account_contact_medxcel" from="accountid" to="accountid" link-type="outer"
alias="acct" intersect="true">
<link-entity name="contact" from="contactid" to="contactid" link-type="outer"
alias="contactrelatedaccount" intersect="true" />
</link-entity>
</link-entity>
<link-entity name="account" from="accountid" to="msdyn_serviceaccount">
<link-entity name="contact" from="parentcustomerid" to="accountid" link-type="outer" alias="contactacct" />
</link-entity>
<link-entity name="msdyn_incidenttype" from="msdyn_incidenttypeid" to="msdyn_primaryincidenttype"
alias="incident">
<attribute name="msdyn_name" />
</link-entity>
<link-entity name="msdyn_functionallocation" from="msdyn_functionallocationid" to="msdyn_functionallocation"
alias="loc">
<attribute name="msdyn_name" />
</link-entity>
<link-entity name="contact" from="contactid" to="msdyn_reportedbycontact" alias="reportedby">
<attribute name="fullname" />
</link-entity>
</entity>
</fetch>
{% endfetchxml %}

 

Categories:
  • AkshayShah Profile Picture
    59 on at
    Re: Receiving Liquid error: Exception has been thrown by the target of an invocation

    Hello Satram,

    All Entity have sufficient table permissions in power pages?

     

    Thanks,

    Akshay Shah

  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at
    Re: Receiving Liquid error: Exception has been thrown by the target of an invocation

    Hi @satram,

    Can you run your fetchxml in XrmToolBox in either FetchxmlBuilder or FetchxmlTester to validate your fetchxml query?

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43