SharePoint Online Custom Form Breaks After Editing with SharePoint Designer

Chandrakanth Uttara 5 Reputation points
2024-11-25T01:35:25.53+00:00

I am encountering an issue with SharePoint Online when editing a custom list/library form using SharePoint Designer. Here are the steps to reproduce the issue:

  1. Open an editform.aspx file in SharePoint Designer 2013 in Advanced Mode.
  2. Without making any manual changes to the file, simply save it.
  3. After saving, the form breaks and displays the following error: Unknown server tag 'WebPartPages:DataFormWebPart'. Correlation ID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

This issue occurs consistently across multiple lists/libraries, even when no actual changes are made to the form's code. It appears that SharePoint Designer modifies the markup upon saving, which is causing the problem.

Details:

  • Environment: SharePoint Online (Office 365).
  • Tools Used: SharePoint Designer 2013.
  • Impact: The custom forms for my SharePoint lists/libraries are unusable after saving them.
  • Actions Taken:
    • Attempted to revert to previous versions (partially successful).
       - Verified that SharePoint Designer alters the code without user intervention.
      

Please investigate and provide guidance on how to resolve this issue or confirm if it is a known bug in SharePoint Online/SharePoint Designer.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,969 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Emily Du-MSFT 48,256 Reputation points Microsoft Vendor
    2024-11-25T10:17:42.7933333+00:00

    I did a test in my SharePoint Designer 2013, saving edit form works well in it.

    1

    2

    Whether your account with MFA enabled?

    Try use another account to save edit form to SharePoint Designer 2013, check whether the issue exists.

    You could follow below tips to troubleshoot the issue.

    1.Clear cache. In the local computer, remove all files found in each of the following folders. Then open SharePoint Designer 2013 and enter the account again to see if it works.

    • %APPDATA%\Microsoft\Web Server Extensions\Cache
    • %APPDATA%\Microsoft\SharePoint Designer\ProxyAssemblyCache
    • %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache

    2.Verify that SharePoint Designer 2013 is updated with SharePoint Designer Service Pack 1 and the August 2, 2016, Update for SharePoint Designer 2013.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Chandrakanth Uttara 5 Reputation points
    2024-11-27T07:23:28.9966667+00:00

    Hi Emily , Thanks for the response . Yes we use to add customized code before many times and save and it used to work properly. But we even not done any code changes but updated Revision no for File References and save, so not working from Nov 22, 2024 onwards .

    We are sure that custom script feature is enabled in the site collection as well for the persons who are saving the custom form from SP Designer.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.