Skip to main content

Dear,

 

I am getting the attached  error while configuring the k2 for SharePoint App (step : SharePoint Service Broker).

 

I check the event viewer , i find the below error : 

 

10702 An error occured in the SharePointIntegration service instance. Object reference not set to an instance of an object.

 

For troubleshooting I performed the below actions :

 

  • Repair K2 blackpearl
  • Repair the K2 smart form
  • Repair the K2 for SharePoint setup on all SharePoint servers and K2 servers
  • Redeploy the K2 for SharePoint App (AppDeployment.exe) on the front end servers.

 

 

Environment Details :

- 2 servers dedicated for k2 load balancer

- 2 SharePoint web servers

- 2 application servers

- 2 servers dedicated for seach service

- K2 version : k2 blackpearl 4.6.7

- SharePoint 2013 SP1

 

 

Below the full error details : 

 

Object reference not set to an instance of an object.
• Type:
SourceCode.SmartObjects.Client.SmartObjectException
• Source:
SourceCode.SmartObjects.Client
• Method Base
Member Type:
Method
Name:
ExecuteScalar
o Module
Scope Name:
SourceCode.SmartObjects.Client.dll
o Declaring Type
Full Name:
SourceCode.SmartObjects.Client.SmartObjectClientServer
• Stack Trace:

at SourceCode.SmartObjects.Client.SmartObjectClientServer.ExecuteScalar(SmartObject smartObject, DataTable inputTable)

at SourceCode.Forms.AppFramework.FormRuntime.SmartObjectExecution(XPathNavigator nav, Boolean outputDependencies, SmartObjectClientServer svr)

at SourceCode.Forms.AppFramework.FormRuntime.WorkXmlToApi(String xml)

at SourceCode.Forms.Runtime.AJAXCall.ProcessRequest(HttpContext context)

 

 

 

 

 

 

 


16921iC48757DDCD6EE629.png

Hello,


 


From the point of failure, it looks like it might be having issues with your Token Issuer.


 


You can run the following two commands to understand what K2 is looking for at that point:


 


Command #1:  Get-SPTrustedSecurityTokenIssuer


 


Command #2: $c = Get-SPServiceContext -Site "http://<SharePointURL>.com/Get-SPAuthenticationRealm -ServiceContext $c


 


The Security Token issuer should come out as a GUID, of which K2 is looking for.  If you have modified it to something like a name...it will fail.



David


Reply