KB Article #176967

Repeated LDAP Queries Add Entries to Message Attribute

Problem

-- If two Retrieve from Directory Server filters are used consecutively to query an LDAP server for attributes and both write to the same message whiteboard location, then the attribute results of the second LDAP call do not replace the first results. Instead, the output variable gets a second entry, so the next result may be in, e.g., ${user[1].attribute[0]} instead of the expected ${user[0].attribute[0]}.

Resolution

* If you want the results of the second query to overwrite the results from the first query, you should use the Remove Attribute Filter to remove the original results before obtaining the second set of results. Additionally, you can use separate output variables for both filters, or use the Copy/Modify Attributes filter to make a copy of the originals before removing them.