Dears,
Hope this finds you well.
I am getting the error "thread was being aborted". This happens exactly where i am trying to scan some customers names using a SOAP consumed service (The SOAP service includes some other external services as well from the vendor side that gives us the result after scanning).
I have tried both synchronous and Asynchronous methods for scanning the names and below are results:
Please note, the names are passed to the service using a loop, and each next name is passed when we successfully receive the result earlier passed name.
Appreciate any help or suggestion regarding this.
Kind regards
Osama Hassan
Hi Osama,
It's impossible to tell what goes wrong and where with so little information. "Thread was being aborted" is a very general error message that gives zero clues on what goes on.
For starters, what does "scanning a customer name" even mean? What kind of "scanning" are you doing? And what exactly does the SOAP service do? Is it the SOAP service that does the "scanning"? How much time does this "scanning" take? Are you calling the SOAP service in a Timer or in a Screen Action?
Hi Kilian,
Thanks for the time.
Scanning a customer name means name screening, which is done by a external service used inside the Exposed SOAP service.
The name screening is to check whether the customer is a blacklist or wanted person.
The scanning takes around 67 secs max and it also varies, the least is 7 secs.
I am calling the SOAP service in the server action.
Hope this clears your doubts.
thanks
67s is indeed a long time, even if the average might be less. My advise is to do the scanning in a timer, and keep track of the names already scanned, so you can restart the timer after a while (say 10 or 15 minutes, if the timer's timeout is set to 20). Also make sure you set the SOAP method's "Timeout in Seconds" property long enough (though the default is 100, so that should be enough if 67s is the longest it'll take).