We are familiar with SharePoint data view web parts. Most of us may have experienced issues while we migrate a data view from one server to another server as Site template or back/restore. In this article I am explaining how to resolve the "Unable to display this Web Part" error when migrating a data view in SharePoint.ErrorThe following error message may be the common issue you may get:"Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer. If the problem persists, contact your Web server administrator"SharePoint Designer error: "The server returned a non-specific error when trying to get data from the data source. Check the format and content of your query and try again. If the problem persists, contact the server administrator."Cause:This is a known issue, actually. The issue is caused by the incorrect ListName, which is a GUID id for the list's instance on a given site instance. When backup/restore or template movement this GUID may change therefore the broken data views are pointing to the incorrect data source. if you create a DVWP in SharePoint designer 2007 it will append the GUID of the LIST in the code and would link to DVWP; if you try to create a new List it will always create a new GUID which will never match up with the DVWP and it breaks.Solution 1Open the page having problem in SharePoint Designer 2007 Search for "ListID" and replace with "ListName" and change the "DefaultValue=" to your List name. This would fix it.Solutions 2
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: