An error occurred while working on a data model (Interactive PowerPivot data refresh error)
An error occurred while working on a data model - Interactive PowerPivot data refresh error using authenticated user’s account
We recently came across a tricky issue with a manual (interactive) PowerPivot data refresh in an environment where Kerberos is configured. We are running SharePoint 2013 with a SQL Server 2014 backend. Having looked at many different articles and blogs, I decided to compile all information I found online in one short blog. You will get LOTS of hits online if you search this topic (and I've listed the most relevant blogs/articles) at the bottom in "References" section, but only ONE blog provided the exact resolution we were looking for.
Error on a manual refresh of an Excel workbook:
"An error occurred while working on the Data Model in the workbook. Please try again". That's the error being thrown when you try to do an interactive data refresh in an Excel Services Web App (not OWA, Excel Services Web App, OWA doesn't support PowerPivot data refresh, see "References")
This is a very generic error that is thrown when you open the workbook in the browser and go to Data tab-->Refresh All Connections:
This blog will help resolve your issue if:
- You have Kerberos setup in your environment.
- You created the workbook using Excel 2013 (requirement for a manual data refresh!)
- You're using the identity of the currently logged-on user as credentials to connect to the data source. Check Excel Services Authentication Settings defined for the workbook to make sure this is true.
- You are seeing this error in the Event log of the Application server: Source: "MSOLAP$POWERPIVOT" - Message:"OLE DB or ODBC error: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.; 28000."
- You are viewing the workbook in an Excel Web App (not OWA) -
Solution:
If you answered "Yes" to all of the above, follow this link to get your resolution to the issue:
Go through all of the configuration steps described in the article. After checking off every item, we discovered that our issue was the account running "SQL Server Analysis Services (PowerPivot)" did not have constrained delegation setup for Kerberos. That step is described in #7 in the article. We ended up changing the account running "SQL Server Analysis Services (PowerPivot)" to a different account that had constrained delegation setup. Sure enough, the data refresh was successful after this change. If you need help creating SPN and setting constrained delegation for the account running "SQL Server Analysis Services (PowerPivot), follow #7 in the blog.
References: https://www.sandeepnakarmi.com/2015/03/external-data-refresh-failed-error-for-powerpivotexcel-services/ https://blogs.technet.microsoft.com/excel_services__powerpivot_for_sharepoint_support_blog/2013/01/31/powerpivot-for-sharepoint-browser-refresh-fails-data-refresh-not-supported-in-office-web-apps/ https://social.technet.microsoft.com/Forums/office/en-US/823e9b4b-32c4-426b-a9f6-40743793f16b/manual-data-refresh-in-powerpivot-does-not-work-in-sharepoint-2013?forum=sharepointgeneral https://social.technet.microsoft.com/wiki/contents/articles/3870.powerpivot-troubleshooting-data-refresh.aspx https://msdn.microsoft.com/en-us/library/jj879294.aspx - Power Pivot Data Refresh with SharePoint 2013
https://technet.microsoft.com/en-us/library/hh369968(v=office.14).aspx - Excel Services data refresh flowchart
https://blogs.technet.microsoft.com/excel_services__powerpivot_for_sharepoint_support_blog/