More a curiosity for the developers I thought I’d share/query…
I was running a few custom nodes today that use Python to retrieve model error warning associated elements. The nodes themselves are straightforward, one gets all error warnings and passes them in db format using the GetWarnings document method.
The second node takes the warning and retrieves the element(s) in the warning by iterating across the warning message to return sublists for each.
At small scales the node works fine, but for 1000+ warnings it fails to run and references an internal error. Placing the Python script on the canvas causes the same issue. If I chop the list into sets of 200 or so, then run the custom node @L2 it works fine.
Is there an inbuilt limit on iteration or a potential limit on memory I’m running into in this example? Images below of the nodes in case I’ve forgotten something in this case. This is the first time I’ve seen this happen. I’m not sure if maybe the issue is I am passing db elements in their raw format, although I couldn’t seem to find a Dynamo native conversion for them (dstype didn’t work if I recall).