Monday, January 7, 2013

SharePoint 2010 - BDC Passing Wrong Credentials

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

This error is because of the target External System (in BDC) not getting proper identity to connect. Thus if you change the Business Data Connection Authentication mechanism to BDC Identity it will work.

But sometimes  you might get following error message when you going to change the Authentication method to BDC Identity.

To Overcome this message you need to run following Power Shell Scripts in Administrator Mode.
First you need to get the list of running services.

PS > $apps = Get-SPServiceApplication

Then you need to get the correct item from this collection. In here you can use pipe ( | ) operation or you can simply increase the element Id and look what is the element  is. $apps[0] , $apps[1] … In my case it is 15. but this may differ.
You will then you need to update the RevertToSelfAllowed to true.

The following commands will do it.


PS C:\Users\shpdevadmn> $apps[15].RevertToSelfAllowed = $true
PS C:\Users\shpdevadmn> $apps[15].Update()

Thanks to Melnik and his awesome blog for the bulk of this content. I made a few tweaks but he is the true Genius!

No comments:

Post a Comment