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 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:

And then:

Which was as follows:

Hmm. So I started investigating to determine the source of the problem, gathered all of the solutions I found to be potentially relevant, and finally got 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 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 permission 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 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("domainserviceaccount")

Step 5: Provision the Excel Services Application 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 the out-of-the-box SharePoint Excel Services Application in mind and may not cover problems from customizing Excel Service.

See also:

  • Excel Services 2010 Error – “The workbook cannot be opened.” [stack exchange]

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 Foundation 2010. If you could advise something, I would really appreciate it.

Here is a 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 an error when opening an Excel file in a browser.

When I click on the file, I get an authentication window that won’t accept my credentials three times, and then it gives me this error: “An error occurred when trying to perform the requested action. Please try again.”.

I have no issues opening Word documents, but Excel 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 get in touch with Microsoft to resolve the problem. Unfortunately, I couldn’t advise anything further because this will need to be troubleshot 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 I can disconnect the server from a farm if this is a standalone server?

Appreciate 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 fixed it simply by restarting the Microsoft SharePoint Foundation Web Application service In Central Administration > Application Management > Services on Server.

Thanks for your help!

SharePoint Online

The cloud parts are functional components that extend your SharePoint Online environment in Microsoft 365.

Supports Classic and Modern sites for SharePoint Online/Microsoft 365

Small Business Pricing and Discounts

SharePoint

Top SharePoint Online Products

Experience greater power and savings by bundling our SharePoint apps and cloud parts.


Calendar Plus


Carousel


Employee Directory Plus


Org Chart Plus


Simple Search


Tabify


Tree View

 

On-Premises Only

These web parts extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of SharePoint Web Parts.

SharePoint 2016, 2019, 2022 – Classic Pages Only

SharePoint

Top On-Premises Only Products

Experience greater power and savings by bundling our SharePoint apps and web parts.


Calendar Plus


Data Viewer


Password Change


Password Expiration


Password Reset

 

Our team of Microsoft 365 Technology Consultants helps you get the most out of your Microsoft technology, we have the best Microsoft 365 talent to streamline your organization.

Consulting to Streamline Your Department

M365 Plus

Managed Services

Microsoft 365

Consulting to Streamline Your Department


Human Resources


Information Technology


Marketing Campaigns


Healthcare


Sales

 

Our Consultants Have What You Need

Federal Contractors