Skip to main content


 

Symptoms


Using the K2 Designer inside SharePoint, when attempting to "Create Package" we saw the following error: 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

◦Module
◾️Scope Name: SourceCode.SmartObjects.Client.dll

◦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)
 

Diagnoses


Initially there was something wrong with the "GeneratePackage" method. (This failed in the smartobject tester tool as well) After we sent the client the latest 4.6.9 PandD cold-fix, some issues were resolved.
 

Resolution

After we applied the latest 4.6.9 coldfix, there was a still a slew of missing references that caused issues with PandD. After digging through the XML to find the issue areas and fixing the references in the process and the forms, the client was able to create a package successfully.




 
Be the first to reply!

Reply