Code Fix: When running a sync on an ADFS provider, multiple errors are logged

  • 16 February 2021
  • 0 replies

Badge +9

Code Fix: When running a sync on an ADFS provider, multiple errors are logged


K2 Five 5.4


Issue Description

When you run a sync via the Sync Engine on an ADFS provider, multiple errors are logged in the Host Server log file relating to SharePoint.

Error Message

The following error message is an example of the errors logged in the Host Server log file:

1317083","2020-07-08 11:30:44","Error","General","0","ErrorMessage","1","0 SharePointRoleProvider.GetGroups: System.Reflection.TargetInvocationException: An unexpected failure was encountered when contacting SharePoint to get information from the group provider App Catalog: Group cannot be found. ---> System.Exception: Group cannot be found. at SourceCode.SharePoint15.Client.CSOMFunctions.GroupFunctions.LoadGroup(Group group, Boolean throwException) at SourceCode.SharePoint15.Client.CSOMFunctions.GroupFunctions.GetUsersForGroup(String name) at SourceCode.Security.Providers.SharePoint.Shared.SPCsomClient.SourceCode.Security.Providers.SharePoint.Shared.ISPGroupProviderClient.GetGroupMembers(String groupName) --- End of inner exception stack trace ---","anonymous","","SA-LABSDLX:C:Program Files (x86)K2 blackpearlHost ServerBin","1317083","a9e0b0ffa0724b3aa0bed4e228dbf177","".


The fix is available in the following K2 versions:

K2 4.7 December 2019 Cumulative Update K2 Five (5.0) December 2019 Cumulative Update K2 Five (5.1) November 2018 Cumulative Update K2 Five (5.2) May 2019 Cumulative Update K2 Five (5.3) April 2020 Cumulative Update K2 Platform Classic(5.4)
X X X X X Fix Pack 14
  1. Ensure you have the correct K2 version and/or Cumulative Update installed. See KB001893 to see what Fix Pack level you have installed.
  2. Download the latest Fix Pack using the links in the table above for the version you require.
  3. Install the Fix Pack to apply the fix.


After installing the Fix Pack a new message entry is available in the HostServer.logging.config file:

<Message MsgID="64020" Severity="Error" Category="64" Name="SharePointGroupProviderSyncEngineMessage">

The Severity will be set to “Error” by default. If you do not want the errors to be logged in the Host Server log file, you need to set the Severity to “Info”. In the HostServer.logging.config file, search for message ID 64020 and change the Severity as below:

<Message MsgID="64020" Severity="Info" Category="64" Name="SharePointGroupProviderSyncEngineMessage">

See KB002707 for more information on Identity Synchronization and Caching



0 replies

Be the first to reply!