Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

CRM 2011 - an error occurred when verifying security for the message using ExecuteMultipleRequest in parallel

$
0
0

Hi all,

Just having a bit of a problem with the following and I am hopping someone can point me in the right direction.

code template

 Parallel.ForEach(listCollection, batchConfig, item =>{var results = crmService.ExecuteMultiples(item, true, true);});

where listCollection is a collection of deleterequests and batchConfig the number of threads to execute in parallel.

ExecuteMultiples is issuing a (ExecuteMultipleResponse)this.serviceProxy.Execute(request) for the item supplied on the call

 

Issue is that depending on the combination of threads/requests per thread I get an exception

{"The HTTP request to 'http://crmserver:xxxx/CRM/XRMServices/2011/Organization.svc' was aborted.  This may be due to the local channel being closed while the request was still in progress.  If this behavior is not desired, then update your code so that it does not close the channel while request operations are still in progress."}
with an inner error of
"An error occurred when verifying security for the message."

 

in all cases I am processing 10 000 records split as follows

5 threads, 1000 requests per thread - works fine all 10k requests processed

10 threads, 500 requests per thread - works fine all 10k requests processed

10 threads, 1000 requests per thread - fails with error above - only 6000 requests get processed

15 threads, 500 requests per thread - fails with error above - only 6000 requests get processed

other combination I tried got me to 6184 requests processed after failing with the same error.

 

It seems that a limit of some kind is reached when executing all these requests but I can't seem to find which limit could be after searching the net so if anyone could help it would be great


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images