HI all,
i have a definition where i check if a view is created and if it is i delete it.
Then i want to recreate it but i keep getting that error

Yeah, dynamo has a tendency to execute nodes in the most efficiant order. wich means some node at the end of your script might execute before nodes at the start.
I feel like your script is trying to delete the view first, and then tries to look for it. Since it’s already gone, you get that error.
There are multiple ways to fix the order of operation. my personal favorites are: a dummy python script, design script or the clockwork “passthrough” node. You see, the concept is to force the totality of your data throught a single unique node. since these nodes need all inputs to execute, anything after it will only happen after the dummy completes.
Exemple python script:
OUT = [ IN[0], IN[1], IN[2], IN[3], IN[4] ]
Then you split it in a design script node
x[0];
x[1];
x[2];
x[3];
x[4]
Remeber to put every single lace of data through it,
I tried with the Passthrough node but no avail
Can you show the rest of your graph so we can see what’s going on?
surely the most efficient order is to start from the beginning of the chain, otherwise, what is the purpose of creating an order in the chain?1?!
Bit of a time difference here as it’s been 8 years.
I’m going to close the tread accordingly. But not before noting that disconnected nodes can execute in a different order than novice users might expect. So an all elements of category might have an incomplete or incorrect listing of values if another branch adds or deletes elements.