Timeout exception and Blank orders

Discussions concerning general integration topics.

Moderator: Phil Barton

Post Reply
sjohn
Posts: 9
Joined: Thu Apr 09, 2015 10:56 am

Timeout exception and Blank orders

Post by sjohn »

Hi,

After our recent Softpro select upgrade to 4.3 last weekend we have been receiving frequent time out errors during our integration. Time out error occurs at the 5th line of code below and code execution stops but the issue we are facing is by this time an order number is generated and a blank order is generated even without calling Save method.

IOrderStore os = SPSserver.GetService<IOrderStore>()
OrderCreationSpec orderCreationSpec = new OrderCreationSpec();
orderCreationSpec.Templates.Add("RED-BK Search");
orderCreationSpec.Prefix = "RED";
IOrder newOrder = os.NewOrder(orderCreationSpec); //time out error. Code execution stops here after error but still a blank order is created


Errors – Stack trace

System.TimeoutException: The operation has timed out. (HResult: -2146233083)

Stack Trace:
at SoftPro.Select.Client.Runtime.ServerTaskHelper.Run[T](Object obj)
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()


System.AggregateException: One or more errors occurred. (HResult: -2146233088)

Stack Trace:
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at SoftPro.OrderTracking.Client.Orders.OrderStore.SoftPro.OrderTracking.Client.Orders.IOrderStore.NewOrder(OrderCreationSpec spec, IProgress`1 progressCallback, CancellationToken cancel)
at SoftPro.OrderTracking.Client.Orders.OrderStore.SoftPro.OrderTracking.Client.Orders.IOrderStore.NewOrder(OrderCreationSpec spec, IProgress`1 progressCallback)
at SoftPro.OrderTracking.Client.Orders.OrderStore.SoftPro.OrderTracking.Client.Orders.IOrderStore.NewOrder(OrderCreationSpec spec)

System.AggregateException: One or more errors occurred. (HResult: -2146233088)

Stack Trace:
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at SoftPro.OrderTracking.Client.Orders.OrderStore.<>c__DisplayClass40_0.<SoftPro.OrderTracking.Client.Orders.IOrderStore.NewOrder>b__0(Task`1 t2, Object p)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()


Please let us know how to avoid blank orders from being generated. In the past when an exception occurs before Save method the order number is discarded and we never see a blank order. This is happening only after the upgrade.
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Timeout exception and Blank orders

Post by BobRichards »

Sadly, without knowing anything about your environment and the specifics of any shell/server packages, it will be difficult to determine what is going on. However, I will refer this issue for internal review and you will be contacted if any remediation can be determined.

You might want to consider going to your SoftPro customer service representative for escalation to CSI.
Bob Richards, Senior Software Developer, SoftPro
John Morris
Posts: 411
Joined: Thu Sep 11, 2008 11:35 am
Location: Raleigh, NC, USA
Contact:

Re: Timeout exception and Blank orders

Post by John Morris »

What was the version of Select you were using prior to the upgrade?

This could be caused by a known bug in the message queue subsystem of Select. There is a fix available, but you'll need to contact support directly to make sure that's the issue and get it resolved.
John Morris
Sr. Software Architect
SoftPro
sjohn
Posts: 9
Joined: Thu Apr 09, 2015 10:56 am

Re: Timeout exception and Blank orders

Post by sjohn »

John Morris wrote: Mon Oct 02, 2017 3:39 pm What was the version of Select you were using prior to the upgrade?

This could be caused by a known bug in the message queue subsystem of Select. There is a fix available, but you'll need to contact support directly to make sure that's the issue and get it resolved.
Our previous version was 4.0.30302.1074
Current version 4.3.50811.25
tmeisinger
Posts: 75
Joined: Fri Apr 24, 2015 10:33 am

Re: Timeout exception and Blank orders

Post by tmeisinger »

We just upgraded from 4.0.30302.62 to 4.3.60108.11 and looks like we might be having the same problem. Support didn't seem to have a record of a fix for this. Can anyone offer additional information?
sjohn
Posts: 9
Joined: Thu Apr 09, 2015 10:56 am

Re: Timeout exception and Blank orders

Post by sjohn »

tmeisinger wrote: Mon Mar 26, 2018 9:08 am We just upgraded from 4.0.30302.62 to 4.3.60108.11 and looks like we might be having the same problem. Support didn't seem to have a record of a fix for this. Can anyone offer additional information?
We still have an open ticket with SoftPro for this and no resolution yet.
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Timeout exception and Blank orders

Post by BobRichards »

Select 4.3.5 had a bug where after an order is saved, it may take a brief period of time before that order's version is available from the order store. If you saved the original order then very quickly tried to open the order (your code is doing this under the covers), it may not be available and throw an exception (SoftPro.OrderTracking.Client, OrderNotFoundException).

You might want to test that the order is available by attempting to open the order as read-only. If an exception is thrown, try again after a one second delay then progressively larger delays until you reach a crazy number - like trying for a total of 30 seconds.

*** This bug is fixed in Select version 4.3.11. ***
Bob Richards, Senior Software Developer, SoftPro
tmeisinger
Posts: 75
Joined: Fri Apr 24, 2015 10:33 am

Re: Timeout exception and Blank orders

Post by tmeisinger »

Thanks for the reply Bob. Sounds like a different issue, we are having problems when trying to create a NewOrder. It is random, say 30% or 40% of the time it will timeout after 2 minutes. Same exact code will work the next time. Sometimes a couple of failures in a row and other times multiple success in a row.
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Timeout exception and Blank orders

Post by BobRichards »

Fine. I didn't know if your templates had been created recently (last couple minutes) or for a while. We had a customer that was routinely creating an order then immediately turning around and creating another order using the order as a template.
Bob Richards, Senior Software Developer, SoftPro
sjohn
Posts: 9
Joined: Thu Apr 09, 2015 10:56 am

Re: Timeout exception and Blank orders

Post by sjohn »

Thank you for the update.
What we encounter is a time out issue when trying to create a new order from a Pre-defined template.
Post Reply