惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
D
Docker
Blog — PlanetScale
Blog — PlanetScale
罗磊的独立博客
美团技术团队
V
V2EX
Last Week in AI
Last Week in AI
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Microsoft Security Blog
Microsoft Security Blog
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
B
Blog RSS Feed
博客园_首页
B
Blog
博客园 - 叶小钗
I
InfoQ
WordPress大学
WordPress大学
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
The GitHub Blog
The GitHub Blog
The Register - Security
The Register - Security
MyScale Blog
MyScale Blog
云风的 BLOG
云风的 BLOG
博客园 - 司徒正美
Latest news
Latest news
W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
C
CXSECURITY Database RSS Feed - CXSecurity.com
Recent Commits to openclaw:main
Recent Commits to openclaw:main
N
News and Events Feed by Topic
S
Secure Thoughts
The Hacker News
The Hacker News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News

博客园 - 嘻哈

招聘asp.net 今天春分 Configure Search On MOSS 2007 (Microsoft Office SharePoint Server) WSS (Windows SharePoint Services) "该搜索请求无法连接到搜索服务" 错误解决 MOSS的备份与还原 How to change service accounts and service account passwords in SharePoint Server 2007 and in Windows SharePoint Services 3.0 Web 设计工具箱:130 个 Web 设计工具 解决MOSS搜索问题 需求从抱怨开始 ie8 sharepoint 2007 模板安装方法 有杭州的.net高手吗?——续 说点题外话,关于求职简历 有杭州的.Net高手嘛? [转贴]How to work with stored procedures by using script in an Office InfoPath 2003 form TechNet Virtual Lab: Microsoft Office SharePoint Portal Server 2003 How to create a SharePoint List using Excel 2003(转贴) FreeTextBox编辑器的问题 升级到FreeTextBox 3.0
How to fix: Recieve error "Unable to display this Web Part" on Data Views after restoring site from backup - 嘻哈
嘻哈 · 2008-11-18 · via 博客园 - 嘻哈

Symptoms:

After restoring a SharePoint site using site template .STP files, .CMP files, or the stsadm commands import / export all data views / data forms show error messages.

Web browser error: "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. We have done some work for O14 which will address this problem. The issue is caused by the incorrect ListName, which is a GUID id for the list's instance on a given site instance. We don't do GUID fix-up, and therefore the broken data views are pointing to the incorrect data source (from the old site).

Workaround:

  1. Start SharePoint Designer, and open page containing broken data view(s).
  2. In SharePoint Designer's menu, click Task Panes -> Data Source Library.
  3. From the Data Source Library task pane, drag in a new instance of the broken data view's data source (example: Announcements list) onto the page. This will create a new and working data view.
  4. Highlight the newly inserted data view, and go into split view (half code, half design). From the code portion highlighted, look for the ListName property. Note: it should be on the first line of the highlighted code, but you may have to scroll to the right in order to see it.
  5. Once you find the ListName property, copy everything in between { ... } (without the braces). Store that value, as we will need it later (example: paste into Notepad).
  6. Remove the newly inserted data view.
  7. Highlight the broken data view, and go into split view (half code, half design). From the code portion highlighted, look for the ListName Property. Note: it should be on the first line of the highlighted code, but you may have to scroll to the right in order to see it.
  8. Once you find the ListName property, copy everything in between { ... } (without the braces).
  9. In SharePoint Designer's menu, click Edit -> Replace. In the "Find What" portion, paste in the broken data views ListName value. In the "Replace With" portion, paste in the previous working data view's ListName value (example: the one stored in Notepad). Click Replace All, and let the process finish. Click close.
  10. Perform steps 3 - 9 for each respective data view.

I've seen several support instances with questions and concerns on this problem. Hopefully, this helps you to understand the cause of the problem, and how to fix it.

posted @ 2008-11-18 22:47  嘻哈  阅读(554)  评论()    收藏  举报