DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I trap a time out error on DataFinder

Greetings

 

I need to trap a time out error coming from datafinder.

 

I tried vbs "On Error" but the Err.Description I get is  "The  operation Search was timed out".

.

If I manually set the same query  on the GUI I get results back, but when using code on a long list of queries, sometimes I get a time out error and it stops the process.

 

I want to capture this error and proceed to the next query but I would also like to have some more details.

 

I am aware that I can tweak the timeout settings on the datafinder to increase the time, but the real problem I am chasing is a linear time increase I am observing on a list of thousands of queries.

 

They start fast but I am observing a small increment of time added on each subsequent query and eventually it adds up to the point it returns the timeout error. 

The process takes many hours before I get an error, if any, so I would like to get as many details as possible. 

 

Is there any other way than using  "On Error Resume Next" that would give me more details?

 

Also, has this linear time increase been observed before?

 

Thank you

 

Jose A Rafols

ETS - Software Engineer

Honeywell Aerospace of Puerto Rico Inc.

San Antonio Industrial Park

Road #110 North Km. 5.9

Aguadilla, PR 00604

0 Kudos
Message 1 of 3
(4,904 Views)

What kind of details would you want to receive, except that a timeout error has occurred?

 

Have a nice day,
Eva

0 Kudos
Message 2 of 3
(4,895 Views)

Hi Jose,

 

This isn't an answer to the question you're asking, but it might still help.  DIAdem 2015, which is in Beta right now, has a new query mode that returns only the desired property columns from a query-- not all properties (and parent properties) regardless of what's displayed.  This new query mechanism enables you to greatly exceed the old 32000 search result limit, and it generally runs something like 5x to 10x faster than the regular query method.  It's possible that with this new approach you could avoid altogether the timeouts you're currently struggling to trap.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 3 of 3
(4,801 Views)