Hi,
i have a problem where my Bots where stuck in infinite processing of an workitem and after some research it seems that they are stuck on an export document activity, that neither timeouts nor finishes.
In the screenshots you can see that the workflow “process” called by “main” is still running and the logs show that the last write line was “After Word”.
“Before Mail” never gets put out and i highly doubt it is stuck on the assign.
Export Workbook and Export Document simply call SaveAs on the office object. I don’t see what I can do to “fix” this. Maybe check if there is a dialog from Excel/Word in the background stopping it from saving? Test manually to save as PDF on one of the documents it failed on?
I changed to programmatically creating the pdf instead and it never stopped since, so definitely something weird going on with that activity, absolutely not reliant on the activity so for me this is not a big problem, now that i know. But i at least thought i report it so people running into the same problem know what’s going on.
Thinking about it the problem might have been that i did all of the stuff above except the export and right after called the activity, maybe word wasn’t ready yet or something.
Still i think the activity needs some sort of timeout then being stuff in processing forever is not a desired state.
(I need to learn C# again. When I looked at the code before, I just assumed it was the SaveAs, but now I see that I also use ExportAsFixedFormat. The SaveAs part is called before the export, which happens when you set SaveChanges to true)
Yea as i said i cant see anything wrong with your code.
The fact still stands that no matter the reason of the error, there should be some sort of global timeout for any OpenRPA process stuck.