我有一个2013年SharePoint托管的应用程序,它使用ODATA外部内容类型(在应用程序本身内部)。具有较小量的数据,它可以正常工作,但结果较大,ODATA调用正在给出关于被盗的错误消息。

<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<m:code>-2146232832, Microsoft.SharePoint.SPException</m:code>
<m:message xml:lang="en-US">
OData Service Connector has throttled the response. The response from OData Service contains more than '3000000' bytes. The maximum amount of data that can be read through OData Service Connector is '3000000'. The limit can be changed via the 'Set-SPBusinessDataCatalogThrottleConfig' cmdlet.
</m:message>
</m:error>
.

我读了本文关于限制: http://blogs.msdn.com/b/bcs/archive/2010/02/16/bcs-powershell-introduction-and-throttle-management.aspx

阅读本文后,我禁用了使用此PowerShell的ODATA大小和超时的限制:

$bdcProxy = Get-SPServiceApplicationProxy | where {$_.GetType().FullName -eq ('Microsoft.SharePoint.BusinessData.SharedService.' + 'BdcServiceApplicationProxy')}
$odataRule = Get-SPBusinessDataCatalogThrottleConfig -Scope OData -ThrottleType Size -ServiceApplicationProxy $bdcProxy
Set-SPBusinessDataCatalogThrottleConfig -Identity $odataRule -Enforced:$false
$odataRule = Get-SPBusinessDataCatalogThrottleConfig -Scope OData -ThrottleType Timeout -ServiceApplicationProxy $bdcProxy
Set-SPBusinessDataCatalogThrottleConfig -Identity $odataRule -Enforced:$false
.

我也耗尽了WCF范围。

但我仍然得到相同的错误消息。运行后,农场中的所有机器都已完全重新启动。任何想法都会导致这件事,需要检查的事情,任何事情?

有帮助吗?

解决方案

I know this is an old question, but I recently had the same problem so I thought I'd post my solution for anyone else who finds this post.

Basically, I ran into the exact same problem, I followed the very limited information available and nothing seemed to change. So I opened a support case with Microsoft and this is a known issue. The workaround/correct procedure is to use the -FileBacked parameter on the Get-SPBusinessDataCatalogThrottleConfig command. The documentation on TechNet isn't super helpful for the parameter, stating:

Requests the throttling configuration for file backed metadata catalogs.

So in the case of this question changing the command to be:

$odataRule = Get-SPBusinessDataCatalogThrottleConfig -FileBacked -Scope OData -ThrottleType Size -ServiceApplicationProxy $bdcProxy
Set-SPBusinessDataCatalogThrottleConfig -Identity $odataRule -Enforced:$false

That worked for me.

许可以下: CC-BY-SA归因
scroll top