My script runs perfectly sometimes, but sometimes it returns as null for all nodes

My script runs perfectly sometimes, but sometimes it returns as null for all nodes. Can anyone suggest a solution for this
Revit 2024.3, Dynamo 2.19.3, Ironpython 2.5

I guess we really need more information. Unless someone knows what the issue is just by going of your post.

Does the problem occur in the same project? What does your script do? Does it work without any problem in other versions or projects?

Also screenshot of your graph with the preview bubbles pinned would help.

Both working and not working.

Hi! this has been happening for years now. For me the easiest solution is to simply cut paste and reconnect the nodes making those issues or even paste the whole graph in a new .dyn file

Personally i never had this happen.

i’ve done that, but no use

my script will automatically model flex pipes between two equipments

as per the below image, i have selected the equipments, it returns as null and also the status stucks on run started

Hi @Kashyapras will it work with a bool in toogle for refresh

Being stuck on run started often means you’ve got an active action in Revit. Check that you aren’t editing a group, or otherwise have an active transaction.

can you please explain a bit more in a elaborate manner?

yeah sure i can try i just mean as here…but you are sure you dont have an action open in revit as Jacob mention ??

i’ve applied a toggle, but in the first node itself, it returned as null

Hmmm not sure then and its happend only sometimes ? which revit version are you in ?

Revit 2024.3, Dynamo 2.19.3, Ironpython 2.5.
it was working fine this morning, all of a sudden, it is responding as null

does the categories node work if you ĂĄben a fresh dyn with only that node in your project

yes, its working

ok…does it work if you change the node with a fresh one in your dyn project file ?

unfortunately no

hmm what does the graff do ? …anyway guess if we have the dyn and rvt we can maybe come it closer…perhaps @jacob.small have a glue ?

@Kashyapras restart your CPU, open Revit, recreate the issue, and post your journal and Dynamo log file.

1 Like

journal.0471.txt (483.7 KB)

dynamoLog_278aaffd-1360-44dd-9fd1-690ce9e51a86.txt (27.0 KB)

1 Like