Wesley Bakker

Interesting things I encounter doing my job...

Sponsors

News

Wesley Bakker
motion10
Rivium Quadrant 151
2909 LC Capelle aan den IJssel
Region of Rotterdam
The Netherlands
Phone: +31 10 2351035

(feel free to chat with me)

Add to Technorati Favorites

Solving the “Data Refresh Failed” error message.

I’m pretty convenient with SharePoint and MOSS but sometimes get bitten in the rear if I try to do something on autopilot. While working on a presentation about the combination of SharePoint and BizTalk I wanted to insert an Excel sheet in SharePoint to show some BAM data. This is simply a cube on analysis services. After doing all the stuff I normally do I expected all to work but BOOM!:

Data Refresh Failed

Oh no! Let’s go through the steps again.

The standard steps to perform

  1. Use STSadm to configure the use of delegation
    SetDelegation
  2. Create a Data Connection Library and Report Library
    CreateLists 

  3. Configure the SharedServiceProvider to trust my Data Connection Library
    TrustDataConnectionLibrary
  4. Configure the SharedServiceProvider to trust my Report Library
    TrustFileLocation
  5. Create a Data Connection with Excel
    CreateDataConnection
  6. Export the Data Connection
    ExportDataConnection
  7. Save the Data Connection File to our trusted library and approve it
    SaveDataConnection
  8. Create an Excel sheet using the connection file from the library
    SetDataConnection
  9. Design and publish the sheet to our trusted file location
    PublishedSheet 

But still it doesn’t work. I can use the connection from the library in Excel. I can view the sheet, but I can’t update the connection!

How come it doesn’t work!

Viewed the SharePoint logs. Nothing in there. Viewed the event viewer. Nothing in there.

Hmmm… lets use SQL server profiler to see if we actually get to login to the database. Strange, I don’t see a trace for Audit login when I try to connect. Ok this tells us that it’s a SharePoint issue at first.

Ok, maybe it’s permissions. Allowed all authenticated users “Full control” to both the data connection library and the excel sheet but this is not the issue. Didn’t think it would be cause View rights are enough but ok. What else?

I forgot something!

Going through a walkthrough can sometimes lead you to a forgotten step. If you decide to do a walkthrough please don’t be ignorant and perform and check each and every step and don’t skip one because you think you’ve done it correctly. The walkthrough I used is the Plan external data connections for Excel Services its a great resource which explains a lot of the details of Excel Services. I almost decided to skip the first step but fortunately I didn’t.

The first step tells you to go to the ‘Trusted data providers’ section and add your provider. I never had to do that before because this library contains most of the standard data providers already.

DefaultTrustedDataProviders

This time however I was developing all this on Windows Server 2008 with SQL Server 2008 and as you can see in one of the images above(step 6 and 8) we use the MSOLAP.4 provider and that’s not in there!!!

After searching for all this time it was just a matter of adding the data provider name to the trusted data provider library and it al worked like a charm!

AddTrustedDataProvider

 

 

Conclusion

I do hope this story / walkthrough is of any help to y’all. I took me quite some time to figure out. Next time I’ll definitely take all steps in a walkthrough!

Cheers,

Wes

Comments

Solving the ???Data Refresh Failed??? error message. - Wesley Bakker said:

Pingback from  Solving the ???Data Refresh Failed??? error message. - Wesley Bakker

# March 6, 2009 7:07 AM

Brad Bruno said:

Thanks for this post!!  I had the same exact issue and was beating my brain on this one.  I am not that crafty with Sharepoint so it was that much more challenging.  So a BIG   T H A N K S!!!

# April 7, 2009 2:26 PM

Amit said:

I have same issue but coundn't able to resolve..I have followed all step but still getting Refreshing problem..Could any one help me i want the cube data on excelservice without kerbarose setting..!!!

# May 13, 2009 3:55 AM

webbes said:

@Amit: There is no workaround for sharepoint using delegation without kerberos between two servers! If you do not have your sql server services and excel services hosted on the same machine you can only use delegation if kerberos is enabled. Period.

So my question to you is, are both services running on the same machine? Or is sql server running on a different machine?

Cheers,

Wes

# May 13, 2009 7:18 AM

Tony Antonaccio said:

Thank you *so* much for posting this. We probably would have spent days in vain trying to fix this without your guide.

# June 12, 2009 1:39 PM

Kauey said:

You're my hero... many many thnx...

I think your post is the very only that really explains how to solve it.

Congratulations, and thanks again!

# August 25, 2009 1:30 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)