Non-specific error trying to get the data source – REST and SP2010.

I’ve been playing with the REST protocol in SP2010 to bring in data from external lists (external to the site collection) and using it to display the result in the data view web part (DVWP).

Creating the data source went smoothly but when I tried to use it in the DVWP it threw the following unhelpful error.

“The server returned a non-specific error when frying to get data from the data source. Check the format and content of your query and try again. If the problem persists, contact the server administrator.”

I checked the service in the browser and it was working fine – so a quick investigation identified authentication as the problem. I went back to the data source and forced the service to  use my domain account instead of the default windows authentication provider.

As soon as the authentication was forced and I refreshed my data connection – the DVWP pulled everything through perfectly.

This issue seems to be with SP Designer not recognising your domain account when using windows authentication. This work-around will do the job – although it must be pointed out this method sends your credentials unencrypted in the call. Not the type of thing you would put into a production environment but will at the very least get you up and running with REST services inside SharePoint 2010.

More to come on this topic soon, specifically around potential uses of the service and a detailed walk through (time permitting as always!)


5 thoughts on “Non-specific error trying to get the data source – REST and SP2010.

  1. Pingback: Referencing lists from external site collections – Cross-site collection lookup with REST and the DVWP! « SharePoint-ers..

    • i would tend to a fix will be released soon enough – or someone will realize the cause of the error and point out what we did wrong.. i shall keep a look out for any news on the issue and keep you updated.

  2. Hi

    Thanks for the tip. This worked fine for one day but today I receive the error again. I tried to change the authentication but none of the options seem to work.
    None of the data source connections seem to work
    Any idea what might be the problem?

  3. I found that occasionally the authentication reset itself back to default (or someone else did for me). This might be a silly question, but is it the correct data source? In SharePoint designer the data-sources are relative to the current site and I often found myself editing the wrong data-source and wondering why it wouldn’t work – only to find it was a sub-site’s connection with a similar setup.

    Failing that – are you still able to open the service in a web browser – if you can authenticate through the browser perhaps its another issue in SPDesigner.

    Hope that helps

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s