Microsoft Knowledge Base Email Alertz

Error message when you click New to create a new item in a list or when you click an existing item in SharePoint Server 2007: Invalid page URL or An unexpected error has occurred

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 935504 - Last Review: June 5, 2007 - Revision: 2.2

Error message when you click "New" to create a new item in a list or when you click an existing item in SharePoint Server 2007 or in Windows SharePoint Services 3.0: "Invalid page URL" or "An unexpected error has occurred"

SYMPTOMS

Consider the following scenario. You use Microsoft Office SharePoint Designer 2007 to customize the NewForm.aspx page of a list in a Microsoft Office SharePoint Server 2007 site or in a Microsoft Windows SharePoint Services 3.0 site. Then, you connect to the list by using a Web browser. In this scenario, you experience the following symptoms:
  • If you click New to create a new item in the list, you receive the following message:
    Invalid page URL:
  • If you click an existing item in the list, you receive the following error message:
    An unexpected error has occurred
Additionally, you might view the properties of the list in SharePoint Designer 2007 and then specify the NewForm.aspx page in the New item form box. When you do this, the NewForm.aspx page appears to be saved as the new item form when you click OK. However, the next time that you view the properties of the list, the New item form box is empty.

CAUSE

This issue occurs if you deleted the List Form Web Part from the NewForm.aspx page.

RESOLUTION

To resolve this issue, delete the list, and then re-create it. Then, customize the NewForm.aspx page. When you customize the NewForm.aspx page, make sure that you do not delete the List Form Web Part.

MORE INFORMATION

If you want to customize the controls that appear on the NewForm.aspx page, and if you do not want to show the default List Form Web Part, you can hide the List Form Web Part. To do this, follow these steps:
  1. Start SharePoint Designer 2007, and then open the NewForm.aspx page for the list.
  2. Right-click the List Form Web Part, and then click Web Part Properties.
  3. Expand Layout, click to select the Hidden check box, and then click OK.
For more information about how to troubleshoot similar issues, visit the following Microsoft Web site:
http://blogs.msdn.com/dszabo/archive/2007/02/20/custom-list-newform-aspx-ruined-in-wss-3-0.aspx (http://blogs.msdn.com/dszabo/archive/2007/02/20/custom-list-newform-aspx-ruined-in-wss-3-0.aspx)

APPLIES TO
  • Microsoft Office SharePoint Server 2007
  • Microsoft Windows SharePoint Services 3.0
  • Microsoft Office SharePoint Designer 2007
  • Microsoft Office SharePoint Online
Keywords: 
kbprb kbexpertiseinter kbtshoot kberrmsg KB935504
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Mike Atkins - atkins NOSPAM-AT-NOSPAM itrend.co.za Report As Irrelevant  
Written: 9/22/2008 1:03 AM
No blooming use, this! I have workflows, forms and stuff all customized from this List. There must be another way - even if one has to dig into xml files somewhere.