In “For Each” activity of dependency version 23.4.1 we are not able to change the type argument to data table. It becomes an issue when we try to loop the dataset to get the table data out of it using For Each. You could see in the below images when we try to access the item (ItemInstance) in the body of For each to populate the .tablenames as sheet names. It doesn’t populate. At the same time it also throws an error “cannot be converted to object to datatable type” when we use the item (ItemInstance) in the datatable parameter of write range as the default type argument for for each in 23.4.1 is system.object. This activity is created in the project by selecting windows compatibility. We could download the UiPath.System.Activities to 22.10.4 and use it without any issue. Just wanted to check in the version 23.4.1 can we expect the same as 22.10.4 version
Studio Version and Edition (Community, Enterprise) → It is Pro Trail.
Used Programming Language → VB is selected.
Used Compatibility (Windows, Windows Legacy) → Windows is used.
Refrenced Package Version of UiPath.System.Activities → Issue with version of UiPath.System.Activities 23.4.1
Changing the type argument from “object” to “data.datatable” is not available in 23.4.1 version of UiPath.System.Activities dependency as how it is used to be available in 22.10.4 version. So couldn’t use other types of argument. So have downgraded the dependency to 22.10.4 and moved on.