简体   繁体   English

从SharePoint 2010打开Excel数据透视表报表时出错

[英]Error while opening excel pivot table report from sharepoint 2010

I made a pivot table report using excel 2010 that retrieving data from shareportint 2010 list, the report is working fine in excel but when I uploaded it to document library and put it in web part to view from share point it showing me this error : 我使用excel 2010制作了数据透视表报表,该报表从shareportint 2010列表中检索数据,该报表在excel中工作正常,但是当我将其上传到文档库并将其放在Web部件中以从共享点查看时,它向我显示此错误:

Unable to refresh data for a data connection in the workbook. 
Try again or contact your system administrator. The following connections failed to refresh: 

owssvr[1] 

what should I do to resolve this error? 我该怎么办才能解决此错误?

Thanks. 谢谢。

You should refer to this artice in MSDN when working with external data connections within an Excel workbook. 在Excel工作簿中使用外部数据连接时,应参考MSDN中的这篇文章 Before publishing the workbook into SharePoint you must make sure the connection belongs among the set of (administrator-defined) trusted connections. 在将工作簿发布到SharePoint之前,必须确保该连接属于(管理员定义的)可信连接集。

I got a similar error when trying to refresh data in an Excel Web Part using SharePoint 2010. 尝试使用SharePoint 2010刷新Excel Web部件中的数据时遇到类似的错误。

Here is the screenshot of my error: SharePoint Error 这是我的错误的屏幕截图: SharePoint错误

My problem was that I was setting the source of the Excel Pivot tables directly to the SharePoint list. 我的问题是我将Excel Pivot表的源直接设置为SharePoint列表。 In order to get it to work I had to: 为了使其正常工作,我必须:

  1. Go to the SharePoint list to be used as a data source 转到SharePoint列表以用作数据源
  2. Select the "Export to Excel" button to obtain the .iqy file 选择“导出到Excel”按钮以获取.iqy文件
  3. Save this file then open it in Excel which will open the list in Excel 保存此文件,然后在Excel中打开它,这将在Excel中打开列表
  4. Any pivot tables created must then use this table as the source, not the connection that is found under the "existing connections" button in Excel 然后,创建的所有数据透视表都必须使用该表作为源,而不是Excel中“现有连接”按钮下的连接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM