Freigeben über


Access denied by Business Data Connectivity

Sometimes when you are creating and modifying External Content Types (ECT), you may see the error Access denied by Business Data Connectivity.

This blog is inactive.
New blog: EricWhite.com/blog

Blog TOC

The normal course of events when setting up an ECT is that after making sure your data source is properly configured, you use SharePoint Designer to set up the ECT.  Then, you need to give permissions to specific users and groups for that ECT.  You use SharePoint 2010 Central Administration to assign those permissions.

One problem that can produce the above error message is that modifying the ECT in SharePoint Designer clears those permissions.  If you modify the ECT in SharePoint designer, you need to go back into Central Administration and set permissions again.

Of course, you could be receiving this error because you’ve never set permissions.

The following procedure shows how to set them.

You open SharePoint 2010 Central Administration on the server that will consume the web service, and click on Manage service applications.

Then you click on Business Data Connectivity Service.

Then you select the ECT and click Set Object Permissions.

Then in the resulting Set Object Permissions dialog box, you add yourself, or someone else, or a group, or All Authenticated Users, and assign them the permissions that you want to give them.

Comments

  • Anonymous
    August 03, 2010
    Thank you! This fixed my problem! Nice Post!!
  • Anonymous
    September 07, 2010
    The comment has been removed
  • Anonymous
    March 09, 2011
    Thank you for this straightforward post.Mine disappeared, but didn't reappear until I added "All Users (windows)"in Set Object Permissions.
  • Anonymous
    September 19, 2011
    A very good post. Thank you very much.
  • Anonymous
    December 14, 2011
    Thank you So Much. It Fixed my Issue.
  • Anonymous
    February 16, 2012
    This solution worked for me too as documented in this post.  Thank you.
  • Anonymous
    March 04, 2012
    This is what am looking for. Thanks a lot for Sharing.
  • Anonymous
    April 11, 2012
    Hi,I have the same error message as JF Fustec when I tried this solution :Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.Correlation ID:8061351f-1b27-4198-b1b8-4603893011ab
  • Anonymous
    June 07, 2012
    Thank you so much! You've saved me a lot of time.
  • Anonymous
    November 11, 2012
    Thank you! This fixed my problem! Nice Post!!
  • Anonymous
    December 27, 2012
    Thanks for posting this information. You don't need to give all the users full access to the connection. read access is enough.
  • Anonymous
    May 28, 2013
    Rafael there is no "read access" in the permissions config. What are you talking about?
  • Anonymous
    November 26, 2013
    Hi I am getting this error while creating 'External Content Type' with 'WCF Service' as a data source.Please help me to solve my problem.Thank you.
  • Anonymous
    January 16, 2014
    This final step jumps up and bites me every time!  Thanks!  Exactly the solution I needed.  After ALL the other setup (SSS, BDC, SQL Server...) I always forget to go to BDC and grant perms there too!
  • Anonymous
    May 08, 2014
    Thank You! fixed my issue.
  • Anonymous
    May 10, 2014
    I followed all steps mentioned here.I am getting the following error :Exception of type 'Microsoft.BusinessData.Runtime.CannotConnectException' was thrown.Any inputs?Thanks
  • Anonymous
    July 15, 2015
    Thanks! I never added myself as to the BCS in SPO. Now I can create my ECT from SPD using my secure store credential ID!