Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Conflict filter using starts-with XPath function (Generate Unique Value) #67

Closed
Identitry opened this issue Jan 10, 2019 · 2 comments

Comments

@Identitry
Copy link

Identitry commented Jan 10, 2019

Hi!
I've got a Generate Unique Activity to generate a unique Domino CN. I've already read the closed issue #61 posted by Fredrik Melby but I think my case is similar but I don't add extra characters next to the [//Value] in the filter and I need to understand why my implementation doesn't work.

Conflict filter: /Person[(starts-with(FullNames, '[//Value]')) and (not(ObjectID = '[//Target/ObjectID]'))]
FullNames attribute is multi valued and contains all current Domino FullName values for users to check against.

Value Expressions:

  1. EscapeDNComponent(Concatenate("CN=",[//Target/FirstName]," ",[//Target/LastName]))+","
  2. EscapeDNComponent(Concatenate("CN=",[//Target/FirstName]," X ",[//Target/LastName]))+","
  3. EscapeDNComponent(Concatenate("CN=",[//Target/FirstName]," Y ",[//Target/LastName]))+","
  4. EscapeDNComponent(Concatenate("CN=",[//Target/FirstName]," ",[//Target/LastName],[//UniquenessKey]))+","

The expressions all ends with a comma (not within the EscapeDNComponent function) in order to ensure the filter doesn't catch persons with just a similar value for FullName. The filter works great using for example a temporary Search Scope however in the activity a duplicate is not found even though it exist.
Checking against the full FullName values would be to hard to handle.

//Henrik Nilsson

@NileshGhodekar
Copy link
Contributor

Hi @Identitry, the starts-with() optimisation is now not turned on by default. So the latest build should give you the expected results. Please try it out and see how it goes.

@NileshGhodekar
Copy link
Contributor

Closing this issue as a DCR was implemented for this and release as v2.19.0112.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants