AnsweredAssumed Answered

Return Documents Behavior Looks Odd

Question asked by ScottWilson1911 on Nov 10, 2015
Latest reply on Nov 12, 2015 by Adam Arrowsmith
I am using a sub process to generate a unique email address by forming the address and searching a database for that email address.  If it is found, I try a second variation then third, etc.  I generate five versions of the email addresses to try and place them in Proces Properties.  In the screen shot below, I am passing a flat file with one record which should result in the fourth variation of the email being unique and this is what happens in the fifth branch.  But instead of returning to the master process, it continues and checks for the fifth variation and then returns two documents to the parent.  I would have expected that the sixth branch would not have been executed.  I can see in the logs that the Return Documents step was executed twice hence the two documents.  Before returning, I add the email address to an element in the original document to pass back.  Is this a configuration issue that I am missing?