I have created a flow which gets a list of files to be merged, and in a loop, creates merged document.
First Loop, File 1 is the merge of files A + B + C + D
Second loop, File 2 becomes, File 1 + E + F + G + D
In the second loop i am getting error:
Message: None of the objects in the chain is an indirect object\r\nSource: UiPath.IntelligentOCR.StudioWeb.Activities\r\nStackTrace: at UiPath.IntelligentOCR.StudioWeb.Activities.PDF.MergePDFs.MergePDFs.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)\r\n at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)\r\n at UiPath.IntelligentOCR.StudioWeb.Activities.PDF.PDFActivityBase.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)\r\n at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
I have tried using both Merge PDFs and Join PDF documents activities, with similar results.
Problem seems to appear when adding file D twice in the same âmergedâ document.
I have also tried to first copy file D to a different location (and name), yet again with the same results.
Has anyone come across similar issues? Any ideas?
Is there a way to overcome this behavior?
NOTE: Skipping adding File D twice is not an actual option.