You create a PowerPivot workbook with one or more data sources and upload it to SharePoint 2016. You then schedule the workbook to refresh and the refresh fails with the following error: “The operation has timed out“.
This issue is caused by a change to the design of the product in SharePoint 2016 that limits a single PowerPivot data source to a refresh duration of 100 seconds (or 1:40). The product team is aware of the issue and are in the process of working on having the restriction returned to default.
Note that this can also be caused by slow or underperforming data sources if you think your data should be refreshing in under 100 seconds. If you are pulling a small amount or data from a complex data source that takes a long time to query, you may consider alternative workarounds in the meantime, or work on optimizing your data source/query.
- If you expand the refresh history, you will notice that the data source of which refresh failed on ran for exactly 1:40 (100 seconds).
- You may notice that some of your data sources actually succeed, or that the refresh succeeds intermittently if all of the data sources refresh in less than 100 seconds.
- In the SharePoint ULS logs, you will see the actual error reported, but it will not seem to correlate to anything meaningful as far as a cause (because it doesn’t….)
00/00/2017 14:49:18.44 w3wp.exe (0x00000) 0x59D4 PowerPivot Service Data Refresh 99 High EXCEPTION: System.Net.WebException: The operation has timed out at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) <<truncated stack>>
- You will likely see a correlating event in the Application Event logs (EventID: 5214).
- If you have multiple workbooks pulling from the same source, and one workbook is slowing the data source down causing the other queries to wait or slow (past the 100s), you may see multiple workbooks fail that do not normally fail.
A Few Potential Workarounds:
- You can split your data sources into smaller queries. Note that this limitation is per data source, so you could query the same data more than once if need be.
- Optimize your queries to run faster.
- Query less data.
- Add hardware to your data source to process queries faster.
There are more workarounds and optimization options depending on the type of data you are pulling, but the fact of the matter is that we are working on having this limitation removed. This blog post will be updated as soon as a fix is released with links to the patch and details on how to apply it.
NOTE: This blog applies SPECIFICALLY to the issue listed above and ONLY to PowerPivot for SharePoint 2016 Scheduled Data Refresh. This may not be the only context that you see this error and you could also run into it in other versions of the product (but it will not be for the same reason!!).