Help with UniquenessValidationXPath for a text field in RCDC
Hello, Whats the best way of checking for the uniqueness of the value provided in a textbox; in such a way that the filter ignores the current object being modified? Currently, I am using the filter: <my:Property my:Name="UniquenessValidationXPath" my:Value="/Group[MailNickname='%VALUE%']" /> The following steps might help understand my question better: Create a static group. The filter provided above works like a charm and it makes sure that the Group's Alias provided is unique Then try to edit that group that got created in step 1 Even if the Alias of the group is not being edited, FIM complains that the Alias of the group being edited is not unique Ofcourse it wont be unique as it is not eliminating itself when checking for uniqueness I have also tried using the filter: <my:Property my:Name="UniquenessValidationXPath" my:Value="/Group[DisplayName!='%Name%' MailNickname='%VALUE%']" /> . No change in the experience though. Any thoughts/ideas? Thanks & Regards, Jameel Syed Principal Consultant, fimGuru - Your window into simplified identities jameel.syed@fimguru.com - http://www.fimguru.com
April 14th, 2010 12:42am

Hi Jameel, Uniquenes check in RCDC is supported only on Create Mode for current RTM version. It does not work effectively in edit mode as you pointed out. Thanks, Sri
Free Windows Admin Tool Kit Click here and download it now
April 14th, 2010 10:32am

Thanks for your help Sri. Is the support for Edit mode expected sometime soon?Thanks & Regards, Jameel Syed Principal Consultant, fimGuru - Your window into simplified identities jameel.syed@fimguru.com - http://www.fimguru.com
April 16th, 2010 1:19am

It works, it's just that the current documentation doesn't explain how to make it work. Here's an example of the property defined on the DisplayName control: <my:Property my:Name="UniquenessValidationXPath" my:Value="/Person[not(ObjectID = '%ObjectID%') and DisplayName = '%VALUE%']"/> Note that you have to explicitley remove the current resource out of the search otherwise it will yield a duplicate. Also note that != doesn't work. Only not(predicate) works. Expect the documentation to change soon.
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2011 9:38pm

Pauls answer is correct. I have done this in a variety of different RCDC's of both create and edit types. So long as you make it so the object ID is filtered for the current object, it will work for the edit RCDC. See my post here -> http://identityminded.wordpress.com/2011/04/28/fim2010-uniqueness-checking-in-rcdcs/ Thanks B
July 9th, 2011 9:56am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics