What is the difference between edit Arguments and Import Arguments

Did you make sure to

  • Create an Out argument in the first workflow and import this from the Invoke activity into a variable?
  • Create an In (or In/Out) argument in the second workflow, import it and put the same variable there?
  • Make sure there are no variables with the same name as arguments in either workflow?

This should successfully pass the data around, however it would still be illegal to call obj.Count.ToString if obj is of type Object. This is called late binding and is not allowed in UiPath.

Since you’re getting data from Excel as a DataTable, you should make the workflow arguments have the same type and instead use excelData.Rows.Count property to check whether it holds data.