January 20, 2012

SharePoint: List does not exist after adding Data Form Web Part to a page

Problem:
After checking in your Page Layout containing a Data Form Web Part and changing the page layout of the publishing page you get error:

List does not exist.
The page you selected contains a list that does not exist.  It may have been deleted by another user.


Your DFWP uses SharePoint List that can be located on another site, but this issue can occur also when the list is on the same site.

Solution:
SharePoint Designer has been helping you during the checkin process and has added three attributes to the Data Form Web Part: ListId, ListName and ListUrl. Remove those and you're good to go.

<WebPartPages:DataFormWebPart runat="server" Description=""  Title="Contacts" ... ListId="SOMEGUID" ListName="{SOMEGUID}" ListUrl=""...>

Note You need to keep removing those every now and then as they keep reappearing.

4 comments:

  1. Thank-you for your post. I do not use SP Designer much and this issue was driving me nuts!

    ReplyDelete
  2. Hello, nice post! My name is Douglas and i'm from Brazil.

    I have a problem like of the post, but in SharePoint 2013.. i followed yours tips but i didnt do this work =(.

    I'm trying to insert a cross-sub-site web part (XSLT List view or DVWP) from Top site but dont work when i inherit the page layout in a sub-site page.

    Do you know what is the problem?

    Thank you very much!

    ReplyDelete
  3. Thank you Jussi. You rock!

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete