Excel services external data access problem (Kerberos)<a title="ShowForum.aspx?ForumID=1208&amp;SiteID=1" href="ShowForum.aspx?ForumID=1208&amp;SiteID=1"></a> <p class=MsoNormal><span lang=EN-US>We have problem, that appeared in forums and blogs many times, but none of advices was helpful.</span></p> <p class=MsoNormal><span lang=EN-US>Shortly we have problem to refresh data from OLAP Cube (SSAS2005) in published Excel file in SharePoint, we setup Kerberos authorization as described here: <a title="http://www.sharepointblogs.com/tonstegeman/archive/2007/03/12/using-analysis-services-data-in-excel-services-part-2-preparing-the-moss-server.aspx" href="http://www.sharepointblogs.com/tonstegeman/archive/2007/03/12/using-analysis-services-data-in-excel-services-part-2-preparing-the-moss-server.aspx">http://www.sharepointblogs.com/tonstegeman/archive/2007/03/12/using-analysis-services-data-in-excel-services-part-2-preparing-the-moss-server.aspx</a></span></p> <p class=MsoNormal style="margin-bottom:0pt"><span lang=EN-US>Let’s describe the installation.</span></p> <p class=MsoNormal style="margin-bottom:0pt"><span lang=EN-US>We’ve got 3 servers. One of them is a SharePoint2007 server with Excel Services called ws2003r2.domain. <span> </span>Ws2003r2.domain is a vmware machine with Windows Server 2003 R2 Standard Sp1 installed. Bases for SharePoint are located at second server called srvsql.domain. The last server is SQL with OLAP Services installed called ssas.domain.</span></p> <p class=MsoNormal style="margin-bottom:0pt"><span lang=EN-US>SharePoint web application URL is http:// Ws2003r2.domain:7000 and Application Pool Account is DOMAIN\spdev. Domain account for SSAS2005 is DOMAIN\SQLService.</span></p> <p class=MsoNormal style="margin-bottom:0pt"><span lang=EN-US>We’ve created SPNs:</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">setspn -a http/ws2003r2:7000 DOMAIN\spdev</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">setspn -a http/ ws2003r2.domain:7000 DOMAIN\spdev</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">C:\&gt;setspn -l DOMAIN\spdev</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">Registered ServicePrincipalNames for CN=spdev,OU=special_users,DC=domain:</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>http/ws2003r2.domain:56737</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>http/ws2003r2:56737</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>HTTP/ws2003r2.domain:7000</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>HTTP/ws2003r2:7000</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">C:\&gt;setspn -l DOMAIN\SQLService</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">Registered ServicePrincipalNames for CN=SQLService,OU=special_users,DC=domain:</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>MSOLAPSvc.3/ssas.domain:1433</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>MSOLAPSvc.3/ssas:1433</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>MSSQLSvc/ssas.domain:1433</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>MSSQLSvc/ssas:1433</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">For both server in Delegation tab in ADUC set Trust this computer for delegation to any service (Kerberos only)</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">Also we enabled kerberos authenticaiton to the shared services by running the following stsadm commands on the shared services machine:</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">stsadm -o set-ecssecurity -accessmodel delegation -ssp SharedServices1</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">stsadm -o setsharedwebserviceauthn -negotiate</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">stsadm -o execadmsvcjobs</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">iisreset</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"> </span></p> <p class=MsoNormal><span lang=EN-US>Published trusted ODC file with the connection string: Provider=MSOLAP.3;Integrated Security=SSPI;Persist Security Info=True;Initial Catalog=Service statistic;Data Source=srvtest;MDX Compatibility=1;Safety Options=2;MDX Missing Member Mode=Error</span></p> <p class=MsoNormal><span lang=EN-US>Set Authentication Settings in ODC to “Windows Authentication”</span></p> <p class=MsoNormal><br><span lang=EN-US></span></p> <p class=MsoNormal><span lang=EN-US>And got the following error in SharePoint log:</span></p> <p class=MsoNormal><span lang=EN-US>Bac09/PF_CHECK_ERROR returned 'critical hresult error' 0x80004005 in file d:\office\source\bibls\engine\data\oledbconnection.cpp @ line 380<span>   </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/OLEDBConnection::InitConnection: An error was encountered in the transport layer.<span>           </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/Refresh failed for 'srvtest Service statistic1' in the workbook 'http://ws2003r2d2:7000/sites/stat/ReportsLibrary/Пример отчета статистики сервис.xlsx'. [Session: 21.51c1SjIVrZp1mxhH9jfpM90.5.ru-RU5.ru-RU73.-0180#0000-10-00-05T03:00:00:0000#+0000#0000-03-00-05T02:00:00:0000#-0060 User: IMMO\makarsky]<span>            </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/ExternalSource.ValidateConnection: Unable to get a connection: Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionException: Exception of type 'Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionException' was thrown.<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInterop.InitConnection()<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.&lt;&gt;c__DisplayClass1.&lt;CreateConnection&gt;b__0()<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.Credentials.TryExecuteImpersonated(WindowsIdentity wi, ExcuteImpersonatedMethod method, Boolean dispose)<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.Credentials.TryExecuteImpersonated(ExcuteImpersonatedMethod method, Boolean dispose)<span>     </span>at Microsoft.Office.Excel.Server....<span>            </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/...CalculationServer.Credentials.TryExecuteImpersonated(ExcuteImpersonatedMethod method)<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.CreateConnection(Credentials credentials, ConnectionInfo connInfo, Int32 keyLcid)<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.GetConnection(ConnectionRequest connectionRequest, ExtendedConnectionInfo extendedConnInfo, Credentials credentials, Int64 privateConnectionId, Boolean auditConnection)<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.ExternalSource.TryGetValidatedConnection(Request request, Credentials credentials, ExtendedConnectionInfo extendedConnectionInfo, Boolean shouldReportFailure, Boolean auditConnection, Connection&amp; connectionOut). sessionId=21.51c1SjIVrZp1mxhH9jfpM90.5.ru-RU5.ru-R...<span>          </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/...U73.-0180#0000-10-00-05T03:00:00:0000#+0000#0000-03-00-05T02:00:00:0000#-0060, externalSource=srvtest Service statistic1<span>              </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/ExternalSource.ExecuteOperation: We exhausted all available connection information. Exception: Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInfoException: Exception of type 'Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInfoException' was thrown.<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.ConnectionInfoManager.GetConnectionInfo(Request request, String externalSourceName, Int32 externalSourceIndex, Boolean&amp; shouldReportFailure)<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.ExternalSource.ExecuteOperation(Request request, ExternalSourceStateInfo externalSourceStateInfo, ExternalSourceStateInfo prevExternalSourceStateInfo, Int32 index, ConnectionInfoManager connectionInfoManager, ExternalDataScenario scenario, DataOperation dataOpe...<span>                </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/...ration), Data Connection Name: srvtest Service statistic1, SessionId: 21.51c1SjIVrZp1mxhH9jfpM90.5.ru-RU5.ru-RU73.-0180#0000-10-00-05T03:00:00:0000#+0000#0000-03-00-05T02:00:00:0000#-0060, UserId: IMMO\makarsky<span>                </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/ExcelService.PostProcessRequest: finished request of type TogglePivotDrill<span>              </span></span></p> <p class=MsoNormal><span lang=EN-US> </span></p> <p class=MsoNormal><span lang=EN-US>Does anybody have any suggesions?</span></p> <p class=MsoNormal><span lang=EN-US> </span></p>© 2009 Microsoft Corporation. All rights reserved.Wed, 22 Jul 2009 23:06:14 Z43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49ahttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49ahttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49aAndrey Larinhttp://social.msdn.microsoft.com/Profile/en-US/?user=Andrey%20LarinExcel services external data access problem (Kerberos)<a title="ShowForum.aspx?ForumID=1208&amp;SiteID=1" href="ShowForum.aspx?ForumID=1208&amp;SiteID=1"></a> <p class=MsoNormal><span lang=EN-US>We have problem, that appeared in forums and blogs many times, but none of advices was helpful.</span></p> <p class=MsoNormal><span lang=EN-US>Shortly we have problem to refresh data from OLAP Cube (SSAS2005) in published Excel file in SharePoint, we setup Kerberos authorization as described here: <a title="http://www.sharepointblogs.com/tonstegeman/archive/2007/03/12/using-analysis-services-data-in-excel-services-part-2-preparing-the-moss-server.aspx" href="http://www.sharepointblogs.com/tonstegeman/archive/2007/03/12/using-analysis-services-data-in-excel-services-part-2-preparing-the-moss-server.aspx">http://www.sharepointblogs.com/tonstegeman/archive/2007/03/12/using-analysis-services-data-in-excel-services-part-2-preparing-the-moss-server.aspx</a></span></p> <p class=MsoNormal style="margin-bottom:0pt"><span lang=EN-US>Let’s describe the installation.</span></p> <p class=MsoNormal style="margin-bottom:0pt"><span lang=EN-US>We’ve got 3 servers. One of them is a SharePoint2007 server with Excel Services called ws2003r2.domain. <span> </span>Ws2003r2.domain is a vmware machine with Windows Server 2003 R2 Standard Sp1 installed. Bases for SharePoint are located at second server called srvsql.domain. The last server is SQL with OLAP Services installed called ssas.domain.</span></p> <p class=MsoNormal style="margin-bottom:0pt"><span lang=EN-US>SharePoint web application URL is http:// Ws2003r2.domain:7000 and Application Pool Account is DOMAIN\spdev. Domain account for SSAS2005 is DOMAIN\SQLService.</span></p> <p class=MsoNormal style="margin-bottom:0pt"><span lang=EN-US>We’ve created SPNs:</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">setspn -a http/ws2003r2:7000 DOMAIN\spdev</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">setspn -a http/ ws2003r2.domain:7000 DOMAIN\spdev</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">C:\&gt;setspn -l DOMAIN\spdev</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">Registered ServicePrincipalNames for CN=spdev,OU=special_users,DC=domain:</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>http/ws2003r2.domain:56737</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>http/ws2003r2:56737</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>HTTP/ws2003r2.domain:7000</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>HTTP/ws2003r2:7000</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">C:\&gt;setspn -l DOMAIN\SQLService</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">Registered ServicePrincipalNames for CN=SQLService,OU=special_users,DC=domain:</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>MSOLAPSvc.3/ssas.domain:1433</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>MSOLAPSvc.3/ssas:1433</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>MSSQLSvc/ssas.domain:1433</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"><span>    </span>MSSQLSvc/ssas:1433</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">For both server in Delegation tab in ADUC set Trust this computer for delegation to any service (Kerberos only)</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">Also we enabled kerberos authenticaiton to the shared services by running the following stsadm commands on the shared services machine:</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">stsadm -o set-ecssecurity -accessmodel delegation -ssp SharedServices1</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">stsadm -o setsharedwebserviceauthn -negotiate</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">stsadm -o execadmsvcjobs</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri">iisreset</span></p> <p style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-family:Calibri"> </span></p> <p class=MsoNormal><span lang=EN-US>Published trusted ODC file with the connection string: Provider=MSOLAP.3;Integrated Security=SSPI;Persist Security Info=True;Initial Catalog=Service statistic;Data Source=srvtest;MDX Compatibility=1;Safety Options=2;MDX Missing Member Mode=Error</span></p> <p class=MsoNormal><span lang=EN-US>Set Authentication Settings in ODC to “Windows Authentication”</span></p> <p class=MsoNormal><br><span lang=EN-US></span></p> <p class=MsoNormal><span lang=EN-US>And got the following error in SharePoint log:</span></p> <p class=MsoNormal><span lang=EN-US>Bac09/PF_CHECK_ERROR returned 'critical hresult error' 0x80004005 in file d:\office\source\bibls\engine\data\oledbconnection.cpp @ line 380<span>   </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/OLEDBConnection::InitConnection: An error was encountered in the transport layer.<span>           </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/Refresh failed for 'srvtest Service statistic1' in the workbook 'http://ws2003r2d2:7000/sites/stat/ReportsLibrary/Пример отчета статистики сервис.xlsx'. [Session: 21.51c1SjIVrZp1mxhH9jfpM90.5.ru-RU5.ru-RU73.-0180#0000-10-00-05T03:00:00:0000#+0000#0000-03-00-05T02:00:00:0000#-0060 User: IMMO\makarsky]<span>            </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/ExternalSource.ValidateConnection: Unable to get a connection: Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionException: Exception of type 'Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionException' was thrown.<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInterop.InitConnection()<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.&lt;&gt;c__DisplayClass1.&lt;CreateConnection&gt;b__0()<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.Credentials.TryExecuteImpersonated(WindowsIdentity wi, ExcuteImpersonatedMethod method, Boolean dispose)<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.Credentials.TryExecuteImpersonated(ExcuteImpersonatedMethod method, Boolean dispose)<span>     </span>at Microsoft.Office.Excel.Server....<span>            </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/...CalculationServer.Credentials.TryExecuteImpersonated(ExcuteImpersonatedMethod method)<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.CreateConnection(Credentials credentials, ConnectionInfo connInfo, Int32 keyLcid)<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.ConnectionManager.GetConnection(ConnectionRequest connectionRequest, ExtendedConnectionInfo extendedConnInfo, Credentials credentials, Int64 privateConnectionId, Boolean auditConnection)<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.ExternalSource.TryGetValidatedConnection(Request request, Credentials credentials, ExtendedConnectionInfo extendedConnectionInfo, Boolean shouldReportFailure, Boolean auditConnection, Connection&amp; connectionOut). sessionId=21.51c1SjIVrZp1mxhH9jfpM90.5.ru-RU5.ru-R...<span>          </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/...U73.-0180#0000-10-00-05T03:00:00:0000#+0000#0000-03-00-05T02:00:00:0000#-0060, externalSource=srvtest Service statistic1<span>              </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/ExternalSource.ExecuteOperation: We exhausted all available connection information. Exception: Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInfoException: Exception of type 'Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInfoException' was thrown.<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.ConnectionInfoManager.GetConnectionInfo(Request request, String externalSourceName, Int32 externalSourceIndex, Boolean&amp; shouldReportFailure)<span>     </span>at Microsoft.Office.Excel.Server.CalculationServer.ExternalSource.ExecuteOperation(Request request, ExternalSourceStateInfo externalSourceStateInfo, ExternalSourceStateInfo prevExternalSourceStateInfo, Int32 index, ConnectionInfoManager connectionInfoManager, ExternalDataScenario scenario, DataOperation dataOpe...<span>                </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/...ration), Data Connection Name: srvtest Service statistic1, SessionId: 21.51c1SjIVrZp1mxhH9jfpM90.5.ru-RU5.ru-RU73.-0180#0000-10-00-05T03:00:00:0000#+0000#0000-03-00-05T02:00:00:0000#-0060, UserId: IMMO\makarsky<span>                </span>0000000b-5fa3-0647-0000-000050f7b00b</span></p> <p class=MsoNormal><span lang=EN-US>09/ExcelService.PostProcessRequest: finished request of type TogglePivotDrill<span>              </span></span></p> <p class=MsoNormal><span lang=EN-US> </span></p> <p class=MsoNormal><span lang=EN-US>Does anybody have any suggesions?</span></p> <p class=MsoNormal><span lang=EN-US> </span></p>Tue, 04 Sep 2007 11:35:04 Z2007-09-23T20:09:15Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#9e987000-2398-498b-8ee7-018ba82784d2http://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#9e987000-2398-498b-8ee7-018ba82784d2John Campbell1http://social.msdn.microsoft.com/Profile/en-US/?user=John%20Campbell1Excel services external data access problem (Kerberos)<p>What is the error you see displayed in the UI?  Are you getting an Access Denied alert or a Data Refresh Failed alert?  If it is access denied, take a second look at your spns.  Also, does it refresh if you launch the browser from your server box and try?</p> <p align=left> </p> <p align=left>Also note that you are not <em>required </em>to use ODC files and DCLs.  You can enable refresh just using the connection that is stored with the workbook.   See <a title="http://technet2.microsoft.com/Office/f/?en-us/library/7e6ce086-57b6-4ef2-8117-e725de18f2401033.mspx" href="http://technet2.microsoft.com/Office/f/?en-us/library/7e6ce086-57b6-4ef2-8117-e725de18f2401033.mspx">a whitepaper </a>I put together for a more full treatment.  It doesn't have step by step Kerberos help unfortunately - but this is being worked on.</p> <p align=left><font face=Arial size=2></font> </p>Wed, 12 Sep 2007 00:12:09 Z2007-09-23T20:09:15Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#02a79f27-d855-4dc6-86d4-0c2ea069dcdehttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#02a79f27-d855-4dc6-86d4-0c2ea069dcdeEric VanRoyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Eric%20VanRoyExcel services external data access problem (Kerberos)<p>I have virtually an identical log file. </p> <p align=left> </p> <p align=left>I get the Data Refresh Failed error. I believe that all the trusted locations are set correctly and that Kerberos is configured correctly</p> <p align=left> </p> <p align=left>your link to your Whitepaper is broken.</p> <p align=left> </p> <p align=left>Any other suggestions would be awesome</p> <p align=left> </p> <p align=left>Eric VanRoy</p> <p align=left><font face=Arial size=2></font> </p>Wed, 16 Jul 2008 15:14:58 Z2008-07-16T15:14:58Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#487adbcf-641f-4861-a686-22d7e397ac7ahttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#487adbcf-641f-4861-a686-22d7e397ac7aJohn Campbell1http://social.msdn.microsoft.com/Profile/en-US/?user=John%20Campbell1Excel services external data access problem (Kerberos)<p align=left><font face=Arial size=2></font> </p> <p>Sorry, I don't know why the link to the paper changed.  This seems to be the updated link:  <a title="http://technet.microsoft.com/en-us/library/cc262899(TechNet.10).aspx" href="http://technet.microsoft.com/en-us/library/cc262899(TechNet.10).aspx">http://technet.microsoft.com/en-us/library/cc262899(TechNet.10).aspx</a></p> <p align=left> </p> <p align=left>I would need more information to help troubleshoot the issue.  </p> <p align=left> </p> <p align=left>Do any other services on that box use Kerberos?  And if so, do they work?  </p> <p align=left>Do you get a successfull data refresh for any other types of connections (i.e. maybe for one where the server authentication type is None)?    </p> <p align=left> </p> <p align=left>-John</p>Wed, 16 Jul 2008 16:06:22 Z2008-07-16T16:06:22Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#5c4b2749-737f-4dad-a735-ff634242e5e6http://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#5c4b2749-737f-4dad-a735-ff634242e5e6Alex Berenguerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alex%20BerenguerExcel services external data access problem (Kerberos)<p>Hi people,</p> <p align=left> </p> <p align=left>I'm living the same nightmare at least for 5 days.</p> <p align=left> </p> <p align=left>I've read and worked on some blogs and tech sites but unfortunately they were not enough so far.</p> <p align=left> </p> <p align=left>Sites like:</p> <p align=left> </p> <p align=left><a title="http://msdn.microsoft.com/en-us/library/cc514223.aspx" href="http://msdn.microsoft.com/en-us/library/cc514223.aspx">http://msdn.microsoft.com/en-us/library/cc514223.aspx</a></p> <p align=left><a title="http://sqljunkies.com/WebLog/mosha/archive/2005/01/25/6905.aspx" href="http://sqljunkies.com/WebLog/mosha/archive/2005/01/25/6905.aspx">http://sqljunkies.com/WebLog/mosha/archive/2005/01/25/6905.aspx</a></p> <p align=left><a title="http://technet.microsoft.com/en-us/library/cc262899(TechNet.10).aspx" href="http://technet.microsoft.com/en-us/library/cc262899(TechNet.10).aspx">http://technet.microsoft.com/en-us/library/cc262899(TechNet.10).aspx</a></p> <p align=left><a title="http://www.sharepointblogs.com/tonstegeman/archive/2007/03/11/using-analysis-services-data-in-excel-services-part-1-preparing-the-ad-for-kerberos.aspx" href="http://www.sharepointblogs.com/tonstegeman/archive/2007/03/11/using-analysis-services-data-in-excel-services-part-1-preparing-the-ad-for-kerberos.aspx">http://www.sharepointblogs.com/tonstegeman/archive/2007/03/11/using-analysis-services-data-in-excel-services-part-1-preparing-the-ad-for-kerberos.aspx</a></p> <p align=left><a title="http://blogs.msdn.com/james_world/archive/2007/08/20/essential-guide-to-kerberos-in-sharepoint.aspx" href="http://blogs.msdn.com/james_world/archive/2007/08/20/essential-guide-to-kerberos-in-sharepoint.aspx">http://blogs.msdn.com/james_world/archive/2007/08/20/essential-guide-to-kerberos-in-sharepoint.aspx</a></p> <p align=left><a title="http://msdn.microsoft.com/en-us/office/bb203828.aspx" href="http://msdn.microsoft.com/en-us/office/bb203828.aspx">http://msdn.microsoft.com/en-us/office/bb203828.aspx</a></p> <p align=left>and so on....</p> <p align=left> </p> <p align=left>Any clues ?</p> <p align=left> </p> <p align=left>We thank you in advance,</p> <p align=left><br>Alex Berenguer</p> <p align=left> </p> <p align=left><font face=Arial size=2></font> </p>Thu, 17 Jul 2008 20:51:29 Z2008-07-17T20:51:29Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#3c98581a-d900-4711-8e47-aac767688dffhttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#3c98581a-d900-4711-8e47-aac767688dffEric VanRoyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Eric%20VanRoyExcel services external data access problem (Kerberos)<p>After looking through all the settings sometimes the simplest item is the solution......</p> <p align=left> </p> <p align=left>In the authentication provider make sure you have select Negotiate and not NTLM.....</p> <p align=left> </p> <p align=left>After looking into everything... that is what my issue turned out to be. I did also have some other items that I needed to investigate that are not documented well is that you have to remember your excel services is using a custom por tin IIs (most likely the site is named something like Office Server web Services. Since that is the site that holds the Shared Services application, you need to create the SPN for that also. </p> <p align=left> </p> <p align=left>Check the account that the SharedServices application (under office server web services) is running as. If you have not made any changes this should be the same as the SSP account (for example domain\ssp_service). Also check to see the port that the Office Server web Services is configured for (lets say 5547- it is pretty random). you will need to then set the SPN with a command similiar to http/servername:5547 domain\ssp_service.</p> <p align=left> </p> <p align=left>Don't forget the FQDN also. That account should be set to allow delegation if it is not already.</p> <p align=left> </p> <p align=left>After we did that, then I realized the actual web sites authentication provider was not set to Negotiate. That means that it would never attempt Kerberos. </p> <p align=left> </p> <p align=left>I hope that this helps someone else.</p> <p align=left> </p> <p align=left>Eric VanRoy</p> <p align=left><font face=Arial size=2></font> </p>Thu, 17 Jul 2008 21:02:49 Z2008-07-17T21:02:49Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#2696ff71-df75-4265-ae41-0b68bb03205bhttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#2696ff71-df75-4265-ae41-0b68bb03205bAlex Berenguerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alex%20BerenguerExcel services external data access problem (Kerberos)<p><span style="font-size:9pt;font-family:'Verdana','sans-serif'">Hi Everyone,<br><br>It was possible to take the Excel Services working against a SSAS cube in other machine by setting all the steps below:<br><br>Creating and associating AD user account to the SSAS service (Domain Admins member of)<br>Creating and associating AD user account to the Sharepoint Application Pool service (Domain Admins member of)<br>Setting SPN to SSAS Service under the user account created (including extended fqdn)<br>Setting SPN to SSAS Service under the user account created (including extended fqdn)<br>Setting Trust Delegation to any service (Kerberos only) to the Sharepoint user account (AD)<br>Enabling Kerberos authentication to the shared services by runningstsadm commands:<br>  stsadm -o set-ecssecurity -accessmodel delegation -ssp SharedServices1<br>  stsadm -o setsharedwebserviceauthn –negotiate<br>  stsadm -o execadmsvcjobs<br>Setting Sharepoint Excel Services settings properly<br>Setting Sharepoint Excel Sharepoint Authentication provider to Negociate (Default Zone)<br>Publishing the Excel Services report</span></p> <p><span style="font-size:9pt;font-family:'Verdana','sans-serif'">It's pretty a hard work but we could see Excel Services working finally.</span></p> <p><span style="font-size:9pt;font-family:'Verdana','sans-serif'"><strong>Our big problem now</strong> is under the security. We are not security specialist guys but the Excel Services appears work only if we Trust the Sharepoint User account mentioned  to delegate authentication to any service (</span><span style="font-size:10pt">Trust this user for delegation to any service</span><span style="font-size:9pt;font-family:'Verdana','sans-serif'">). All documents we could find in the network tell us it’s a very big security breach and it is highly not recommended to keep in. </span></p> <p><span style="font-size:9pt;font-family:'Verdana','sans-serif'">Does anybody know the services the user must delegate? If so, could we use “Trust this user for delegation to specified services only” and setting the appropriated service to? It could reducing our security risk, isn't it? We have tried to set the SPN’s services created but it wasn’t enough.</span></p> <p><span style="font-size:9pt;font-family:'Verdana','sans-serif'">Against all documents we have read, it wasn’t necessary to set delegation to the computer (sharepoint server) in this case.</span></p> <p><span style="font-size:9pt;font-family:'Verdana','sans-serif'">Also, it could help us so much if someone could explain better what kind of risk we are supposed to be by keeping this set enabled in production environment.</span></p> <p><span style="font-size:9pt;font-family:'Verdana','sans-serif'">Other issue is under the user accounts created to run the SQL and Sharepoint services once it wasn’t specified which profile permission they must be associated properly. (Domain Admins?).</span></p> <p><span style="font-size:9pt;font-family:'Verdana','sans-serif'">In other hands, the solution we have map is able to keep the Excel Services working with 2 machines but it looks like to be a security breach with very low safety. What would you say guys?</span></p> <p><span style="font-size:9pt;font-family:'Verdana','sans-serif'">Best regards,</span></p> <p><span style="font-size:9pt;font-family:'Verdana','sans-serif'">Alex Berenguer</span></p><hr size="1" align="left" width="25%">Alex BerenguerFri, 25 Jul 2008 15:59:48 Z2008-07-25T15:59:48Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#b9e655ed-1fd0-4170-9ca0-9b14f4e73251http://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#b9e655ed-1fd0-4170-9ca0-9b14f4e73251marezahttp://social.msdn.microsoft.com/Profile/en-US/?user=marezaExcel services external data access problem (Kerberos)<p>John,<br/><br/>Good day to you!  I have a similar problem with an OLAP data source.  In trying to solve it, I decided NOT use ODC files in a pivot report with an OLAP data source. I just wanted to use whatever data is stored in the workbook, and NOT connect to the data source.  I already disabled all refresh options, both in the workbook and in the web part. But excel services STILL queries the data source when interactivity within the workbook is used, like sorting/filtering, then the DATA REFRESH FAILED message appears. The authentication settings are already set to NONE, the save password is already checked. Below are the data connection properties, do I need to change any of the parameters?<br/><br/><em>Provider=MSOLAP.3;Integrated Security=SSPI;Persist Security Info=True;Initial Catalog=Prepaid_TopUpReport;Data Source=paps060904\dwdb01;MDX Compatibility=1;Safety Options=2;MDX Missing Member Mode=Error<br/></em><br/>Funny thing, when we were using SQLOLEDB as data provider, excel services was working fine,there is full workbook interactivity without querying the data source. Now with an OLAP source, this situation appears.<br/><br/>Thank you in advance.<br/><br/>mareza</p>Wed, 01 Jul 2009 07:44:36 Z2009-07-01T07:55:19Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#806dffdc-18e7-4cd9-9a1c-70cca4fb7ee0http://social.msdn.microsoft.com/Forums/en-US/sharepointexcel/thread/43e8d574-8f7e-4bd2-b1d4-bb52d4cbb49a#806dffdc-18e7-4cd9-9a1c-70cca4fb7ee0Spencer Harbarhttp://social.msdn.microsoft.com/Profile/en-US/?user=Spencer%20HarbarExcel services external data access problem (Kerberos)you require to trust the end user web application application pool account to delegate to the SSP Application Pool account/spn.<br/><br/>please see slide deck 2 at: <br/><a href="http://www.harbar.net/presentations/sdn2009/Kerberos2.pdf">http://www.harbar.net/presentations/sdn2009/Kerberos2.pdf</a><br/><br/>you *do not* need any computer delegation for this scenario.<br/><br/>hth<br/>s.<br/><hr class="sig">Cheers<br/>Spence<br/> <a href="http://www.harbar.net/">www.harbar.net</a><br/> Microsoft Certified Master | SharePoint 2007Thu, 02 Jul 2009 20:44:03 Z2009-07-02T20:44:03Z