While execution of smartobject getting an error ""Exception of type 'SourceCode.SmartObjects.Client.SmartObjectException' was thrown.""
I have done following things:
1) Created Service object from SAP method.
2) Depends upon service object created smartobject.
3) This smartobject trying to execute in the asp.net codebehind but giving an error.
SourceCode.SmartObjects.Client.
smartObject.ListMethods[0].InputProperties[
{
}
Is anybody aware of this issue?
I wanted to also add myself to the list of those experiencing this exception (Exception of type 'SourceCode.SmartObjects.Client.SmartObjectException' was thrown.). I haven't found a solution to it. In my case, the code snippet below is trying to execute a "List" method that is referenced by the "Broker" smart object. The implementation of this List method is done via a custom smart object service instance that I successfully configured in the BrokerManagement app on the K2 server. I also able to successfully reference the service's method from the Broker smart object method wizard in the designer. No compile time errors. Any ideas on how to troubleshoot? Thanks.
server.CreateConnection(); server.Connection.Open(connStr.ToString());
SmartObject smartObject = server.GetSmartObject("Broker"); smartObject.MethodToExecute = "List";
SmartObjectList smoBrokers = server.ExecuteList(smartObject); // throws exception on this line
foreach (SmartObject smo in smoBrokers.SmartObjectsList) { Broker b = new Broker(); b.ID = Convert.ToInt32(smo.Properties["ID"].Value); b.Name = smo.Properties["Name"].Value; brokers.Add(b); }
Do you have any resulotion to this? I am also having the same issue.
VijayKumar Yadavalli
Cheers, SteveThe statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
Hi SteveB your Prophecy came true!!!!!!
Thanx a Lot Steve; it really helped me.
Many thanks
Bashar Adas Bashar_Adas@hotmail.com