This post has already been read 304 times!

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!)

VN:F [1.9.14_1148]
Rating: 0.0/10 (0 votes cast)

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

  1. [...] An issue I encountered when playing around is that windows authentication didn’t seem to work when trying to build a data view web part – so if you encounter this then I suggest specify your domain account in the ‘Login’ tab. See my brief post on this here. [...]

  2. Great idea, but will this work over the long run?

    VA:F [1.9.14_1148]
    Rating: 0.0/5 (0 votes cast)
    • Hamish says:

      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.

      VN:F [1.9.14_1148]
      Rating: 0.0/5 (0 votes cast)
  3. Sjokke says:

    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?

    VA:F [1.9.14_1148]
    Rating: 0.0/5 (0 votes cast)
  4. Hamish says:

    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

    VN:F [1.9.14_1148]
    Rating: 0.0/5 (0 votes cast)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>