Python Error: TypeError: expected Document, got list

Hi Guys,

I have downloaded one python script for load multiple group in a document, but phasing a error which is below.
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 22, in
TypeError: expected Document, got list

please find attached script and do needful.
Thanks in advance.

Load Multiple Group.dyn (15.5 KB)

The Python isn’t formatted to take a list of documents. You need to add a for loop to resolve. There are many instances of how this can be done on the forum already. My personal preference is to move the Python into a custom node as it allows the greatest flexibility.