Hi Community,
So basically I was trying to use a batch macro to extract the field name and the corresponding file name of all the yxdb file in a folder, using the list from directory input. (Workflow is as below)

When I run the macro itself, there is no error. However, when I run the macro within the workflow, it shows as below

Can anyone help with this? Thank you in advance!