Skip to main content


 

Symptoms

 


Specified cast is not valid.
 

 

Diagnoses

 


Issue: When the user is trying to use K2 and set a list to an Appit app they get the following error. Specified cast is not valid 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(BrokerSmartObject brokerSmo, SmartObjectBrokerMetaData brokerMetaData, Boolean outputDependencies, SmartObjectClientServer smoClientServer, Queue`1 soInstances) at SourceCode.Forms.AppFramework.FormRuntime.WorkXmlToApi(BrokerPackageCollection packages, SmartObjectClientServer smoClientServer) at SourceCode.Forms.AppFramework.FormRuntime.WorkXmlToApi(Stream input, Stream output) at SourceCode.Forms.Runtime.AJAXCall.ProcessRequestInternal(HttpContext context)
 

 

Resolution

Known issue and ticket has been linked to existing TFS item. Send the following steps to the customer to resolve the issue: If the users Oauth token is expired and it attempts to refresh the error is surfaced. To resolve this issue do the following:

 

 

 

1. Delete the Microsoft Online token from the K2 Management site for the problematic user. To access K2 Management: SharePoint site collection andgt Site Contents andgt K2 Appit for SharePoint andgt K2 Management andgt Authentication andgt OAuth andgt Tokens

 

 

 

2. As the user, access any view, it will prompt for re-auth

 

 

 

3. After authorization is successful, the view will load without any errors

 

 



 
Be the first to reply!

Reply