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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Receiving Liquid error...
Power Pages
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:
I have the same question (0)
  • OOlashyn Profile Picture
    3,498 Most Valuable Professional on at

    Hi @satram,

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

  • AkshayShah Profile Picture
    59 on at

    Hello Satram,

    All Entity have sufficient table permissions in power pages?

     

    Thanks,

    Akshay Shah

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 38 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 35

#3
Fubar Profile Picture

Fubar 23 Super User 2026 Season 1

Last 30 days Overall leaderboard