Hi everyone,
I am experiencing this issue when running this liquid code (fetchXML) in one of my portal pages.
The error message that I am getting is "Liquid error: Exception has been thrown by the target of an invocation.". This error message only shows when I am calling my fetchXML with one of my virtual table entities.
I also have my table permission set for the entities.
I have checked the size of my entities '{{ PaymentGatewayInformation.results.entities.size }}' and the return is 0.
Here's my code:
{% fetchxml PaymentGatewayInformation %}
{% assign custNo = request.params['custNo'] %}
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="dyn365bc_bssigatewayprocess_bssi_portal_v2_0">
<attribute name="dyn365bc_customerno" />
<attribute name="dyn365bc_paymentgateway" />
<attribute name="dyn365bc_paymentgatewayid" />
<filter type="and">
<condition attribute="dyn365bc_customerno" operator="eq" value="{{custNo}}" />
<condition attribute="dyn365bc_paymentgateway" operator="eq" value="0" />
</filter>
</entity>
</fetch>
{% endfetchxml %}
{% if PaymentGatewayInformation.results.entities.size > 0 %}
{% assign resultJson = PaymentGatewayInformation.results.entities %}
{% endif %}
{% for res in resultJson %}
{% assign customerNo = res.dyn365bc_customerno %}
{% assign paymentGatewayId = res.dyn365bc_paymentgatewayid %}
{% endfor %}
I have chekced the
Any help would be highly appreciated!
Thanks,
Aman