Views:

Applies to Product – Power Pages


What’s happening?
Customers are experiencing issues when trying to access Dataverse tables using Liquid code in Power Pages, resulting in empty objects or inability to read table values via the Web API.


Reason:
The underlying cause of this is identified as another function being assigned to the onload event, which overrides the custom function from window.onload, preventing it from being called. Additionally, issues may arise from incorrect permissions or configurations related to the Web API.


Resolution:
For Liquid Code Access:

  1. Ensure that the appropriate page and table permissions are set correctly.
  2. Verify the logic of the Liquid code being used. It is recommended to follow sample code provided in documentation to ensure proper functionality
For Web API Access:
  1. Confirm that the required site settings are enabled for Web API.
  2. If encountering a "403 Forbidden" error, check that the necessary permissions are granted on the related entities in the Web API.
  3. If the issue persists, consider adding the site setting Webapi/DisableWebApiParser and set it to true as a temporary measure.
  4. If the function getConfigData() is not being called, ensure that it is correctly assigned to the window.onload event and not overridden by another function.