Skip to main content


 

Symptoms


K2 Form Viewer App Part - Object ref error when getting list of Forms
 

Diagnoses


After you add the K2 Form Viewer App Part, I get 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: GetSmartObjectReader

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

◦Declaring Type
◾️Full Name: SourceCode.SmartObjects.Client.SmartObjectClientServer

•Stack Trace:
at SourceCode.SmartObjects.Client.SmartObjectClientServer.GetSmartObjectReader(SmartObject smartObject, ExecuteListReaderOptions options, Dictionary`2and propertyReference)

at SourceCode.SmartObjects.Client.SmartObjectClientServer.ExecuteListReader(SmartObject smartObject, ExecuteListReaderOptions options)

at SourceCode.Forms.AppFramework.FormsApiToXml.ToXmlList()

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)


It looks like this comes from the 'SharePoint Intergration Helper Methods' smo, GetForms method. You get the same error when executing this method in the SMO Tester tool.

Within the event viewer the following is stated:

14003 Unable to get Categories, ERROR: Category with system id '1' could not be found





 

Resolution

This issue persists on 4.6.6. an upgrade to 4.6.7 will resolve this issue as it is fixed within this version of K2.




 
Be the first to reply!

Reply