SharePoint Use Cases

06 Sep, 2007

Excel Services – Data refresh failed

Posted by: Toni Frankola In: SharePoint  Bookmark and Share

I had a lot of trouble with Excel Services. I wanted my Excel file to refresh data from SQL database. However, the following error appeared constantly:

Unable to retrieve external data for the following connections:

Connection_Name

The data sources may be unreachable, may not be responding, or may
have denied you access.

Verify that data refresh is enabled for the trusted file location and
that the workbook data authentication is correctly set.

Here are a few tips you should consider to fix this:

1) Make sure you have created Excel files as in tutorials on: http://office.microsoft.com/en-us/excel/HA102203821033.aspx
2) Make sure you are using SSO authentication, this is the best way to retrieve data. To learn how to setup SSO for Excel services check article above
3) If you have changed the URL of your site, make sure that you make proper adjustments to your trusted locations list (URL of your site will not be changed automatically)

I did everything (as described above) and my Excel files still reported error. I finally gave up on SSO and reverted back to hardcoded connection string with SQL authentication. I know my solution is not the best one, but it works. I was not able to solve this problem by the book because there is no information in SharePoint logs (Event log, SharePoint logs) that would tell me a little bit more about the error causes.

I know my SSO configuration works since I am using the same SSO application for BDC. Excel services are configured properly since data is refreshed when connection string is hardcoded.
Did you encounter similar error and how did you solve it?



Documentation Toolkit for SharePoint

Comments

1 | http://

June 30th, 2008 at 8:33 pm

Avatar

I have the exact same issue and I have done everything by book, even reviewed the ten tutorials. I still get the same error. I tried hard coding user / password but I still get the same error.

Do you have any new news on this?

2 | Jürgen

January 22nd, 2009 at 6:43 am

Avatar

Had the same issue- take a look at
http://msdn.microsoft.com/en-us/library/cc514223.aspx

used this cmdline statemant: stsadm -o set-ecssecurity -accessmodel delegation -ssp sspname

restartet the IIS and-o wonder it worked

3 | Excel Services - Data refresh failed - Sharepoint Use Cases

January 26th, 2009 at 3:16 am

Avatar

[...] Services – Data refresh failed This blog has moved. Click here to open the new [...]

Comment Form


About

Real-life use case and opinions about collaboration, CRM and web technologies and stuff by Toni Frankola. More...

Toni Frankola - SharePoint MVP Profile

All postings on this blog are provided "AS IS" with no warranties, and confer no rights. All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer.

Page optimized by WP Minify WordPress Plugin