April 09, 2012

Looback errors on SharePoint server

While testing a migration from one SharePoint server to another I was noticing several various errors that may all be attributed to the same problem.  The underlying configuration is the default zone URL is a dns alias.  Errors:
  • Nintex Workflow returns "Error returned from server: The remote server returned an error: (401) Unauthorized. The workflow is starting another workflow which saves attachments on a list item to a document library.
  • In the IIS log there are several 401 errors at the time of the workflow but no username.
  • The SharePoint Server Search has error ID 14 in the event log which is the SharePoint URL cannot be crawled.  The same errors can be found in the Crawl History for the Search Service Application (Central Admin --> Application Management --> Manage Service Applications).
After creating and setting the registry key DisableLoopbackCheck (DWORD) = 1 at HKLM\SYSTEM\CurrentControlSet\Control\Lsa\ (see Microsoft Support Article 926642 for specific steps):
  • Search no longer errors trying to access the local SharePoint sites (there are errors trying to access specific files).
  • Workflow does not error when trying to call the second workflow.