Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 使用SSI连接到SharePoint时,远程服务器返回了意外响应417_Sql Server_Sharepoint_Ssis_Sharepoint 2010 - Fatal编程技术网

Sql server 使用SSI连接到SharePoint时,远程服务器返回了意外响应417

Sql server 使用SSI连接到SharePoint时,远程服务器返回了意外响应417,sql-server,sharepoint,ssis,sharepoint-2010,Sql Server,Sharepoint,Ssis,Sharepoint 2010,我正在尝试使用SSIS 2012连接到SharePoint列表(SP 2010,内部部署)。我下载了SharePoint Adapter for SQL Server 2012,并正在学习MSDN教程“在SQL Server Integration Services中提取和加载SharePoint数据” 就我个人而言,我似乎无法建立连接。我已经使用连接管理器添加了一个SP连接,以及一个类型为“SharePoint列表源”的相应数据流任务。当我测试我的连接时,我收到一条417错误消息(如下)。我花

我正在尝试使用SSIS 2012连接到SharePoint列表(SP 2010,内部部署)。我下载了SharePoint Adapter for SQL Server 2012,并正在学习MSDN教程“在SQL Server Integration Services中提取和加载SharePoint数据”

就我个人而言,我似乎无法建立连接。我已经使用连接管理器添加了一个SP连接,以及一个类型为“SharePoint列表源”的相应数据流任务。当我测试我的连接时,我收到一条417错误消息(如下)。我花了一整天的时间在网上寻找解决方案——各种各样的错误开始,但仍然没有运气

其他人建议我通过将
expect100continue=true
属性设置为false来抑制该属性,但由于我正在使用SSIS,我不确定在何处进行此配置更改-请帮助

Error at Data Flow Task [SharePoint List Source [2]]: System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (417) Expectation Failed. ---> System.Net.WebException: The remote server returned an error: (417) Expectation Failed.
   at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
---内部异常堆栈跟踪的结束---

在[0]处重试异常:

   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoap.GetListAndView(GetListAndViewRequest request)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoapClient.ListsService_ListsSoap_GetListAndView(GetListAndViewRequest request)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoapClient.GetListAndView(String listName, String viewName)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.GetSharePointFields(String listName, String viewId)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListServiceUtility.GetFields(Uri sharepointUri, NetworkCredential credentials, String listName, String viewName)
   at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.GetAccessibleSharePointColumns(String sharepointUrl, String listName, String viewName)
   at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.ValidateSharePointColumns()
   at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.Validate()
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostValidate(IDTSManagedComponentWrapper100 wrapper)

我在SQLServer2008R2环境下的SSIS中使用了来自CodePlex的SharePoint适配器。这是一个棘手的设置,也许我可以提供一些帮助,即使我没有使用2012版。我记得有几个问题可能是相关的,并且可以提供帮助

  • 由于SharePoint服务器运行在与SQL数据库不同的服务器上,因此我必须应用内置的SharePoint web服务才能访问XML格式的信息。我正在提取文档名、谁更新、上次更新等信息,并将其导入数据库
  • 确保您在SSIS中的SharePoint数据源中提供了正确的信息。在“组件属性”下,必须填充三个必填字段才能建立连接:站点URL、站点列表名称和视图。我记得由于SharePoint的设置方式,很难确定要输入的正确网站列表名称。这是非常定制的。以下SharePoint链接中定义的步骤将有助于验证您是否应用了正确的网站列表名称(网站ID)

  • 连接后要注意的另一件事是修改SharePoint适配器中的映射。默认情况下,它将映射XML中可用的所有SharePoint字段。这可能会导致内存问题,几年前我曾向CodePlex报告过。如果尚未解决,只需删除未应用的映射链接即可。以下链接将有助于设置


希望这有帮助。

看起来您的URL是错误的。你只想要根。
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoap.GetListAndView(GetListAndViewRequest request)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoapClient.ListsService_ListsSoap_GetListAndView(GetListAndViewRequest request)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoapClient.GetListAndView(String listName, String viewName)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.GetSharePointFields(String listName, String viewId)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListServiceUtility.GetFields(Uri sharepointUri, NetworkCredential credentials, String listName, String viewName)
   at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.GetAccessibleSharePointColumns(String sharepointUrl, String listName, String viewName)
   at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.ValidateSharePointColumns()
   at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.Validate()
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostValidate(IDTSManagedComponentWrapper100 wrapper)