Sharepoint 问题集锦 - external list (外部列表)

使用Sharepoint开发过程中遇到的问题总结。

错误1:

Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.

解释:

引用自MSDN的牛人回复:

Here is what`s happening BCS has throttling limit when filling external lists, if the SQL table has more rows than the default throttle of the BCS you will receive the following Error 

具体应该是由于外部列表的行数超过了sharepoint默认设置的最大行数阈值,从而导致以上的错误出现。

解决方法也就是按需扩大阈值的大小。亲自试过下面的命令,没问题。

解决方法:

PS Y:\> $proxy=Get-SPServiceApplicationProxy | where {$_ -match "Business data Connectivity Service"}

PS Y:\> Get-SPBusinessDataCatalogThrottleConfig -Scope database -ThrottleType items -ServiceApplicationProxy $proxy

Scope        : Database
ThrottleType : Items
Enforced : True
Default : 2000
Max : 1000000 PS Y:\> $defaultThrottleConfig=Get-SPBusinessDataCatalogThrottleConfig -Scope database -throttleType items -ServiceApplicationProxy $proxy
PS Y:\> $defaultThrottleConfig
Scope : Database
ThrottleType : Items
Enforced : True
Default : 2000
Max : 1000000 PS Y:\> Set-SPBusinessDataCatalogThrottleConfig -Default 40000 -Identity $defaultThrottleConfig -Maximum 1000000
PS Y:\> $customThrottleConfig=Get-SPBusinessDataCatalogThrottleConfig -Scope database -ThrottleType items -ServiceApplicationProxy $proxy
PS Y:\> $customThrottleConfig
Scope : Database
ThrottleType : Items
Enforced : True
Default : 40000
Max : 1000000
PS Y:\>

参考

http://social.msdn.microsoft.com/Forums/en-US/8a861878-180f-4126-b982-574ea514676c/bcs-external-list-errorunable-to-display-this-webpart?forum=sharepointgeneralprevious

错误2:

Cannot Connect to the LobSystems (External System)

解释:

这个问题就相对复杂,因为有多种原因导致出现这个错误提示,最直接的分析方法就是查看Windows Event log(事件查看器)。因为出现这个错误的时候,BCS都会在事件查看器中记录一行。

解决方法:

控制面板 -> 管理工具 -> 查看 事件查看器 -> windows 日志 -> 应用程序。

我曾经遇到的问题就是:

Could not open connection using 'data source=MachineName\Instance;initial catalog=Database;integrated security=SSPI;pooling=True;persist security info=false' in App Domain '/LM/W3SVC/80435914/ROOT-1-130286076527998339'. The full exception text is: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

原因就是我的SQL server没有开启允许远程连接。配置SQL server并重启后,问题就解决了。

可以参考此文:

http://blog.rafelo.com/2010/02/13/bcs-external-list-error-%E2%80%93-cannot-connect-to-the-lobsystems-external-system/

错误3:

Access Denied by Business Data Connectivity

解释:

这个问题是由于BCS没有对外部内容类型授权给当前用户所致。

解决方法:

1. 打开SharePoint 2010 Central Administration

2. 打开Application Management -> Manage service applications

3. 选择Business Data Connectivity Service

4. 点击Set Object Permissions -> 添加用户,勾选授权功能

参考:

http://zimmergren.net/technical/access-denied-by-business-data-connectivity-solution

上一篇:HashMap的两种遍历方式


下一篇:三个loading小动画实例