You are viewing limited content. For full access, please sign in.

Question

Question

For Each Entry only works sometimes

asked on April 25, 2017 Show version history

Hi, there seems to be an issue in Workflow 10.0 where even though "Find Entries" finds multiple entries, the corresponding For Each Entry activity only works some of the time.

I searched around and saw that Workflow 9.2.1 had a fix for this sort of issue, that Workflow would skip over For Each Value activities after republishing a workflow and updating the running instance. However, it happens without republishing, and it can happen with a workflow that hasn't been edited in a while and is functioning fine, but all of a sudden this will happen. Also, this is occurring on Workflow version 10.0.0.249 which is obviously past 9.2.1. Also, this never happened before the upgrade from 9.2 to 10, and I am fairly certain this only occurs on workflows that were created after the upgrade.

The release notes for 9.2.1 did mention uninstalling and reinstalling Workflow as a potential fix, but the issue is different from that one and uninstalling/reinstalling Workflow, or upgrading to 10.2, would take far too long based on different approvals and servers to work with. I would like the uninstall/reinstall to be the second to last resort, and the upgrade the very last resort.

Is there a hotfix that handles this, or some other workaround relevant to version 10?

I have seen for myself that the For Each Entry is properly configured to the output of Find Entries, and in an instance where For Each Entry failed to run through, Find Entries found 3 entries.

Update: I was given incorrect information. The issue did match up with the one mentioned in 9.2.1, that For Each Entry didn't activate when a workflow was published and all running instances were updated. After upgrading Workflow from 10.0 to 10.2 the issue was fixed.

1 0

Replies

replied on April 25, 2017

Have you looked at the workflows that skipped some of the files?  Where there errors or warnings in the workflow instance information?  Have you tried putting a "Try-Catch" inside of the "For Each" to handle any errors?

0 0
replied on April 26, 2017

No errors or warnings. Even when there is a conditional branch right after For Each Entry where one branch is meant to catch "everything else," it never makes it to the conditional.

0 0
replied on April 26, 2017

Something like below is what I would try to use to narrow down what and when errors are happening in your For Each loop.

0 0
replied on May 4, 2017

The issue was fixed by an upgrade from Workflow 10 to 10.2.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.