Fixing: The workbook cannot be opened SharePoint 2010

Fixing: The workbook cannot be opened in SharePoint 2010

The error "The workbook cannot be opened" is thrown when opening an excel file in the browser or visiting a page with an excel page viewer webpart embedded.

This is a failure in Excel services.
To check that the service was added, go to Central Administration (CA) and click "Manage Service Applications"
In that list you should see Excel Services Application Web Service Application and Excel Services Application Web Service Application Proxy.

Then, you need to know that excel services is running on at least 1 server in your farm.
Go back to the CA homepage and click "Manage Servers in this Farm"
There you should also see "Excel Calculation Services".  If not, click on one of your app or web servers on that page  then click the link to start the service.

Next we need to know which service account is running Excel services.  In CA, click "Security" then "Configure Service Accounts" In the top drop down, select your excel services application and note the user account at the bottom.

Now we need to add the right permissions to that account.  For this, 2 powershell commands are the quickest way.

$S = Get-SPWebApplication –Identity http://sharepoint.name
$S.GrantAccessToProcessIdentity("SPDomain\svc.sp.excel")


replace http://sharepoint.name with your Web Application name and SPDomain\svc.sp.excel with your domain\service account.

That fixed my error.  For more info, click here.

Comments

Popular posts from this blog

Setting SharePoint announcements to auto delete after expiration

Updating a single field in a SharePoint List using Power Automate Flows

SharePoint driven rich text dashboard using jqueryui. (JQuery file)