SharePoint 2010 Cookbook: SharePoint 2010 Excel Services - An Error Has Occurred

SharePoint 2010 offers a wide variety of features that make our work lives easier, but every now and again, SharePoint can still be less than kind to users.

Challenge:

When I was trying to open an Excel 2007 spreadsheet once, this error came up unexpectedly:

"An error has occurred. Please try again."

And then:

"Unable to process the request. Wait a few minutes and try performing this operation again."

Which was followed by:

"The workbook cannot be opened."

Hmm. So I started investigating to determine the source of the problem, gathered all of the solutions I found to be potentially relevant, and was finally able to get my Excel Service up and running. If you are experiencing any of the above errors, hopefully the information below will help you to find the solution to your own problem.

Solution:

Possible Causes:

  1. The SharePoint 2010 Excel Services Application has not started properly.
  2. The Security Token Service Application is not started properly.
  3. The Excel Service account does not have permissions for the SharePoint content database.

 

Resolutions Checklist:

Step 1: Go to Central Administration -> Application Management -> Manage service applications -> Verify that the Excel Services Application and Security Token Service Application have started.

Step 2: Go to Central Administration -> System Settings -> Manage services on server -> Verify that Excel Calculation Services has started.

Step 3: Go to Central Administration -> Security -> Configure service accounts -> select Service Application Pool - SharePoint Web Services Default if you are using out-of-the-box SharePoint Excel Service; if you have created a new application pool for your Excel Service, select it instead.  Note the service account currently being used.

Step 4: Verify that your service account includes the db_owner role in the SharePoint content database of that Web application. You can do this in SQL Management Studio on your SQL Server, or by using the following PowerShell commands to grant permission to your service account:

  • On the SharePoint Server, click Start -> All Programs -> Microsoft SharePoint 2010 Products -> SharePoint 2010 Management Shell.
  • Enter these commands:
   1: $w = Get-SPWebApplication -Identity http://portal
   2: $w.GrantAccessToProcessIdentity("domain\serviceaccount")

Step 5: Provision the Excel Services Application by running these PowerShell commands:

   1: $excel = Get-SPExcelServiceApplication
   2: $excel.Provision()

Step 6: Open IIS Manager on the SharePoint Server, and verify that SecurityTokenServiceApplicationPool has started.

Step 7: Reset IIS

Notes:

  • This blog post only applies to SharePoint Server 2010 Enterprise.
  • This blog post was written with basically the out-of-the-box SharePoint Excel Services Application in mind, and may not cover problems arising from customizing Excel Service.

See also:


Posted Sep 15 2011, 01:00 PM by Duy Do

Comments

Taras wrote re: SharePoint 2010 Cookbook: SharePoint 2010 Excel Services - An Error Has Occurred
on Wed, Jul 11 2012 12:21 PM

Hi nice article.

I faced one of those problems on my Sharepoint Foudation 2010. If could advise something, I would really appreciate it.

Here is description of my problem:

"We have Sharepoint Foundation 2010 installed standalone, and Office web apps installed as well.

Everything was working fine till this day when it started to give error when trying to open Excel file in browser.

When I click on file I'm getting authentication window which won't accept my credentials for three times, and then it gives me this error: "An error occurred when trying to perform requested action. Please try again.".

I have no issues opening Word documents, but Excel just won't open now."

Duy Do wrote re: SharePoint 2010 Cookbook: SharePoint 2010 Excel Services - An Error Has Occurred
on Wed, Jul 11 2012 11:13 PM

Hi Taras,

Maybe this will help:

social.technet.microsoft.com/.../b5988534-d430-4e58-b4d7-2266ecd4655c

If not, please contact Microsoft to resolve the problem. Unfortunately, I couldn't advise anything further because this will need to be troubleshooted in deep to reveal the root cause..

Taras wrote re: SharePoint 2010 Cookbook: SharePoint 2010 Excel Services - An Error Has Occurred
on Thu, Jul 12 2012 5:28 AM

Hi Duy Do,

Could you please advise, how can I proceed with disconnecting server from a farm if this is a standalone server?

Apperciate, your help.

Duy Do wrote re: SharePoint 2010 Cookbook: SharePoint 2010 Excel Services - An Error Has Occurred
on Thu, Jul 12 2012 6:29 AM

Hi Taras,

Sorry I missed the fact that you are running on a standalone SharePoint. I found that article and thought it could help, but apparently it does not. You cannot remove the standalone server. Please contact Microsoft to troubleshoot this issue.

Regards,

Taras wrote re: SharePoint 2010 Cookbook: SharePoint 2010 Excel Services - An Error Has Occurred
on Thu, Jul 12 2012 8:06 AM

Hi Duy Do,

I got it fixed simply by restarting Microsoft SharePoint Foundation Web Application service In Central Administration > Application Management > Services on Server.

Thanks for your help!

Add a Comment

Please sign into Bamboo Nation to leave a comment.
Bamboo Solutions Corporation, 2002-2014