Non-Empty Datatable argument passed to an activity is evaluated as Empty?

I am trying to pass a Datatable from the main workflow to an activity. Passing Datatables as never been an issue in other functions I have created for this project so I cannot figure out the problem.

In the following snapshots I am trying to communicate on how the argument ListOfExcel(datatable) is passed to the activity ExcelToPDF_DT. I know the argument is not empty because i have confirmed it with the ‘watch’ function of studio.

However, when the activity is being called from the main workflow, the flow enters the activity flowing into the if condition where the data table is evaluated to empty! which it definitely is not.

And I get the following error.

Any suggestion is appreciated.

Hi @STEPHEN_JACOB try dt.row.count method in flow decision.