Views:

Applies to Product - Power Pages


What’s happening?
Customers are encountering errors when updating or previewing web pages, specifically related to invalid casts and missing references in the design studio.


Reason:

  1. The error "System.InvalidCastException: Specified cast is not valid" occurs when the Display Date is included in the view. This error is also triggered when updating fields on a webpage, even if the Display Date is not changed.
  2. The error "include: reference not found: page copy" arises from modifications made to the default web template, which has led to a misconfiguration in the design studio.

 

Resolution:
For the "System.InvalidCastException" error:
  1. Remove the Display Date from the view to eliminate the error.
  2. If the error persists when updating other fields, further investigation into the entity and attribute metadata may be required.
For the "include: reference not found: page copy" error:
  1. Ensure that the default web template is not modified. If modifications have been made, revert to the original template or correct the liquid code to match the expected format.
  2. The correct format for the default studio template should be: html <!-- Default studio template. Please do not modify --> <div id="mainContent" class="wrapper-body" role="main"> <div class="page-copy"> {% editable page 'adx_copy', liquid: true %} </div> </div>