Skip to main content


 

Symptoms


When executing the Get List method and error appears:
 

Diagnoses



You have a list consuming a content type from a content type hub.
A change was made to one of the choice fields of this content type (an extra value added) and two fields were added to the list.
The smartobjects for this list was regenerated after the changes, but since then, every time we execute the Get List Item by ID method it fails with the following exception:
Value does not fall within the expected range.
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)
 

Resolution



You not need the extra reference column so it was removed from the content type hub site column and then from the list as well.
We refreshed the SmartObject and after that all the calls were working as expect
 




 

Hi,

I am getting this error on Create List ITem. How to refresh SmartObject?

 

Thanks


Reply