I am having issues with sharepoint K2 integration lately. But I managed to reslove all the issues except for one, after I uninstall and re-install K2 app in site collection.
My only issue currently I am having is, whenever I upload a document in library my workflow which supposed to kick off is not working. Other Sharepoint smartobjects were able to communicate with that library and i am able to execute all the methods successfully on that Library.
When I looked at hostServer logs, I got the below:
0 SharePointRoleProvider.GetContainers: System.Reflection.TargetInvocationException: An unexpected failure was encountered when contacting SharePoint to get information from the group provider "My Group Name": Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at SourceCode.Security.Providers.SharePoint.Shared.SPCsomClient.SourceCode.Security.Providers.SharePoint.Shared.ISPGroupProviderClient.GetContainers(IEnumerable`1 identities)
--- End of inner exception stack trace ---
I looked at HostServer.Groupprovider table and everything looks fine.
Sharepoint Version : Online
K2 - 4.7
Any suggestion/Solution is appreciated.