Skip to main content


 

Symptoms


Execute SmartObject Method
 

Diagnoses


Attempting to execute a smartobject method but get this error below…I’ve not added anything yet or selected anything – I’ve selected the SO and then “Execute” and this pops up


Value cannot be null. Parameter name: s
• Type:
SourceCode.SmartObjects.Client.SmartObjectException
• Source:
SourceCode.SmartObjects.Client
• Method Base
o Member Type:
Method
o Name:
GetSmartObjectReader
o Module
 Scope Name:
SourceCode.SmartObjects.Client.dll
o 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)

I also get this one which could be related…I try to create an execute smartobject method on click of the save button but this throws an error as soon as I select the Odata source. I will say that the leave form via Odata is working fine, I tested this earlier.



 

Resolution

we noticed that the table was missing in the OData service instance and the data source, when we added the table again and refreshed the service instance the issue disappeared.




 
Be the first to reply!

Reply