使用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

Sharepoint 问题集锦 - external list (外部列表)的更多相关文章

  1. Sharepoint 问题集锦 - 外部列表(external list) - 读取当前用户上下文或用户名作为筛选参数

    在创建外部列表过程中,往往需要添加筛选参数,而较多开发用户,会关心如何在外部列表中,只显示当前用户相关的行.本例子中,我们以任务数据表来做例子,看看如何实现这个需求. 1)数据表tbl_task: t ...

  2. 如何:在 SharePoint 中创建外部列表

    在创建外部内容类型后创建外部列表是一项非常简单的任务,有如下4种方式进行: 可使用 Microsoft SharePoint Designer 2010 浏览器来完成 VS2010的列表实例 采用代码 ...

  3. sharepoint 2013创建外部内容类型并创建外部列表

    步骤: 1.如何:基于 SQL Server 表创建外部内容类型 How to: Create an External Content Type Based on a SQL Server Table ...

  4. 【解决】SharePoint外部列表保存的日期/时间值不正确

    [问题描述]: 在SharePoint中创建一个外部列表后,通过工作流或直接通过外部列表中的新增向外部列表添加数据项.通过外部列表或数据库查看添加的数据项时发现日期类型字段的值都不正确,像是差了若干个 ...

  5. SharePoint 2010 BCS - 简单实例(二)外部列表创建

    博客地址 http://blog.csdn.net/foxdave 接上篇 由于图片稍多篇幅过长影响阅读,所以分段来写. 添加完数据源之后,我们需要为我们要放到SharePoint上的数据表定义操作, ...

  6. 第十一篇:Spark SQL 源码分析之 External DataSource外部数据源

    上周Spark1.2刚发布,周末在家没事,把这个特性给了解一下,顺便分析下源码,看一看这个特性是如何设计及实现的. /** Spark SQL源码分析系列文章*/ (Ps: External Data ...

  7. Spark SQL之External DataSource外部数据源(二)源代码分析

    上周Spark1.2刚公布,周末在家没事,把这个特性给了解一下,顺便分析下源代码,看一看这个特性是怎样设计及实现的. /** Spark SQL源代码分析系列文章*/ (Ps: External Da ...

  8. SharePoint 2013 新功能探索 之 列表等级设置

    一.列表等级及赞功能 ,在SharePoint 2010 中,对列表的等级设定,需要一定时间才能看到,现在可以实时同步,评分人数也能显示出来 等级分为两类 赞和星级评定   

  9. SharePoint 2010 用xsl文件定制列表样式

    有时候我们不希望列表用默认的方式显示,要我们自定义的方式定制.其中有一种方式是使用xsl文件. 在AllItems.aspx页面中,列表是以webpart的形式显示在页面上的,webpart类型是Xs ...

随机推荐

  1. codeigniter nginx rewrite规则配置【转】

    转自:http://www.nginx.cn/1134.html nginx如何配置才能支持codeigniter ? 1. codeigniter的url美化去掉index.php   1 2 3 ...

  2. strcmp函数和strcpy函数

    (一)strcmp函数 strcmp函数是比較两个字符串的大小,返回比較的结果.一般形式是: i=strcmp(字符串,字符串); 当中,字符串1.字符串2均可为字符串常量或变量:i   是用于存放比 ...

  3. 【Java基础】Jar包结构结构分析和操作具体解释

    作者:郭嘉 邮箱:allenwells@163.com 博客:http://blog.csdn.net/allenwells github:https://github.com/AllenWell 一 ...

  4. jvisualvm图解

    http://blog.csdn.net/a19881029/article/details/8432368 jvisualvm能干什么:监控内存泄露,跟踪垃圾回收,执行时内存.cpu分析,线程分析. ...

  5. 浅析@Deprecated

    如果有一个方法你觉得不合适,想要删除,但是别人已经引用了很多次,删除了会对他人的工作产生影响,那该怎么办? 加入@Deprecated注解即可,看代码: @Test public void test1 ...

  6. gson使用详解

    昨天读一篇文章,看到gson这个词,一开始还以为作者写错了,问了度娘之后才发现是我才疏学浅,于是大概了解了一下gson用法,总体来说还是很简单的. Gson.jar下载 JavaBean转json / ...

  7. JavaScript 应用开发 #3:应用的主视图

    目前为止,我们已经在应用里面,创建了表示数据的模型,表示数据列表的集合,组织模型显示的视图与模板.下面, 我们要想办法,去把模型的列表显示在应用的界面上.这样我们就可以再去为应用创建一个主要的视图,用 ...

  8. 复旦大学2016--2017学年第一学期高等代数I期末考试情况分析

    一.期末考试成绩班级前十名 宁盛臻(100).朱民哲(92).徐钰伦(86).范凌虎(85).沈伊南(84).何陶然(84).丁知愚(83).焦思邈(83).董瀚泽(82).钱信(81) 二.总成绩计 ...

  9. python sklearn.linear_model.LinearRegression.score

    score(self, X, y, sample_weight=None) 作用:返回该次预测的系数R2     其中R2 =(1-u/v).u=((y_true - y_pred) ** 2).su ...

  10. 3、bootstrap3.0 栅格偏移 布局中的一个特产

    理解了栅格化,那么栅格偏移也相对容易理解了.v3的偏移分别有以下几种: offset:左外边距(margin-left): pull:右位移(right): push:左位移(left). 其中off ...