Skip to content

Requests freezing on PostProcessing and Validated

I’ve had a head scratcher in the last week. A Dev environment, everything thought to be working perfectly according to the tests we’d done so far, which had just involved a few identities at a time. But then we tried to do some bulk tests, registering 300 people at once, and things did not go well. It would get through 20 or 30 of them and then the requests queue just seemed to freeze. The Portal was still responsive but the number of requests sitting in PostProcessing and Validated status did not change, even when left overnight.

I thought it had something to do with the “Generate Unique Value” custom workflow I was using. I was generating unique values for both AccountName and MailNickname, with checks against both the Portal and AD. A lot of the requests seemed stuck on one of these steps. I replaced the workflow with a PowerShell activity – but exactly the same thing happened.

The Problem

I’ll go straight to what the root problem was, and I had to get some help from Microsoft for this – the problem is trying to query the FIM Service database for uniqueness while at the same time updating exactly the attribute it is trying to query. So I’m doing hundreds of queries like “/Person[AccountName=’value’]” while at the same time updating AccountName on multiple objects. Effectively my query is trying to hit a moving target, and the result is SQL deadlocking.

Now why it got itself in such a mess it had to stop so completely I don’t know, and the low spec of the Dev servers probably didn’t help (though the problem still occurred after we had the RAM increased on both FIM and SQL servers).

The Solution

The solution, for me anyway, is not to generate unique values in the Portal but go back to my tried and tested method of doing it as part of classic rules extensions with a lookup against the Metaverse and AD. This was supposed to be an all Declarative design, but if the result is a risk of deadlocking then the provisioning Sync Rule, at least, has had to go.


Some observations:

  • Restarting the FIM Service would get the queue moving again, but just for a short while then it would freeze again.
  • Restarting both the FIM Service and SQL had a better result in getting things moving – presumably because all the deadlocks disappeared.
  • There was a mysterious KeyNotFoundException error in the Event Log that I’d been seeing for a while and it never seems to correspond to any errors in the Portal.
    • This turned out (thanks to Jeff who commented below) to be a bug caused by not implementing the new HideAdvancedSearchLink attribute a binding as described here: It had nothing to do with the requests queue freezing.

Here are some events I noticed when I turned on Verbose logging:

Level: Information
RequestDispatcher is processing RequestIdentifier ‘f3d76d22-6c6c-4a51-b3ef-85d2e76966c1′ for a ‘Enumerate’ operation on object ” with RequestStatus ‘Authorized’.

Level: Information
WS: Action.Enumerate.Execute.Enter

Level: Information
Query: QueryProcessor.ExecuteQuery.ExecuteReader.Enter

Level: Information
Request ‘f3d76d22-6c6c-4a51-b3ef-85d2e76966c1′ status was updated in-memory from ‘Authorized’ to ‘Denied’.

Level: Information
RequestIdentifier ‘f3d76d22-6c6c-4a51-b3ef-85d2e76966c1′ exited RequestDispatcher with RequestStatus ‘Denied’.

Level: Information
WS: Enumerate:UnwillingToPerform

{ 2 } Comments

  1. Jef | April 9, 2014 at 10:40 pm | Permalink

    Just curious, did this resolve your Mystery “KeyNotFound” error? If not, are you running 4.1.3496 without the HideAdvancedSearch Binding?

  2. Carol | April 9, 2014 at 11:29 pm | Permalink

    Hmm I am running that version and I have not enabled HideAdvancedSearch. Can that cause those errors? I don’t actually want to hide the advanced search. I can see the errors are still appearing – I’d have to re-enable Verbose logging to see if those Enumerate:UnwillingToPerform ones have gone, which sounded like they were more related to the uniqueness search. I haven’t had any more frozen request queues at least.

Post a Comment

Your email is never published nor shared. Required fields are marked *

Spam comments will be blocked by Akismet


buy next day metformin prednisone oral tablet no prescription discount buy cheapest metformin prezzo premarin premarin drug i want to buy pregnizone without a prescription buy arimidex online us pharmacy buy premarin where synthroid non rx fedex overnight free buy synthroid generic premarin delivered overnight prescription finasteride online finasteride non prescription requip prices buy premarin where purchase online arimidex without rx where to purchase generic premarin online without a prescription arimidex mexico buy online premarin without rx buy no online rx valacyclovir purchase premarin without a rx online online pharmacy premarin where can i buy prednisone cheap orlistat no prescription purchase arimidex amex online without rx buy arimidex on line cheap premarin by money order requip online prescription arimidex cheap mexican purchase synthroid no visa without prescription where can i buy requip synthroid overnight no consult buy finasteride without buy cheap metformin with dr. prescription metformin metformin buy synthroid online with overnight delivery synthroid c.o.d. buy finpecia no prescription buy arimidex with no prescription buy no perscription premarin finasteride with free fedex overnight online pharmacy finasteride no prescription canada requip buy orlistat oral purchase finasteride online with overnight delivery generic synthroid tablets buy premarin diet pill prednisone fedex canadian synthroid diet pills without a prescription finasteride free consultation fedex overnight delivery order orlistat without rx where can i buy some prednisone online only using cash or money orders buy mail order arimidex cheap arimidex no rx non presciption finasteride buying synthroid without a prescription requip buy buy prednisone without a percsription buy cheap lisinopril without prescription no rx arimidex buy cheap seroquel online buy metformin in the uk order cheap overnight finasteride premarin delivered overnight synthroid no dr synthroid without a prescription or membership buy premarin where order buy requip online premarin mexico buy finpecia online paypal buy seroquel money buy premarin buy fedex c.o.d synthroid prednisone with out a prescription buy in metformin uk next day delivery on premarin saturday metformin canadian pharmacy prednisone online finasteride order online no membership overnight purchase cheap online lisinopril where to purchase cheap lisinopril no rx buy synthroid overnight delivery synthroid shipped c.o.d. buy prednisone no prescription valacyclovir requip