To make sure that the user doesn't get the "file already exists" dialog. I decided to delete a possibly existing file with the same file name (row dependent) first.
Although the process flow looks great It doesn't work!
What I see happening is, that the pdf-file is created and immediately deleted. Only the last pdf from the collection of records is not deleted.
It looks like the Print Report step is executed before the delete file connector has been executed.
My first question: How can I prevent the Print Report action from starting before the file has been deleted. I already created a process procedure to control the transition to the next process step, but unfortunately this didn't help either.
My second question: Is there another way to prevent the "file already exists" dialog, when overwriting a report?
Best answer by Jasper
The Print report action should only be executed after the Delete file action is finished. Can you check if the file gets deleted correctly if you step through the process flow using the Process flow monitor?