Could you please show me the input data you have in a screenshot? I can reproduce your inputs to see why it may be failing.
I’ll do that tomorrow or maybe when i get home… Got to run
This is working for me with a simulated View structure similar to yours. Without seeing the contents of the Warning message (Hover over the yellow box and screencapture that) i’m unsure what is going wrong.
See working code and context as below:
Thanks for sending those through - found the culprit It appears that the check for input data being in a list is failing, and wrapping it one level deeper into a list.
You could use this code, in your scenario, by taking out the following code portion.
if not isinstance(view, list):
view = [view]
Obviously, that doesn’t help safeguard against lists of different depths, but it’s an unblocking for this problem The
hasattr
(has attribute) check does successfully pass though:
if not hasattr(view, '__iter__'):
view = [view]
And this successfully executes your code in your scenario