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:
- 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.
- 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:
- Remove the Display Date from the view to eliminate the error.
- If the error persists when updating other fields, further investigation into the entity and attribute metadata may be required.
- 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.
- 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>
