When an external list is created through BCS and connected to the orderdetails table of the northwind database, an error message is displayed:
"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."
:
This is because the data row of the imported data table exceeds the default throttling limit (2000 by default) of BCS, so the above error message is displayed.
The solution is also very simple, that is, to modify the default throttling value. Here, we increase it to 40000.
Start-> All Programs-> Microsoft SharePoint 2010 products-> SharePoint 2010 management Shell
(Set-spbusinessdatacatalogthrottleconfig)
(Get-spbusinessdatacatalogthrottleconfig)
Ps zl: \> $ proxy = Get-spserviceapplicationproxy | where {$ _-match "business data connectivity service "}
Ps zl: \> Get-spbusinessdatacatalogthrottleconfig-scope database-throttletype items-serviceapplicationproxy $ proxy
Ps zl: \> $ defathrothrottleconfig = Get-spbusinessdatacatalogthrottleconfig-scope database-throttletype items-serviceapplicationproxy $ proxy
Ps zl: \> $ defathrothrottleconfig
Ps zl: \> set-spbusinessdatacatalogthrottleconfig-default 40000-identity $ defathrothrottleconfig-maximum 1000000
Ps zl: \> $ customthrottleconfig = Get-spbusinessdatacatalogthrottleconfig-scope database-throttletype items-serviceapplicationproxy $ proxy
Ps zl: \> $ customthrottleconfig
:
Then go back to the SharePoint website and you can see that the data is properly displayed: