Handle pop-ups with word--> export to pdf

I have a challenge converting word documents (.docx) to .pdf using the ‘Export to PDF’ activity.

Generally it works fine, except when the word document contains certain conditions, such as the ‘track changes’ or signatures enabled. Saving as PDF triggers a pop-up in word if one of these conditions apply.

Here’s the challenge: Since the save as pdf activity is not completed, no follow up action can be automated. So I can’t detect the popup and click it, etc. Word waits for the next human/bot interaction, and UIPath waits for Word to complete the export. A staring contest which goes on endlessly. The ‘export to pdf’ activity offers no timeout options and throws no exceptions to capture either.

Does anybody have a solution for this? A workaround is performing the export completely through the regular UI, but this has other disadvantages in my encvironment, which I hope I can avoid.

Versions:
Studio 19.10.3.0
UiPath.Word.Activities 1.3.4

Basic code:

  • Word application scope (source document path)
  • Do: Export to pdf (target document path)

Have you checked out the Parallel activity?

If you need an example on how to use the Parallel activity: