generate a unique value for a set of users RRS feed

  • Question

  • when running a workflow for a set of users to generate unique account name value , it is getting erros?
    so how can i generate account names for a number of users in a set in MIM?
    Thursday, August 3, 2017 11:39 AM

All replies

  • What errors do you see in the WAL event log or in MIM Portal Request History?
    Thursday, August 3, 2017 12:53 PM
  • i am running a workflow to generate a unique value ,

    3 users added same time in a set ,

    when the workflows runs it gave only 1 user a unique account name values and failed for the 2 others,

    all the story is that i am inserting 3 users in a set at the same time and i want to generate for them 3 differents accounts name

    Thursday, August 3, 2017 1:05 PM
  • and i am not having any error in event logs of WAL
    Thursday, August 3, 2017 1:08 PM
  • Request 'c03b3dd0-26ef-473c-9760-4c75754fcf8d' failed while trying to commit the changes to the database.  Exception: 'Target(s): 20159002, Attribute Failure Code: 'ValueViolatesUniqueness', Attribute Name: 'AccountName''. 

    im getting this error in the event viewer of administrative events

    i guess the problem is when adding 3 users in a set at the same time and running the workflow to generate a unique value for the account name,

    so when mimwal is checking uniqueness , it is checking for 3 users at the same time,

    is there any solution?

    Thursday, August 3, 2017 1:11 PM
  • Have you read the implementation guidance in the Wiki for this activity? If not please read it. Then you need to decide how likely the activity is going to fail in a real production environment with real data. Are you going to be adding users that could generate same accountnames in a single operation? Are you going to add 100s of users at the same time? If it's more likely, then you need to abandon the idea of doing it using workflow for the reasons stated in the wiki.
    Thursday, August 3, 2017 1:20 PM