2

I would like to display some data from an XML feed in SharePoint. I have set up the XML viewer web part and it works nicely in SharePoint 2007. However in SharePoint 2013 using the same files, I get this error:

Cannot retrieve the URL specified in the XML Link property. For more assistance, contact your site administrator.

I have tried to enable anonymous access to the SharePoint site, but it did not make any difference.

Any ideas?

1
  • Where is your XML feed located? Inside SharePoint or outside? Can you reach the URL from the browser directly? Commented Jul 4, 2013 at 13:16

1 Answer 1

1

We had a similar issue: If I am not mistaken, if you use XML Viewer Web Part and indicate a URL for the feed latter is not loaded on client side, i.e. not within the user's context. The server will try to fetch the feed that is if the target page is not public but needs authentication this hits you; Try to access your URL outside Single Sign On (SSO)/Integrateed Windows Authentication (IWA) e.g. using a different browser (Firefox/Chrome) not set up of IWA; if you cannot access it SP most probably also won't be able to.

Solution: Load and display the feed via custom JavaScript on the client (Web Part > Media and Content > Script Editor) or have SP be allowed to access the feed (e.g. via its IP). Be aware though that if such a source needs authentication in the first place the content most probably will also be different for different users so first approach using the user's context might be preferable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.