Using Workflow Designer 9.2.0.167
We have a fairly simple workflow that does a few database lookups based off of each other. The first query looks in a database to get all rows that have a completed = 0 value. Then in the For Each Row activity, we do another database lookup based on the SSN and Position value based on the Completed lookup and have it return 1 result. After that lookup, we have another lookup for a supervisor based on a SupervisorNamekey value returned from the SSN and Position lookup to get the supervisors information.
We added the Track Tokens activity within the For Each Row activity to see how it was working. It seems as though the first iteration is not completing. It creates tokens for the first row returned from the Completed query, but never performs the other database lookups.
The second iteration creates tokens for the second row retrieved and performs the database lookups, but does the database lookups using the values of the previous iteration. This happens for all subsequent iterations as well. Below is a screenshot of the workflow.
Here are the tokens from the first activity:
As you can see there are no tokens for the queryemployeedata activity or the querysupervisordata activity.
Any ideas of what would be causing this?