Search found 75 matches

by toddsou
Fri Apr 06, 2018 8:56 am
Forum: General
Topic: lookupService.ApplyChanges(lookupTable) --> how many changes in bulk is reasonable ?
Replies: 5
Views: 1586

Re: lookupService.ApplyChanges(lookupTable) --> how many changes in bulk is reasonable ?

Hey Mike-

Consider the case where we buy another firm. We would want to import all those new Contacts.

-Todd
by toddsou
Thu Apr 05, 2018 3:30 pm
Forum: General
Topic: orderStore.NewOrder(spec) timeout exception
Replies: 5
Views: 1588

Re: orderStore.NewOrder(spec) timeout exception

Hi Bob- The exception caught is a System.AggregateException with a count = 1. Its stack trace is the following: at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at System.Thread...
by toddsou
Thu Apr 05, 2018 11:30 am
Forum: General
Topic: lookupService.ApplyChanges(lookupTable) --> how many changes in bulk is reasonable ?
Replies: 5
Views: 1586

lookupService.ApplyChanges(lookupTable) --> how many changes in bulk is reasonable ?

Hello- It is my understanding that every time I call lookupService.ApplyChanges(lookupTable), the server will insert any new rows, update any edited rows, and remove those that are so indicated from the corresponding SPS Lookup table. After it finishes all that, I assume it kicks off a job to re-ind...
by toddsou
Thu Apr 05, 2018 11:03 am
Forum: General
Topic: orderStore.NewOrder(spec) timeout exception
Replies: 5
Views: 1588

orderStore.NewOrder(spec) timeout exception

Hello- I have a stand alone console app which uses the SPS SDK (4.3.5). I am basically trying to clone an order, using the following code. However, I frequently get an exception thrown when I call os.NewOrder(spec) due to a timeout. Typically, clients can control timeouts whether it be an ado.net co...
by toddsou
Fri Mar 30, 2018 3:09 pm
Forum: General
Topic: Hosting Custom Order Rules in my own SPS API application
Replies: 3
Views: 905

Re: Hosting Custom Order Rules in my own SPS API application

Thanks for the reply, Bob. I'm hunting a memory leak attributed to the spssvc.exe, and suspect it is either one of our server packages or one of our CORs. I have put some long-looping test harnesses around the server packages' logic routines and the memory usage held steady so I feel fairly confiden...
by toddsou
Mon Mar 26, 2018 1:49 pm
Forum: General
Topic: Cloning an order results in OperationCanceledException
Replies: 3
Views: 839

Re: Cloning an order results in OperationCanceledException

Hi Bob- I did as you recommended. And once I finished putting the last COR back in place, the code worked fine, which I did not expect. Does order of execution come into play here? That is, if two CORs subscribe to the same event, is there any guarantee wrt order of execution? (e.g., First module li...
by toddsou
Mon Mar 26, 2018 1:36 pm
Forum: General
Topic: How/When are CORs loaded & executed ?
Replies: 3
Views: 865

Re: How/When are CORs loaded & executed ?

Thanks for the info, Bob.

Can you elaborate on the lifetime of the CORs IronPython interpreter/engine during these events?

Is a new engine created with each order? Or is a single instance of it reused during a SPS session ?

Regards,
Todd
by toddsou
Fri Mar 23, 2018 10:12 am
Forum: General
Topic: How/When are CORs loaded & executed ?
Replies: 3
Views: 865

How/When are CORs loaded & executed ?

Hi- I'm looking for a memory leak, and I suspect one or more of our Custom Order Rules. In order to understand how the hosting script engine and scope are created, used, and disposed within Select, can you elaborate on the timing of when things happen? Is one engine created per Select Session ? Is o...
by toddsou
Fri Mar 23, 2018 9:18 am
Forum: General
Topic: Cloning an order results in OperationCanceledException
Replies: 3
Views: 839

Cloning an order results in OperationCanceledException

Hello, I am basically trying to clone an order. However, the call to ApplyChanges throws an exception. In the catch handler, I break on the call to GetMessages() and interrogate the result via the msgs variable. There is only one entry in the Messages list. In the Immediate Window I see the followin...
by toddsou
Tue Mar 20, 2018 11:59 am
Forum: General
Topic: Hosting Custom Order Rules in my own SPS API application
Replies: 3
Views: 905

Hosting Custom Order Rules in my own SPS API application

Hi- As you know, Select offers users the ability to build Custom Order Rules using Iron Python. These rules can affect the behavior seen by the end user for such things as field validation, default values, to name a few. I want to build a small c# console app using the SPS SDK and allow it to also h...