Hi Dave,
""To make sure I'm on the same page with you, you're saying that it is locking a single queue item (1/19), opening 19 instances of Excel, failing, and then marking all 19 queue items without actually calling 'Open Workbook' 19 times, but instead only calling that action once?""
Yes, this is correct. The data that is loaded into the queue, comes from a collection which is two collections merged together earlier in the process, called ""MergedAll"" (please see attached screenshot). The queue data doesn't come from the workbook that is opened 19 times, no.
In terms of your summary of the process flow, yes that would be accurate. The file path for the workbook comes from the queue data which is output to a collection when it retrieves the next item, called ""DataCollection"". It is one row in this queue collection.
Yes, I agree on the pending items not being able to be marked as complete/exception, which is what is really stumping me, and makes me think that somehow the process is as you say, locking the other items in the queue.
Yes, we have tried troubleshooting by stepping through the process, and initially thought it was some recursion in the code stage, but to no avail.
I appreciate it is a bit of a strange error to encounter, but it is obviously somehow linked to the queue items.
Many thanks for your reply,
Kind regards,
Ben
Benjamin Anderson,
Senior Consultant,
UK